stylesheets/html5-boilerplate/_fonts.scss in html5-boilerplate-0.1.0 vs stylesheets/html5-boilerplate/_fonts.scss in html5-boilerplate-0.1.1
- old
+ new
@@ -1,38 +1,21 @@
//
// fonts.css from the YUI Library: developer.yahoo.com/yui/
-// Please refer to developer.yahoo.com/yui/fonts/ for font sizing percentages
-//
-// There are three custom edits:
-// * remove arial, helvetica from explicit font stack
-// * make the line-height relative and unit-less
-// * remove the pre, code styles
+// Please refer to developer.yahoo.com/yui/fonts/ for font sizing percentages
//
+// There are two custom edits:
+// * remove arial, helvetica from explicit font stack
+// * we normalize monospace styles ourselves
+//
@mixin html5-boilerplate-fonts {
- body { @include body-font; }
+ body { font:13px/1.231 sans-serif; *font-size:small; } // hack retained to preserve specificity
- table { @include table-font; }
+ table { font-size:inherit; font: 100%; }
- select, input, textarea { @include input-font; }
+ select, input, textarea, button { font:99% sans-serif; }
- pre, code, kbd, samp { @include monospace-font; }
+ // normalize monospace sizing
+ // meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
+ // en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
+ pre, code, kbd, samp { font-family: monospace, sans-serif; }
}
-
-@mixin body-font {
- font:$html5-boilerplate-font-size $html5-boilerplate-font-family; *font-size:small; *font:x-small; line-height:1.22;
-}
-
-@mixin input-font {
- font:99% $html5-boilerplate-font-family;
-}
-
-@mixin table-font {
- font-size:inherit; font:100%;
-}
-
-// normalize monospace sizing
-// meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
-// en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
-@mixin monospace-font {
- font-family: $html5-boilerplate-fixed-font-family;
-}
\ No newline at end of file