Skip to content

Commit

Permalink
Override default browser font-family for inputs
Browse files Browse the repository at this point in the history
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
acusti committed Jun 28, 2014
1 parent 246f3bb commit 001373e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/chat/public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
}

html {
font-weight: 300;
-webkit-font-smoothing: antialiased;
}

html, input {
font-family:
"HelveticaNeue-Light",
"Helvetica Neue Light",
Expand All @@ -13,8 +18,6 @@ html {
Arial,
"Lucida Grande",
sans-serif;
font-weight: 300;
-webkit-font-smoothing: antialiased;
}

html, body {
Expand Down Expand Up @@ -144,4 +147,4 @@ ul {
position: absolute;
right: 0;
width: 100%;
}
}

0 comments on commit 001373e

Please sign in to comment.