What is the SASS way called for DRY'ing something like this up, if there is one --> .content p, .content ul, .content li, .content a?
-
23-07-2021 - |
Domanda
What is the SASS way called for DRY'ing something like this up:
.content p, .content ul, .content li, .content a
Soluzione
All 4 of those elements have styles in common?
.content {
p, ul, li, a {
// styles they all share
}
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow