8
8
/// @group table
9
9
/// /
10
10
11
+ @use " sass:color" ;
12
+
11
13
/// Default color for table background.
12
14
/// @type Color
13
15
$table-background : $white !default ;
@@ -30,11 +32,11 @@ $table-hover-scale: 2% !default;
30
32
31
33
/// Default color of standard rows on hover.
32
34
/// @type List
33
- $table-row-hover : darken ($table-background , $table-hover-scale ) !default ;
35
+ $table-row-hover : color . adjust ($table-background , $lightness : - $table-hover-scale ) !default ;
34
36
35
37
/// Default color of striped rows on hover.
36
38
/// @type List
37
- $table-row-stripe-hover : darken ($table-background , $table-color-scale + $table-hover-scale ) !default ;
39
+ $table-row-stripe-hover : color . adjust ($table-background , $lightness : - ( $ table-color-scale + $table-hover-scale ) ) !default ;
38
40
39
41
/// If `true`, tables are striped by default and an .unstriped class is created. If `false`, a .striped class is created.
40
42
/// @type Boolean
@@ -54,15 +56,15 @@ $table-head-background: smart-scale($table-background, $table-color-scale * 0.5)
54
56
55
57
/// Default color of header rows on hover.
56
58
/// @type List
57
- $table-head-row-hover : darken ($table-head-background , $table-hover-scale ) !default ;
59
+ $table-head-row-hover : color . adjust ($table-head-background , $lightness : - $table-hover-scale ) !default ;
58
60
59
61
/// Default color for footer background.
60
62
/// @type Color
61
63
$table-foot-background : smart-scale ($table-background , $table-color-scale ) !default ;
62
64
63
65
/// Default color of footer rows on hover.
64
66
/// @type List
65
- $table-foot-row-hover : darken ($table-foot-background , $table-hover-scale ) !default ;
67
+ $table-foot-row-hover : color . adjust ($table-foot-background , $lightness : - $table-hover-scale ) !default ;
66
68
67
69
/// Default font color for header.
68
70
/// @type Color
0 commit comments