comparison default/assets/scss/vendors/bootstrap/mixins/_table-row.scss @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 // Tables
2
3 @mixin table-row-variant($state, $background) {
4 // Exact selectors below required to override `.table-striped` and prevent
5 // inheritance to nested tables.
6 .table-#{$state} {
7 &,
8 > th,
9 > td {
10 background-color: $background;
11 }
12 }
13
14 // Hover states for `.table-hover`
15 // Note: this is not available for cells or rows within `thead` or `tfoot`.
16 .table-hover {
17 $hover-background: darken($background, 5%);
18
19 .table-#{$state} {
20 @include hover {
21 background-color: $hover-background;
22
23 > td,
24 > th {
25 background-color: $hover-background;
26 }
27 }
28 }
29 }
30 }