Skip to content

Instantly share code, notes, and snippets.

@SteveBarnett
Created October 21, 2014 14:06
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 SteveBarnett/4bf8950e9dd72339bbe4 to your computer and use it in GitHub Desktop.
Save SteveBarnett/4bf8950e9dd72339bbe4 to your computer and use it in GitHub Desktop.
// https://github.com/jakearchibald/sass-ie/
$fix-mqs: false !default;
@mixin respond-min($width) {
@if $fix-mqs {
@if $fix-mqs >= $width {
@content;
}
}
@else {
@media screen and (min-width: $width) {
@content;
}
}
}
// http://typecast.com/blog/a-more-modern-scale-for-web-typography
h1 {
font-size: 2em;
/* 2x body copy size = 32px */
line-height: 1.25;
/* 45px / 36px */
@include respond-min(min-width: 43.75em) {
font-size: 2.5em;
/* 2.5x body copy size = 40px */
line-height: 1.125;
}
@include respond-min(min-width: 56.25em) {
font-size: 3em;
/* 3x body copy size = 48px */
line-height: 1.05;
/* keep to a multiple of the 20px line height
and something more appropriate for display headings */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment