|
|
|
|
|
by tiborsaas
2251 days ago
|
|
Using SASS or LESS makes specificity a great tool .something {
.tells {
.me {
content: 'we do';
}
}
}
If you think of specificity as a kind of inheritance or scoping, then it makes a lot more sense.Also it's very powerful to extend a generic component: Framework: button.red { background: red; }
User code: button.red.disabled { background: grey; }
|
|