Created
August 29, 2020 19:25
-
-
Save Theo-denBlanken/2e0d344750276cae791f0d1e7078d7c8 to your computer and use it in GitHub Desktop.
Met de & kun je snel BEM selectoren genereren in Sass. Let op &__ en &--
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
.knoppen { | |
display: grid; | |
grid-gap: 1em; | |
grid-template-rows: repeat(auto-fill, 2em); | |
width: 7em; | |
margin: 0 .5em; | |
&--horizontaal { | |
width: 100%; | |
grid-template-columns: repeat(auto-fill, minmax(7em, auto)) | |
} | |
} | |
.knop { | |
background-color: darkcyan; | |
text-decoration: none; | |
text-align: center; | |
display: block; | |
border-radius: .2em; | |
&:hover { | |
background-color: forestgreen; | |
} | |
&__tekst { | |
line-height: 2.45em; | |
color: #fff; | |
font-family: Arial, Helvetica, sans-serif; | |
font-weight: 900; | |
font-size: .8em; | |
} | |
&--annuleer { | |
background-color: rgb(96, 96, 96); | |
&:hover { | |
background-color: rgb(34, 34, 34); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment