diff options
| author | Mark Otto <[email protected]> | 2016-10-27 14:41:12 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-10-27 14:41:12 -0700 |
| commit | 2dcc50f01715302cdcbe5ae49c7539b0288f63ab (patch) | |
| tree | 1b04e4c9c990492885dde6c49c64254d93b7285f | |
| parent | da6b5a055123937b06960e39c27308214a9374bc (diff) | |
| download | bootstrap-2dcc50f01715302cdcbe5ae49c7539b0288f63ab.tar.xz bootstrap-2dcc50f01715302cdcbe5ae49c7539b0288f63ab.zip | |
Calculcate the top offset for custom control indicators
Fixes #21023.
Uses some math functions to determine what the offset should be. This is helpful for those who customize the size of their indicators and still want them vertically centered.
| -rw-r--r-- | scss/_custom-forms.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index e74f5c744..18aedc66f 100644 --- a/scss/_custom-forms.scss +++ b/scss/_custom-forms.scss @@ -61,7 +61,7 @@ .custom-control-indicator { position: absolute; - top: .25rem; + top: (($line-height-base - $custom-control-indicator-size) / 2); left: 0; display: block; width: $custom-control-indicator-size; |
