mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
Replace non-existent --bs-btn-padding
by --bs-btn-padding-{x|y}
This commit is contained in:
parent
a381ee320b
commit
36765912c6
@ -63,7 +63,8 @@
|
|||||||
|
|
||||||
// scss-docs-start btn-size-mixin
|
// scss-docs-start btn-size-mixin
|
||||||
@mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
|
@mixin button-size($padding-y, $padding-x, $font-size, $border-radius) {
|
||||||
--#{$variable-prefix}btn-padding: #{$padding-y} #{$padding-x};
|
--#{$variable-prefix}btn-padding-y: #{$padding-y};
|
||||||
|
--#{$variable-prefix}btn-padding-x: #{$padding-x};
|
||||||
@include rfs($font-size, --#{$variable-prefix}btn-font-size);
|
@include rfs($font-size, --#{$variable-prefix}btn-font-size);
|
||||||
--#{$variable-prefix}btn-border-radius: #{$border-radius};
|
--#{$variable-prefix}btn-border-radius: #{$border-radius};
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ You can even roll your own custom sizing with CSS variables:
|
|||||||
|
|
||||||
{{< example >}}
|
{{< example >}}
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
style="--bs-btn-padding: .25rem .5rem; --bs-btn-font-size: .75rem;">
|
style="--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;">
|
||||||
Custom button
|
Custom button
|
||||||
</button>
|
</button>
|
||||||
{{< /example >}}
|
{{< /example >}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user