mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
fix .col-form-label paddings and add line-height (#23121)
This commit is contained in:
parent
2430151865
commit
9145cc8279
@ -88,21 +88,24 @@ select.form-control {
|
|||||||
// For use with horizontal and inline forms, when you need the label text to
|
// For use with horizontal and inline forms, when you need the label text to
|
||||||
// align with the form controls.
|
// align with the form controls.
|
||||||
.col-form-label {
|
.col-form-label {
|
||||||
padding-top: calc(#{$input-btn-padding-y} - #{$input-btn-border-width} * 2);
|
padding-top: calc(#{$input-btn-padding-y} + #{$input-btn-border-width});
|
||||||
padding-bottom: calc(#{$input-btn-padding-y} - #{$input-btn-border-width} * 2);
|
padding-bottom: calc(#{$input-btn-padding-y} + #{$input-btn-border-width});
|
||||||
margin-bottom: 0; // Override the `<label>` default
|
margin-bottom: 0; // Override the `<label>` default
|
||||||
|
line-height: $input-btn-line-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-form-label-lg {
|
.col-form-label-lg {
|
||||||
padding-top: calc(#{$input-btn-padding-y-lg} - #{$input-btn-border-width} * 2);
|
padding-top: calc(#{$input-btn-padding-y-lg} + #{$input-btn-border-width});
|
||||||
padding-bottom: calc(#{$input-btn-padding-y-lg} - #{$input-btn-border-width} * 2);
|
padding-bottom: calc(#{$input-btn-padding-y-lg} + #{$input-btn-border-width});
|
||||||
font-size: $font-size-lg;
|
font-size: $font-size-lg;
|
||||||
|
line-height: $input-btn-line-height-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
.col-form-label-sm {
|
.col-form-label-sm {
|
||||||
padding-top: calc(#{$input-btn-padding-y-sm} - #{$input-btn-border-width} * 2);
|
padding-top: calc(#{$input-btn-padding-y-sm} + #{$input-btn-border-width});
|
||||||
padding-bottom: calc(#{$input-btn-padding-y-sm} - #{$input-btn-border-width} * 2);
|
padding-bottom: calc(#{$input-btn-padding-y-sm} + #{$input-btn-border-width});
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
|
line-height: $input-btn-line-height-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user