4 ms·
My point is that plain CSS is already good at this. So then you don't need to make more components with their own interface to learn. <button class="btn la
by montroser 5y ago
My point is that plain CSS is already good at this. So then you don't need to make more components with their own interface to learn.
<button class="btn large shadow">Edit</button>
.btn {
...default button styles
}
.btn.large {
font-size: larger;
}
.btn.shadow {
box-shadow: 0 0 8px #0004;
}
- iovrthoughtthis 5y agobut now to understand what a single class might do to an elements style i have to check for ever possible combination .e.g .btn.large {} .field.large {} .fieldgroup.large {} .title.large {} .link.large {} .large {} to find all the elements that the .field.large declaration impacts we need to enumerate all the elements that have both .field and .large in any order. we've coupled out html and css files