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
And those px-2, px-3@sm, pl-0@md, and pr-3@md classes are defined in this stylesheet.
The purified CSS correctly strips all of the ...@lg classes, but it appears that all classes using @sm & @md are still included, because I used at least one class with either of those suffixes in the supplied content.
There are also many other unused selectors also not being removed that do not use escaped characters, e.g. .lineHeight-2, .display-none, .table, overflow-auto. I suspect this is because the following classes are used: lineHeight-3, display-none@md, overflow-hidden (I’m not sure how to explain the .table selector, except that I use <table>s in the HTML).
Is this a bug? Or is that simply the level of granularity for matching that is possible in Purify?
Thanks for your help. I’m happy to provide more information, if you let me know what you need.
The text was updated successfully, but these errors were encountered:
Hey, I know that this is an old issue, but I've run into a similar problem and found the bug. Here's the merge request in case you're interested in a fix: #130.
I’m using a style system similar to Basscss, which can be seen here: https://github.com/kylegach/kylegach_com/tree/master/styles/modules.
A portion of my HTML can look like this:
And those
px-2
,px-3@sm
,pl-0@md
, andpr-3@md
classes are defined in this stylesheet.The purified CSS correctly strips all of the
...@lg
classes, but it appears that all classes using@sm
&@md
are still included, because I used at least one class with either of those suffixes in the supplied content.There are also many other unused selectors also not being removed that do not use escaped characters, e.g.
.lineHeight-2
,.display-none
,.table
,overflow-auto
. I suspect this is because the following classes are used:lineHeight-3
,display-none@md
,overflow-hidden
(I’m not sure how to explain the.table
selector, except that I use<table>
s in the HTML).Is this a bug? Or is that simply the level of granularity for matching that is possible in Purify?
Thanks for your help. I’m happy to provide more information, if you let me know what you need.
The text was updated successfully, but these errors were encountered: