aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-10-27 14:41:12 -0700
committerMark Otto <[email protected]>2016-10-27 14:41:12 -0700
commit2dcc50f01715302cdcbe5ae49c7539b0288f63ab (patch)
tree1b04e4c9c990492885dde6c49c64254d93b7285f
parentda6b5a055123937b06960e39c27308214a9374bc (diff)
downloadbootstrap-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.scss2
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;