Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ryanSrich
10y ago
0 comments
Save
Share
If you're using sass you just extend alert inside alert-danger. No need for two classes.
0 comments
3 comments · 1 top-level
top
newest
oldest
talmand
10y ago
· 2 in thread
But then you'll create bloat. Multiple classes assigned to an element is far more efficient then repeating properties with the same values over multiple classes in the stylesheet.
ryanSrich
OP
10y ago
Extending is not a mixin. Extend creates a bookmark (not repeating styles).
talmand
10y ago
Ah yes, you are correct. I remembered that incorrectly.
j
/
k
navigate · click thread line to collapse