Skip to content

Instantly share code, notes, and snippets.

@puikinsh
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save puikinsh/27a978ea8be590a2196f to your computer and use it in GitHub Desktop.
Save puikinsh/27a978ea8be590a2196f to your computer and use it in GitHub Desktop.
Mobile first approach for font-family
p {
font-family: Arial,Helvetica,sans-serif;
}
@media only screen and (min-width: 980px) {
@font-face {
font-family: "OctinSports";
src: url("fonts/octinsports.eot");
src: url("fonts/octinsports.eot?#iefix") format("embedded-opentype"),
url("fonts/octinsports.woff") format("woff"),
url("fonts/octinsports.ttf") format("truetype"),
url("fonts/octinsports.svg#OctinSports") format("svg");
font-weight: normal;
font-style: normal;
}
p {
font-family: "OctinSports";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment