mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
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.
This commit is contained in:
parent
da6b5a0551
commit
2dcc50f017
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user