Created
March 7, 2019 03:53
-
-
Save brendansudol/1f86e97c11876338b07cf0ea20ade624 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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