Created
April 23, 2020 05:38
-
-
Save Theo-denBlanken/81ae3e8bf1552895b5f9fb40f6637943 to your computer and use it in GitHub Desktop.
Een voorbeeld van nesting in sass
This file contains 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
// Nesting met SCSS | |
$primair: cornflowerblue; | |
.navigatie { | |
background-color: $primair; | |
li { | |
float: left; | |
} | |
a { | |
display: block; | |
padding: 1em 2em; | |
color: white; | |
&:hover { | |
background-color: darken($color: $primair, $amount: 20); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment