Re:Ask HN: HNers who got their “Show HNs” on homepage, how i...
by chrisan on Monday July 24, 2017 @06:55PM
(#14843493)
Can I ask the reasoning behind `is-` and `has-` prefixes on bulma modifiers? I'm sure you were asked before but didnt see anything in docs
vs
[ Parent
| on HN ]
Re:Ask HN: HNers who got their “Show HNs” on homepage, how i...
by bbx on Tuesday July 25, 2017 @04:47AM
(#14846199)
I felt it was easier to read and understand, since the "is-" or "has-" clearly shows it's a modifier class, and not a base class.
Also, it prevents the namespace from being "polluted" by class names that could be used for other things. For example, there's a "box" element, and a "is-boxed" modifier for the "navbar".
Lastly, the same modifier class can be used on different elements, since they are specific to the context in which they're used.