react-toolbox/components/table/style.scss

55 lines
929 B
SCSS
Raw Normal View History

2015-11-03 09:23:23 +03:00
@import "../base";
@import "./config";
.root {
width: 100%;
font-size: $font-size-tiny;
2015-11-04 06:42:57 +03:00
color: $table-text-color;
2015-11-03 09:23:23 +03:00
text-align: left;
tr {
height: $table-row-height;
line-height: $table-row-height;
border-bottom: $table-row-divider;
}
th {
font-weight: $font-weight-bold;
&:first-letter {
text-transform: capitalize;
}
}
th, td {
position: relative;
padding: 0 $table-row-offset;
2015-11-14 12:26:50 +03:00
&.selectable {
width: 1.8 * $unit;
padding-right: 0;
> * {
margin: 0;
}
}
}
}
.row {
transition: background-color $animation-duration $animation-curve-default;
&:last-child {
border-color: transparent;
2015-11-03 09:23:23 +03:00
}
2015-11-14 12:26:50 +03:00
> td {
> input {
display: block;
width: 100%;
background-color: transparent;
border: 0;
}
}
}
.selected, .row:hover {
background-color: $table-row-highlight;
}
.editable > * {
cursor: pointer;
2015-11-03 09:23:23 +03:00
}