Skip to content

Instantly share code, notes, and snippets.

@jem-computer
Created October 17, 2012 19:31
Show Gist options
  • Save jem-computer/3907603 to your computer and use it in GitHub Desktop.
Save jem-computer/3907603 to your computer and use it in GitHub Desktop.
// Love rems
=font-size($sizeValue: 1)
font-size: ($sizeValue * 16) + px
font-size: $sizeValue + rem
// http://csswizardry.com/2012/06/single-direction-margin-declarations/
// Could probably rewrite this into one mixin
=margin-right-rem($margin: 1.6)
margin-right: ($margin * 16) + px
margin-right: $margin + rem
=margin-bottom-rem($margin: 1.6)
margin-bottom: ($margin * 16) + px
margin-bottom: $margin + rem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment