diff options
| author | mkroeders <[email protected]> | 2016-01-23 12:30:21 +0100 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-01-23 22:18:43 -0800 |
| commit | a62f70b42065b2f7512fd22b07270da039add6ba (patch) | |
| tree | f36466e13ef0a19145c2ea3040598470674201e2 | |
| parent | d54d9d3f7a8a6267efabf23d9672f80a9bd6f5fb (diff) | |
| download | bootstrap-a62f70b42065b2f7512fd22b07270da039add6ba.tar.xz bootstrap-a62f70b42065b2f7512fd22b07270da039add6ba.zip | |
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
| -rw-r--r-- | scss/_input-group.scss | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scss/_input-group.scss b/scss/_input-group.scss index eeca6ee98..f99bc3784 100644 --- a/scss/_input-group.scss +++ b/scss/_input-group.scss @@ -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; |
