mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 00:59:51 +02:00
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
This commit is contained in:
@@ -50,5 +50,12 @@
|
||||
}
|
||||
--#{$variable-prefix}body-bg: #{$body-bg};
|
||||
// scss-docs-end root-body-variables
|
||||
|
||||
// scss-docs-start root-border-var
|
||||
--#{$variable-prefix}border-width: #{$border-width};
|
||||
--#{$variable-prefix}border-style: solid;
|
||||
--#{$variable-prefix}border-color: #{$border-color};
|
||||
--#{$variable-prefix}border-radius: #{$border-radius};
|
||||
// scss-docs-end root-border-var
|
||||
// stylelint-enable custom-property-empty-line-before
|
||||
}
|
||||
|
Reference in New Issue
Block a user