rocket-pinboard/static/scss/bootstrap/mixins/_table-row.scss
Paul van Tilburg 6259b9b320 Move Bootstrap SCSS to static/
As a result the CSS maps an be used to trace the original line in the SCSS
in the browser inspector.  Also, move bootstrap to a subdir to distinguish
it from the SCSS of the app itself.
2017-12-30 16:23:25 +01:00

31 lines
647 B
SCSS

// Tables
@mixin table-row-variant($state, $background) {
// Exact selectors below required to override `.table-striped` and prevent
// inheritance to nested tables.
.table-#{$state} {
&,
> th,
> td {
background-color: $background;
}
}
// Hover states for `.table-hover`
// Note: this is not available for cells or rows within `thead` or `tfoot`.
.table-hover {
$hover-background: darken($background, 5%);
.table-#{$state} {
@include hover {
background-color: $hover-background;
> td,
> th {
background-color: $hover-background;
}
}
}
}
}