n4j1Br4ch1D / postcss-obfuscator

PostCSS plugin that helps you protect your CSS code by obfuscating class names and ids. with advanced customizable configuration.
MIT License
138 stars 5 forks source link

Tailwindcss Advanced Classes: 1-parentheses removed for (@supports, [@media, nth-of-type, ...) #13

Closed n4j1Br4ch1D closed 1 year ago

n4j1Br4ch1D commented 1 year ago

https://tailwindcss.com/docs/hover-focus-and-other-states#supports

11 #12


      {/* prblm with (*) beign removed */}
      <span class="group-[:nth-of-type(3)_&]:block">9</span>
      <span class="[@supports(display:grid)]:grid">7</span>
      <span class="[@media(any-hover:hover){&:hover}]:opacity-100">12</span>

but should work for

.trythis:nth-child(even) {
    background-color: green;
}
      <span class="trythis">the 3rd</span>