From 2dcc50f01715302cdcbe5ae49c7539b0288f63ab Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 27 Oct 2016 14:41:12 -0700 Subject: [PATCH] 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. --- scss/_custom-forms.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index e74f5c744a..18aedc66fa 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;