1 | //
|
---|
2 | // Labels
|
---|
3 | //
|
---|
4 |
|
---|
5 | .form-label {
|
---|
6 | margin-bottom: $form-label-margin-bottom;
|
---|
7 | @include font-size($form-label-font-size);
|
---|
8 | font-style: $form-label-font-style;
|
---|
9 | font-weight: $form-label-font-weight;
|
---|
10 | color: $form-label-color;
|
---|
11 | }
|
---|
12 |
|
---|
13 | // For use with horizontal and inline forms, when you need the label (or legend)
|
---|
14 | // text to align with the form controls.
|
---|
15 | .col-form-label {
|
---|
16 | padding-top: add($input-padding-y, $input-border-width);
|
---|
17 | padding-bottom: add($input-padding-y, $input-border-width);
|
---|
18 | margin-bottom: 0; // Override the `<legend>` default
|
---|
19 | @include font-size(inherit); // Override the `<legend>` default
|
---|
20 | font-style: $form-label-font-style;
|
---|
21 | font-weight: $form-label-font-weight;
|
---|
22 | line-height: $input-line-height;
|
---|
23 | color: $form-label-color;
|
---|
24 | }
|
---|
25 |
|
---|
26 | .col-form-label-lg {
|
---|
27 | padding-top: add($input-padding-y-lg, $input-border-width);
|
---|
28 | padding-bottom: add($input-padding-y-lg, $input-border-width);
|
---|
29 | @include font-size($input-font-size-lg);
|
---|
30 | }
|
---|
31 |
|
---|
32 | .col-form-label-sm {
|
---|
33 | padding-top: add($input-padding-y-sm, $input-border-width);
|
---|
34 | padding-bottom: add($input-padding-y-sm, $input-border-width);
|
---|
35 | @include font-size($input-font-size-sm);
|
---|
36 | }
|
---|