|
454 | 454 | // |
455 | 455 | // Extends the default `$theme-colors` maps to help create our utilities. |
456 | 456 |
|
457 | | - // uncomment whole block |
458 | | - // so you can define only new ones you need |
| 457 | + // Come v6, we'll de-dupe these variables. Until then, for backward compatibility, we keep them to reassign. |
| 458 | + |
| 459 | + // uncomment the whole block |
459 | 460 | /* |
460 | | - $utilities-colors: map-merge( |
461 | | - $theme-colors-rgb, |
462 | | - ( |
463 | | - "black": to-rgb($black), |
464 | | - "white": to-rgb($white), |
465 | | - "body": to-rgb($body-color) |
466 | | - ) |
467 | | - ); $utilities-colors: $utilities-colors !global; |
| 461 | + $utilities-colors: $theme-colors-rgb; $utilities-colors: $utilities-colors !global; // do not change! |
| 462 | + $utilities-text: map-merge( |
| 463 | + $utilities-colors, |
| 464 | + ( |
| 465 | + "black": to-rgb($black), |
| 466 | + "white": to-rgb($white), |
| 467 | + "body": to-rgb($body-color) |
| 468 | + ) |
| 469 | + ); $utilities-text: $utilities-text !global; |
| 470 | +
|
| 471 | + $utilities-bg: map-merge( |
| 472 | + $utilities-colors, |
| 473 | + ( |
| 474 | + "black": to-rgb($black), |
| 475 | + "white": to-rgb($white), |
| 476 | + "body": to-rgb($body-bg) |
| 477 | + ) |
| 478 | + ); $utilities-bg: $utilities-bg !global; |
468 | 479 | */ |
469 | | - // $utilities-text-colors: map-loop($utilities-colors, rgba-css-var, "$key", "text"); $utilities-text-colors: $utilities-text-colors !global; // map-loop($utilities-colors, rgba-css-var, "$key", "text") |
470 | | - // $utilities-bg-colors: map-loop($utilities-colors, rgba-css-var, "$key", "bg"); $utilities-bg-colors: $utilities-bg-colors !global; // map-loop($utilities-colors, rgba-css-var, "$key", "bg") |
471 | 480 |
|
472 | 481 |
|
473 | 482 | // Links |
|
1142 | 1151 | // $dropdown-box-shadow: $box-shadow; $dropdown-box-shadow: $dropdown-box-shadow !global; // $box-shadow |
1143 | 1152 |
|
1144 | 1153 | // $dropdown-link-color: $gray-900; $dropdown-link-color: $dropdown-link-color !global; // $gray-900 |
1145 | | - // $dropdown-link-hover-color: shade-color($gray-900, 10%); $dropdown-link-hover-color: $dropdown-link-hover-color !global; // shade-color($gray-900, 10%) |
| 1154 | + // $dropdown-link-hover-color: shade-color($dropdown-link-color, 10%); $dropdown-link-hover-color: $dropdown-link-hover-color !global; // shade-color($dropdown-link-color, 10%) |
1146 | 1155 | // $dropdown-link-hover-bg: $gray-200; $dropdown-link-hover-bg: $dropdown-link-hover-bg !global; // $gray-200 |
1147 | 1156 |
|
1148 | 1157 | // $dropdown-link-active-color: $component-active-color; $dropdown-link-active-color: $dropdown-link-active-color !global; // $component-active-color |
|
0 commit comments