Striped table rows cleancss fix

Its a little dirty, but it works. CleanCSS was causing the issue, and we can tell it to not modify that code block.
I tried it a few different ways before I settings with this.
This commit is contained in:
JWB 2025-03-15 19:35:02 -04:00 committed by GitHub
parent 1039a4788d
commit a8aa4b8936
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,13 +50,13 @@
// Striped // Striped
@if enable-classes { @if enable-classes {
#{$parent-selector} table { /* clean-css ignore:start */
&.striped { #{$parent-selector} table.striped {
tbody tr:nth-child(odd) th, tbody tr:nth-child(odd of :not([hidden])) th,
tbody tr:nth-child(odd) td { tbody tr:nth-child(odd of :not([hidden])) td {
background-color: var(#{$css-var-prefix}table-row-stripped-background-color); background-color: var(#{$css-var-prefix}table-row-stripped-background-color);
}
} }
} }
/* clean-css ignore:end */
} }
} }