diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2019-01-07 19:28:21 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-01-07 19:28:21 +0300 |
commit | 68062cfe606c0b1e58b2c6f820a6bfdef807c58e (patch) | |
tree | d0c6bafecbdc180dd847feeee20e22be66547bb3 /scss | |
parent | 2b96e9adf129bf39bfd56efeecfdb9123bb7acd9 (diff) |
Allow configuration of caret spacing and vertical alignment (#27994)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_variables.scss | 2 | ||||
-rw-r--r-- | scss/mixins/_caret.scss | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss index de88cc2294..8219065652 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -254,6 +254,8 @@ $component-active-color: $white !default; $component-active-bg: theme-color("primary") !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-fade: opacity .15s linear !default; diff --git a/scss/mixins/_caret.scss b/scss/mixins/_caret.scss index 982522c54b..8ecef65b47 100644 --- a/scss/mixins/_caret.scss +++ b/scss/mixins/_caret.scss @@ -29,8 +29,8 @@ @if $enable-caret { &::after { display: inline-block; - margin-left: $caret-width * .85; - vertical-align: $caret-width * .85; + margin-left: $caret-spacing; + vertical-align: $caret-vertical-align; content: ""; @if $direction == down { @include caret-down; @@ -48,8 +48,8 @@ &::before { display: inline-block; - margin-right: $caret-width * .85; - vertical-align: $caret-width * .85; + margin-right: $caret-spacing; + vertical-align: $caret-vertical-align; content: ""; @include caret-left; } |