diff options
author | Mark Otto <markdotto@gmail.com> | 2021-11-30 08:14:17 +0300 |
---|---|---|
committer | Mark Otto <otto@github.com> | 2022-02-28 22:40:32 +0300 |
commit | de0dfca9a1749990319cdfcbb7f1584df09d7091 (patch) | |
tree | 41a40725a2265fbd6a2d08673330a42535530100 /scss/_maps.scss | |
parent | e35980d0092c6c14969f8953cfabd4a8d007bb4e (diff) |
Convert border utilities to CSS variables
- Updates the utilities mixin to check for specific CSS variable names via `css-variable`
- Bonus fix: we now prevent local variables for `0` value utilities (e.g., `.border-top-0` no longer sets `--bs-border-opacity: 1`
- Adds new `.border-opacity-*` classes
- Adds new root variables: `--bs-border-color`, `--bs-border-style`, `--bs-border-width`
- Documents the new variable changes
Diffstat (limited to 'scss/_maps.scss')
-rw-r--r-- | scss/_maps.scss | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scss/_maps.scss b/scss/_maps.scss index c8b9fa7e53..2770a67615 100644 --- a/scss/_maps.scss +++ b/scss/_maps.scss @@ -39,6 +39,16 @@ $utilities-bg: map-merge( $utilities-bg-colors: map-loop($utilities-bg, rgba-css-var, "$key", "bg") !default; // scss-docs-end utilities-bg-colors +// scss-docs-start utilities-border-colors +$utilities-border: map-merge( + $utilities-colors, + ( + "white": to-rgb($white) + ) +) !default; +$utilities-border-colors: map-loop($utilities-border, rgba-css-var, "$key", "border") !default; +// scss-docs-end utilities-border-colors + $negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default; $gutters: $spacers !default; |