mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 03:06:14 -04:00
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:
parent
1039a4788d
commit
a8aa4b8936
1 changed files with 6 additions and 6 deletions
|
@ -50,13 +50,13 @@
|
|||
|
||||
// Striped
|
||||
@if enable-classes {
|
||||
#{$parent-selector} table {
|
||||
&.striped {
|
||||
tbody tr:nth-child(odd) th,
|
||||
tbody tr:nth-child(odd) td {
|
||||
background-color: var(#{$css-var-prefix}table-row-stripped-background-color);
|
||||
}
|
||||
/* clean-css ignore:start */
|
||||
#{$parent-selector} table.striped {
|
||||
tbody tr:nth-child(odd of :not([hidden])) th,
|
||||
tbody tr:nth-child(odd of :not([hidden])) td {
|
||||
background-color: var(#{$css-var-prefix}table-row-stripped-background-color);
|
||||
}
|
||||
}
|
||||
/* clean-css ignore:end */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue