*, *:before, *:after {
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-smoothing: antialiased;
font-feature-settings: "kern";
font-kerning: normal;
}
.touchevents *,.touchevents *:before,.touchevents *:after { /* modernizr.js required */
text-rendering: optimizeSpeed; /* higher performance on mobile devices */
}
html {
font-size: 62.5%; /* Makes rem equal to px */
}
body {
font-size: 16px; /* Fallback for browsers which don't support rem unit http://caniuse.com/#feat=rem */
font-size: 1.6rem;
font-family: HelveticaNeue,TeXGyreHeros,FreeSans,"Nimbus Sans L","Liberation Sans",Arimo,Helvetica,Arial,sans-serif;
user-select: text;
}
Better rendering of fonts, font rendering optimized for performance on mobile devices, font-size set to 1.6rem=16px.
2 Responses
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.