Permalink
Browse files

Override default browser font-family for inputs

For consistent typography, explicitly declare font-family stack for `input` in addition to `html` (in Chrome and Safari on mac, the input will otherwise use default font for such elements, like Lucida Grande)
  • Loading branch information...
1 parent 246f3bb commit 001373ee176f8d9dc9d51d722c77cf5eb1b28a58 @acusti acusti committed Jun 28, 2014
Showing with 6 additions and 3 deletions.
  1. +6 −3 examples/chat/public/style.css
@@ -5,6 +5,11 @@
}
html {
+ font-weight: 300;
+ -webkit-font-smoothing: antialiased;
+}
+
+html, input {
font-family:
"HelveticaNeue-Light",
"Helvetica Neue Light",
@@ -13,8 +18,6 @@ html {
Arial,
"Lucida Grande",
sans-serif;
- font-weight: 300;
- -webkit-font-smoothing: antialiased;
}
html, body {
@@ -144,4 +147,4 @@ ul {
position: absolute;
right: 0;
width: 100%;
-}
+}

0 comments on commit 001373e

Please sign in to comment.