Skip to content

Instantly share code, notes, and snippets.

@pketh
Created April 26, 2014 20:34
Show Gist options
  • Save pketh/11330353 to your computer and use it in GitHub Desktop.
Save pketh/11330353 to your computer and use it in GitHub Desktop.
core mixins
.transition(@time) {
-webkit-transition: all @time;
-moz-transition: all @time;
-o-transition: all @time;
transition: all @time;
}
.line-height(@px) {
line-height: @px;
@rem: unit(@px, rem);
line-height: @rem / 16px;
}
.font-size(@px) {
font-size: @px;
@rem: unit(@px, rem);
font-size: @rem / 16;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment