Skip to content

Commit 90f3340

Browse files
committed
Merge pull request #294 from tilomitra/forms-font-size
[Fix #265]: Remove `font-size` rules from .pure-form children
2 parents ac50044 + 592e5b4 commit 90f3340

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

HISTORY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ NEXT
88

99
* Improve how `<input type="color">` elements look in Chrome by fixing paddings. ([#283][] @jpetto)
1010

11+
* Remove `font-size` rules from `<input>`, `<legend>`, and `<fieldset>` elements within `.pure-form`. Font sizes are now inherited from your application's CSS file. ([#265][])
1112

13+
[#265]: https://github.com/yui/pure/issues/265
1214
[#283]: https://github.com/yui/pure/issues/283
1315

1416

src/forms/css/forms-r.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
.pure-form-message-inline,
5858
.pure-form-message {
5959
display: block;
60-
font-size: 80%;
60+
font-size: 0.75em;
6161
/* Increased bottom padding to make it group with its related input element. */
6262
padding: 0.2em 0 0.8em;
6363
}

src/forms/css/forms.css

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
padding: 0.5em 0.6em;
1818
display: inline-block;
1919
border: 1px solid #ccc;
20-
font-size: 0.8em;
2120
box-shadow: inset 0 1px 3px #ddd;
2221
border-radius: 4px;
2322
-webkit-box-sizing: border-box;
@@ -33,7 +32,6 @@ since IE8 won't execute CSS that contains a CSS3 selector.
3332
padding: 0.5em 0.6em;
3433
display: inline-block;
3534
border: 1px solid #ccc;
36-
font-size: 0.8em;
3735
box-shadow: inset 0 1px 3px #ddd;
3836
border-radius: 4px;
3937
-webkit-box-sizing: border-box;
@@ -155,7 +153,6 @@ since IE8 won't execute CSS that contains a CSS3 selector.
155153
}
156154
.pure-form label {
157155
margin: 0.5em 0 0.2em;
158-
font-size: 90%;
159156
}
160157
.pure-form fieldset {
161158
margin: 0;
@@ -167,7 +164,6 @@ since IE8 won't execute CSS that contains a CSS3 selector.
167164
width: 100%;
168165
padding: 0.3em 0;
169166
margin-bottom: 0.3em;
170-
font-size: 125%;
171167
color: #333;
172168
border-bottom: 1px solid #e5e5e5;
173169
}
@@ -289,12 +285,12 @@ since IE8 won't execute CSS that contains a CSS3 selector.
289285
padding-left: 0.3em;
290286
color: #666;
291287
vertical-align: middle;
292-
font-size: 90%;
288+
font-size: 0.875em;
293289
}
294290

295291
/* Block help for forms */
296292
.pure-form-message {
297293
display: block;
298294
color: #666;
299-
font-size: 90%;
295+
font-size: 0.875em;
300296
}

0 commit comments

Comments
 (0)