Created
June 27, 2015 08:44
-
-
Save airen/3318a8752424e31ce419 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
$p-font-sizes: ( | |
null : 15px, | |
480px : 16px, | |
640px : 17px, | |
1024px: 19px | |
); | |
$h1-font-sizes: ( | |
null : 28px, | |
480px : 31px, | |
640px : 33px, | |
1024px: 36px | |
); | |
@mixin font-size($fs-map) { | |
@each $fs-breakpoint, $fs-font-size in $fs-map { | |
@if $fs-breakpoint == null { | |
font-size: $fs-font-size; | |
} | |
@else { | |
@media screen and (min-width: $fs-breakpoint) { | |
font-size: $fs-font-size; | |
} | |
} | |
} | |
} | |
h1 { | |
@include font-size($h1-font-sizes); | |
} | |
p, ul, ol { | |
@include font-size($p-font-sizes); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 { | |
font-size: 28px; | |
} | |
@media screen and (min-width: 480px) { | |
h1 { | |
font-size: 31px; | |
} | |
} | |
@media screen and (min-width: 640px) { | |
h1 { | |
font-size: 33px; | |
} | |
} | |
@media screen and (min-width: 1024px) { | |
h1 { | |
font-size: 36px; | |
} | |
} | |
p, ul, ol { | |
font-size: 15px; | |
} | |
@media screen and (min-width: 480px) { | |
p, ul, ol { | |
font-size: 16px; | |
} | |
} | |
@media screen and (min-width: 640px) { | |
p, ul, ol { | |
font-size: 17px; | |
} | |
} | |
@media screen and (min-width: 1024px) { | |
p, ul, ol { | |
font-size: 19px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment