]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add form-control-legend
authorPatrick H. Lauke <redux@splintered.co.uk>
Fri, 19 Feb 2016 15:35:00 +0000 (15:35 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Fri, 19 Feb 2016 15:51:59 +0000 (15:51 +0000)
scss/_forms.scss

index 729ca764fd42dc92c52fb5432ad15b61e31a11d7..9a031c3ac2e6852d5bd41a162c2094dd8a6a9d3d 100644 (file)
@@ -80,6 +80,18 @@ select.form-control {
   margin-bottom: 0; // Override the `<label>` default
 }
 
+//
+// Legends
+//
+
+// For use with horizontal and inline forms, when you need the legend text to
+// be the same size as regular labels, and to align with the form controls.
+.form-control-legend {
+  padding: $input-padding-y $input-padding-x;
+  margin-bottom: 0;
+  font-size: $font-size-base;
+}
+
 
 // Todo: clear this up