mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Allow configuration of caret spacing and vertical alignment (#27994)
This commit is contained in:
parent
2b96e9adf1
commit
68062cfe60
2 changed files with 6 additions and 4 deletions
|
@ -254,6 +254,8 @@ $component-active-color: $white !default;
|
||||||
$component-active-bg: theme-color("primary") !default;
|
$component-active-bg: theme-color("primary") !default;
|
||||||
|
|
||||||
$caret-width: .3em !default;
|
$caret-width: .3em !default;
|
||||||
|
$caret-vertical-align: $caret-width * .85 !default;
|
||||||
|
$caret-spacing: $caret-width * .85 !default;
|
||||||
|
|
||||||
$transition-base: all .2s ease-in-out !default;
|
$transition-base: all .2s ease-in-out !default;
|
||||||
$transition-fade: opacity .15s linear !default;
|
$transition-fade: opacity .15s linear !default;
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
@if $enable-caret {
|
@if $enable-caret {
|
||||||
&::after {
|
&::after {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: $caret-width * .85;
|
margin-left: $caret-spacing;
|
||||||
vertical-align: $caret-width * .85;
|
vertical-align: $caret-vertical-align;
|
||||||
content: "";
|
content: "";
|
||||||
@if $direction == down {
|
@if $direction == down {
|
||||||
@include caret-down;
|
@include caret-down;
|
||||||
|
@ -48,8 +48,8 @@
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: $caret-width * .85;
|
margin-right: $caret-spacing;
|
||||||
vertical-align: $caret-width * .85;
|
vertical-align: $caret-vertical-align;
|
||||||
content: "";
|
content: "";
|
||||||
@include caret-left;
|
@include caret-left;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue