Skip to content

Commit 64ea592

Browse files
committed
change up fonts on form elements to remove unnecessary font-family on label element, per twbs#1950
1 parent da94850 commit 64ea592

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docs/assets/bootstrap.zip

8 Bytes
Binary file not shown.

docs/assets/css/bootstrap.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,16 @@ input,
530530
button,
531531
select,
532532
textarea {
533-
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
534533
font-size: 13px;
535534
font-weight: normal;
536535
line-height: 18px;
537536
}
537+
input,
538+
button,
539+
select,
540+
textarea {
541+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
542+
}
538543
label {
539544
display: block;
540545
margin-bottom: 5px;

less/forms.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ input,
4242
button,
4343
select,
4444
textarea {
45-
#font > .sans-serif(@baseFontSize,normal,@baseLineHeight);
45+
#font > .shorthand(@baseFontSize,normal,@baseLineHeight); // Set size, weight, line-height here
46+
}
47+
input,
48+
button,
49+
select,
50+
textarea {
51+
#font > #family > .sans-serif(); // And only set font-family here for those that need it (note the missing label element)
4652
}
4753

4854
// Identify controls by their labels

0 commit comments

Comments
 (0)