You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Currently you need to add .hack class name to a parent element so that the style of child elements could be affected, but sometimes not all the child elements want to be hacked, so maybe this way is better:
<h1class="hack-h1">heading 1</h1>
And only theme class name needs to be added to parent element:
The tricky part is adding the prefixes to the selectors equals more bytes down the wire, and I personally have been enjoying the minimalism of theme and ease of use as it stands.
It may be worth considering (haven't looked over yet, sorry) CSS namespaces if it meets the general need and helps facilitate component-based development (a la React and Vue) and allow finer control without increasing the amount of markup significantly.
I've been very pleased with Hack in current form, especially paired with the Bytesize icons@egoist suggested trying. And it's nice to see this discussion happening.
I got the Idea behind and there are some reasons, why it would be smart, but I don't think it's practical, to use a hack- prefix at every class. I would not care about the extra bytes because, like BEM syntax, gzip can handle that without a big impact (if I remember correctly).
Currently you need to add
.hack
class name to a parent element so that the style of child elements could be affected, but sometimes not all the child elements want to behacked
, so maybe this way is better:And only theme class name needs to be added to parent element:
The text was updated successfully, but these errors were encountered: