aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
Diffstat (limited to 'scss')
-rw-r--r--scss/_forms.scss21
1 files changed, 4 insertions, 17 deletions
diff --git a/scss/_forms.scss b/scss/_forms.scss
index d2a1b3601..9cec3ac9c 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -83,12 +83,13 @@ select.form-control {
// Labels
//
-// For use with horizontal and inline forms, when you need the label text to
-// align with the form controls.
+// For use with horizontal and inline forms, when you need the label (or legend)
+// text to align with the form controls.
.col-form-label {
padding-top: calc(#{$input-padding-y} + #{$input-border-width});
padding-bottom: calc(#{$input-padding-y} + #{$input-border-width});
- margin-bottom: 0; // Override the `<label>` default
+ margin-bottom: 0; // Override the `<label>/<legend>` default
+ font-size: inherit; // Override the `<legend>` default
line-height: $input-line-height;
}
@@ -107,20 +108,6 @@ select.form-control {
}
-//
-// 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.
-.col-form-legend {
- padding-top: $input-padding-y;
- padding-bottom: $input-padding-y;
- margin-bottom: 0;
- font-size: $font-size-base;
-}
-
-
// Readonly controls as plain text
//
// Apply class to a readonly input to make it appear like regular plain