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
Using grid modifiers causes unnecessary selector bloat that quickly runs out of control if used frequently. [Gzip should solve this but I still think it is bad authoring to generate a lot of completely useless selectors for declaring margins and paddings on the grid when this can be avoided] This is caused by nesting grid__item directly under grid--modifier. One can use something like uncss to combat this, but there is quite an easy solution that needs the author to write one more line of SCSS. The modifiers should be written like this:
I've run into this as well, but there's a fairly simple solution (if slightly inconvenient).
Only extending the %grid, %grid--,%grid__item classes once.
This may seem kind of pointless at first glance, but you still get the power of the widths, breakpoints, and pushes without truly having the grid in your markup.
Using grid modifiers causes unnecessary selector bloat that quickly runs out of control if used frequently. [Gzip should solve this but I still think it is bad authoring to generate a lot of completely useless selectors for declaring margins and paddings on the grid when this can be avoided] This is caused by nesting grid__item directly under grid--modifier. One can use something like uncss to combat this, but there is quite an easy solution that needs the author to write one more line of SCSS. The modifiers should be written like this:
and declared like this:
The text was updated successfully, but these errors were encountered: