|
| 1 | +@use "sass:color"; |
| 2 | +@use "sass:math"; |
| 3 | + |
1 | 4 | // Foundation for Sites Settings |
2 | 5 | // ----------------------------- |
3 | 6 | // |
|
8 | 11 | // 3. The Grid |
9 | 12 | // 4. Base Typography |
10 | 13 | // 5. Typography Helpers |
| 14 | + |
11 | 15 | // 6. Abide |
12 | 16 | // 7. Accordion |
13 | 17 | // 8. Accordion Menu |
@@ -168,7 +172,7 @@ $code-background: $light-gray; |
168 | 172 | $code-border: 1px solid $medium-gray; |
169 | 173 | $code-padding: rem-calc(2 5 1); |
170 | 174 | $anchor-color: $primary-color; |
171 | | -$anchor-color-hover: scale-color($anchor-color, $lightness: -14%); |
| 175 | +$anchor-color-hover: color.scale($anchor-color, $lightness: -14%); |
172 | 176 | $anchor-text-decoration: none; |
173 | 177 | $anchor-text-decoration-hover: none; |
174 | 178 | $hr-width: $global-width; |
@@ -283,7 +287,7 @@ $button-padding: 0.85em 1em; |
283 | 287 | $button-margin: 0 0 $global-margin 0; |
284 | 288 | $button-fill: solid; |
285 | 289 | $button-background: $primary-color; |
286 | | -$button-background-hover: scale-color($button-background, $lightness: -15%); |
| 290 | +$button-background-hover: color.scale($button-background, $lightness: -15%); |
287 | 291 | $button-color: $white; |
288 | 292 | $button-color-alt: $black; |
289 | 293 | $button-radius: $global-radius; |
@@ -775,15 +779,15 @@ $table-color-scale: 5%; |
775 | 779 | $table-border: 1px solid smart-scale($table-background, $table-color-scale); |
776 | 780 | $table-padding: rem-calc(8 10 10); |
777 | 781 | $table-hover-scale: 2%; |
778 | | -$table-row-hover: darken($table-background, $table-hover-scale); |
779 | | -$table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale); |
| 782 | +$table-row-hover: color.adjust($table-background, $lightness: -$table-hover-scale); |
| 783 | +$table-row-stripe-hover: color.adjust($table-background, $lightness: -($table-color-scale + $table-hover-scale)); |
780 | 784 | $table-is-striped: true; |
781 | 785 | $table-striped-background: smart-scale($table-background, $table-color-scale); |
782 | 786 | $table-stripe: even; |
783 | 787 | $table-head-background: smart-scale($table-background, math.div($table-color-scale, 2)); |
784 | | -$table-head-row-hover: darken($table-head-background, $table-hover-scale); |
| 788 | +$table-head-row-hover: color.adjust($table-head-background, $lightness: -$table-hover-scale); |
785 | 789 | $table-foot-background: smart-scale($table-background, $table-color-scale); |
786 | | -$table-foot-row-hover: darken($table-foot-background, $table-hover-scale); |
| 790 | +$table-foot-row-hover: color.adjust($table-foot-background, $lightness: -$table-hover-scale); |
787 | 791 | $table-head-font-color: $body-font-color; |
788 | 792 | $table-foot-font-color: $body-font-color; |
789 | 793 | $show-header-for-stacked: false; |
|
0 commit comments