Skip to content

Instantly share code, notes, and snippets.

@markdurrant
Created February 27, 2014 10:17
Show Gist options
  • Save markdurrant/9247583 to your computer and use it in GitHub Desktop.
Save markdurrant/9247583 to your computer and use it in GitHub Desktop.
// mobile first inline media quieries with breakpoints as variables
$medium-breakpoint: 20rem;
$large-breakpoint: 30rem;
p {
font-size: 1rem;
@media ( min-width: $medium-breakpoint ) {
font-size: 1.2rem;
}
@media ( min-width: $large-breakpoint ) {
font-size: 1.4rem;
}
}
h1 {
font-size: 3rem;
@media ( min-width: $medium-breakpoint ) {
font-size: 4rem;
}
@media ( min-width: $large-breakpoint ) {
font-size: 6rem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment