Skip to content

Instantly share code, notes, and snippets.

@andreferi3
Created July 12, 2020 04:36
Show Gist options
  • Select an option

  • Save andreferi3/146a987f5ea9a093fb24d3bc380c0327 to your computer and use it in GitHub Desktop.

Select an option

Save andreferi3/146a987f5ea9a093fb24d3bc380c0327 to your computer and use it in GitHub Desktop.
* {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
@include respond(tab-land) { // width < 1200px
font-size: 56.25%; // 1 rem = 9px; 9/16 = 56.25%
}
@include respond(tab-port) { // width < 900px
font-size: 50%; // 1 rem = 8px; 8/16 = 50%
}
@include respond(big-desktop) {
font-size: 75%; // 1 rem = 12px; 12/16 = 75%
}
}
body {
box-sizing: border-box;
padding: 3rem;
@include respond(tab-port) { // width < 900px
padding: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment