aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2016-02-25 11:28:16 +0000
committerPatrick H. Lauke <[email protected]>2016-02-25 11:28:16 +0000
commit13194ada33c2fb55dce6e4eea528001ac06a9735 (patch)
tree9ce84ce4cbe1b97bbbc40539fb86aca518a50c91 /scss
parentb25f37b783a9eedb5c88eec3c010854c1719bd8d (diff)
parentc25556e91887f69533580394942d01f18c84d5a0 (diff)
downloadbootstrap-13194ada33c2fb55dce6e4eea528001ac06a9735.tar.xz
bootstrap-13194ada33c2fb55dce6e4eea528001ac06a9735.zip
Merge pull request #19277 from patrickhlauke/v4-dev-forms-fixes#2
Forms fixes: fieldset/legend, new .form-control-legend, accessibility advice
Diffstat (limited to 'scss')
-rw-r--r--scss/_forms.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss
index 729ca764f..9a031c3ac 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -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