]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Overwrite margin-bottom on form-control-static (#21270)
authorGijs Boddeus <botje_gijs@hotmail.com>
Tue, 20 Dec 2016 22:45:08 +0000 (23:45 +0100)
committerMark Otto <markd.otto@gmail.com>
Tue, 20 Dec 2016 22:45:08 +0000 (14:45 -0800)
* Overwrite margin-bottom on form-control-static

In the documentation the form-control-static class has been used on a p element.
On the regular vertical form the margin bottom of the p element gets overwritten by a mb-0 class.
In the inline form example this class hasn't been applied, therefore the p element gets a margin-bottom.

To prevent this behavior we can add a margin-bottom of 0.

* Update _forms.scss

scss/_forms.scss

index d31836f9066826cea058e1f058100de6f9ef0a47..672d9dfc18f4f6d1845906ec898628cccb48882e 100644 (file)
@@ -346,6 +346,7 @@ select.form-control-lg {
     // Make static controls behave like regular ones
     .form-control-static {
       display: inline-block;
+      margin-bottom: 0;
     }
 
     .input-group {