diff options
| author | Andrew Luca <[email protected]> | 2018-07-15 07:29:19 +0300 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2018-07-14 21:29:19 -0700 |
| commit | 0fd40837e816869325e527eb292ba54d7de9c083 (patch) | |
| tree | ef2f2341632e2bae2ce9c2962a3df33ae1fcef43 | |
| parent | 2d8422f5f5147fafd20f2a48b60fcbccb280ac14 (diff) | |
| download | bootstrap-0fd40837e816869325e527eb292ba54d7de9c083.tar.xz bootstrap-0fd40837e816869325e527eb292ba54d7de9c083.zip | |
Fix `custom-forms` heights and position (#25602)
Now `.custom-control` will have height equal to `$font-size-base`
Fix custom checkbox and radio top position (we can't subtract rem from unit)
`$line-height-base - $custom-control-indicator-size` is not valid
Because `$line-height-base` is a unitless variable and `$custom-control-indicator-size`
is a unit (rem) variable
| -rw-r--r-- | scss/_custom-forms.scss | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index 1311ba482..f4e005a96 100644 --- a/scss/_custom-forms.scss +++ b/scss/_custom-forms.scss @@ -10,7 +10,7 @@ .custom-control { position: relative; display: block; - min-height: (1rem * $line-height-base); + min-height: ($font-size-base * $line-height-base); padding-left: $custom-control-gutter; } @@ -63,7 +63,7 @@ // Background-color and (when enabled) gradient &::before { position: absolute; - top: (($line-height-base - $custom-control-indicator-size) / 2); + top: (($font-size-base * $line-height-base - $custom-control-indicator-size) / 2); left: -$custom-control-gutter; display: block; width: $custom-control-indicator-size; @@ -78,7 +78,7 @@ // Foreground (icon) &::after { position: absolute; - top: (($line-height-base - $custom-control-indicator-size) / 2); + top: (($font-size-base * $line-height-base - $custom-control-indicator-size) / 2); left: -$custom-control-gutter; display: block; width: $custom-control-indicator-size; |
