News for hackers. Stuff that matters.
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

    <a class="button is-primary is-inverted is-outlined">Invert Outlined</a>  
vs

    <a class="button primary inverted outlined">Invert Outlined</a>
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.

Re:Ask HN: HNers who got their “Show HNs” on homepage, how i... by chrisan on Tuesday July 25, 2017 @09:50PM (#14853231)
Thanks for the reply, makes sense now that you explain it that way :)