Skip to content

Instantly share code, notes, and snippets.

@furzeface
Last active December 31, 2015 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furzeface/7920210 to your computer and use it in GitHub Desktop.
Save furzeface/7920210 to your computer and use it in GitHub Desktop.
An example of my new set of media queries. Flexible, more fluid media queries.
//=Variables
//=Media Queries
$breakpoint-tiny: 20em;
$breakpoint-small: 30em;
$breakpoint-medium: 50em;
$breakpoint-extra-medium: 65em; //lol
$breakpoint-large: 80em;
$breakpoint-extra-large: 100em;
//=Global Styles
html {
font-size: 65%;
@media all and (min-width: $breakpoint-tiny) {
font-size: 80%;
}
@media all and (min-width: $breakpoint-small) {
font-size: 90%;
}
@media all and (min-width: $breakpoint-medium) {
font-size: 100%;
}
@media all and (min-width: $breakpoint-large) {
font-size: 130%;
}
@media all and (min-width: $breakpoint-extra-large) {
font-size: 150%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment