Created
November 2, 2017 01:56
-
-
Save Avaray/59d5abb1fae4e4296780a1414663076e to your computer and use it in GitHub Desktop.
Pug // Condition in CSS in .pug partial file // https://stackoverflow.com/a/41618071/4415165
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
style | |
. | |
.someclass1{ | |
font-size:10px; | |
} | |
.someclass2{ | |
font-size:10px; | |
} | |
if options.key1=='a' | |
. | |
.someclass3{ | |
font-size:10px; | |
} | |
else | |
. | |
.someclass3{ | |
font-size:8px; | |
} | |
. | |
.someclass4{ | |
font-size:10px; | |
} | |
.someclass5{ | |
font-size:10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment