0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Allow a <label> for .input-group-addon by zeroing out margin-bottom

When using a <label> as an .input-group-addon, there will be a default margin-bottom of .5rem via Reboot.
This will lead to undesirable whitespace below the label and the <input> will become taller than needed. By removing the margin, it will play nice with <label> elements.

Closes #19012
This commit is contained in:
mkroeders 2016-01-23 12:30:21 +01:00 committed by Chris Rebert
parent d54d9d3f7a
commit a62f70b420

View File

@ -85,6 +85,7 @@
.input-group-addon {
padding: $input-padding-y $input-padding-x;
margin-bottom: 0; // Allow use of <label> elements by overriding our default margin-bottom
font-size: $font-size-base;
font-weight: normal;
line-height: 1.5;