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?

StackOverflow https://stackoverflow.com/questions/13164118

Question

What is the SASS way called for DRY'ing something like this up:

.content p, .content ul, .content li, .content a
Was it helpful?

Solution

All 4 of those elements have styles in common?

.content {
    p, ul, li, a {
        // styles they all share
    }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top