1
0
Fork 0
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:
Martijn Cuppens 2019-01-07 17:28:21 +01:00 committed by XhmikosR
parent 2b96e9adf1
commit 68062cfe60
2 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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;
} }