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 was archived by the owner on Aug 14, 2025. 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:
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).
Activity
[-]Consider change the way using hack[/-][+]Consider changing the way using hack[/+]dasilvacontin commentedon Nov 26, 2016
This change would make
hackvery cumbersome to use.What's the use case? It can probably be solved via:
.hackbut that applies your other style onwards.hackon sibling elements but not on a parent element.toh82 commentedon Jan 23, 2017
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).