mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-12 00:08:59 +01:00
28 lines
956 B
SCSS
28 lines
956 B
SCSS
|
//
|
||
|
// Labels
|
||
|
//
|
||
|
|
||
|
// 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>/<legend>` default
|
||
|
@include font-size(inherit); // Override the `<legend>` default
|
||
|
line-height: $input-line-height;
|
||
|
}
|
||
|
|
||
|
.col-form-label-lg {
|
||
|
padding-top: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
||
|
padding-bottom: calc(#{$input-padding-y-lg} + #{$input-border-width});
|
||
|
@include font-size($input-font-size-lg);
|
||
|
line-height: $input-line-height-lg;
|
||
|
}
|
||
|
|
||
|
.col-form-label-sm {
|
||
|
padding-top: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
||
|
padding-bottom: calc(#{$input-padding-y-sm} + #{$input-border-width});
|
||
|
@include font-size($input-font-size-sm);
|
||
|
line-height: $input-line-height-sm;
|
||
|
}
|