Skip to content

Instantly share code, notes, and snippets.

@fdaciuk
Created October 29, 2013 15:52
Show Gist options
  • Save fdaciuk/7217291 to your computer and use it in GitHub Desktop.
Save fdaciuk/7217291 to your computer and use it in GitHub Desktop.
Mixin para usar qualquer propriedade com REM, com fallback para PX
// Configuração para HTML
html
font-size: 62.5%
@mixin rem( $prop, $val )
#{$prop} : $val + px // pixels
#{$prop} : $val / 10 + rem // rem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment