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

문제

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

.content p, .content ul, .content li, .content a
도움이 되었습니까?

해결책

All 4 of those elements have styles in common?

.content {
    p, ul, li, a {
        // styles they all share
    }
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top