1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/dashboard/client/components/table/table.scss
Jari Kolehmainen 1d0815abd2
Lens app source code (#119)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-03-15 09:52:02 +02:00

53 lines
904 B
SCSS

.Table {
&.scrollable {
&.light {
@include custom-scrollbar(dark);
}
@include custom-scrollbar();
flex: 1 0 0; // hackfix: flex-basis must be "0" for proper work in firefox
}
&.autoSize {
.TableCell {
flex: 1 0;
}
}
&.selectable {
.TableHead, .TableRow {
padding: 0 $padding;
}
.TableRow {
cursor: pointer;
&:hover {
background-color: $tableBgcSelected !important;
}
&.selected {
background-color: $tableBgcSelected;
color: $tableSelectedRowColor;
&:before {
content: "";
background: $primary;
position: absolute;
left: 0;
top: 0;
width: 4px;
height: 100%;
}
}
}
}
&.striped {
.TableRow {
&:nth-child(odd) {
background-color: $tableBgcStripe;
}
}
}
}