Skip to content

Instantly share code, notes, and snippets.

@mzo84
Last active August 18, 2016 05:53
Show Gist options
  • Save mzo84/49359b97b4796806cc15ebc731a8b8eb to your computer and use it in GitHub Desktop.
Save mzo84/49359b97b4796806cc15ebc731a8b8eb to your computer and use it in GitHub Desktop.
less damn code
// element margins
body * + * {
margin-top: 1.5rem;
}
// grid
.grid {
display: flex;
flex-flow: row wrap;
}
.grid > * {
flex-basis: 10em;
flex-grow: 1;
}
// global font size
element {
font-size: calc(1em + 1vw);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment