Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brendansudol/1f86e97c11876338b07cf0ea20ade624 to your computer and use it in GitHub Desktop.
Save brendansudol/1f86e97c11876338b07cf0ea20ade624 to your computer and use it in GitHub Desktop.
@font-stack: Helvetica, sans-serif; | $font-stack: Helvetica, sans-serif;
@primary-color: #333; | $primary-color: #333;
body { body {
font-family: @font-stack; | font-family: $font-stack;
color: @primary-color; | color: $primary-color;
} }
.transform(@property) { | @mixin transform($property) {
-webkit-transform: @property; | -webkit-transform: $property;
-ms-transform: @property; | -ms-transform: $property;
transform: @property; | transform: $property;
} }
.box { .box {
.transform(rotate(30deg)); | @include transform(rotate(30deg));
} }
nav { nav {
ul { ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
list-style: none; list-style: none;
li { li {
display: inline-block; display: inline-block;
} }
} }
} }
.link { .link {
& + & { & + & {
color: red; color: red;
} }
& & { & & {
color: green; color: green;
} }
&, &,
&ish { &ish {
color: cyan; color: cyan;
} }
} }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment