mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-30 00:29:52 +02:00
Split CSS vars for padding values (#35921)
* Split CSS vars for padding values Make these few components consistent with where we're heading with other components. Had to add some new Sass variables to handle the dropdown-header element, but not a huge deal. This ensures we can drop the combined variable in v6 when we're ready. * Update scss/_dropdown.scss Co-authored-by: Julien Déramond <julien.deramond@orange.com> * Deprecate dropdown-header-padding var Co-authored-by: Gaël Poupard <ffoodd@users.noreply.github.com> Co-authored-by: Julien Déramond <julien.deramond@orange.com>
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
|
||||
.badge {
|
||||
// scss-docs-start badge-css-vars
|
||||
--#{$variable-prefix}badge-padding: #{$badge-padding-y $badge-padding-x};
|
||||
--#{$variable-prefix}badge-padding-x: #{$badge-padding-x};
|
||||
--#{$variable-prefix}badge-padding-y: #{$badge-padding-y};
|
||||
@include rfs($badge-font-size, --#{$variable-prefix}badge-font-size);
|
||||
--#{$variable-prefix}badge-font-weight: #{$badge-font-weight};
|
||||
--#{$variable-prefix}badge-color: #{$badge-color};
|
||||
@@ -15,7 +16,7 @@
|
||||
// scss-docs-end badge-css-vars
|
||||
|
||||
display: inline-block;
|
||||
padding: var(--#{$variable-prefix}badge-padding);
|
||||
padding: var(--#{$variable-prefix}badge-padding-y) var(--#{$variable-prefix}badge-padding-x);
|
||||
font-size: var(--#{$variable-prefix}badge-font-size);
|
||||
font-weight: var(--#{$variable-prefix}badge-font-weight);
|
||||
line-height: 1;
|
||||
|
Reference in New Issue
Block a user