respect even odd type coolo

This commit is contained in:
Luna D. 2024-12-19 19:47:45 +01:00
parent 66de088e1c
commit b4f86ff2db
No known key found for this signature in database
GPG key ID: 4B1C63448394F688

View file

@ -15,7 +15,7 @@
@define-mixin even-odd-type $classname, $type { @define-mixin even-odd-type $classname, $type {
.$(classname):nth-child(odd).$(type), .$(classname):nth-child(odd).$(type),
.$(classname):nth-child(odd) .$(type) { .$(classname):nth-child(odd) .$(type) {
background: var(--$(type)-even-color); background: var(--$(type)-odd-color);
} }
.$(classname):nth-child(even).$(type), .$(classname):nth-child(even).$(type),
@ -25,7 +25,7 @@
.$(classname):nth-child(even) .$(classname):nth-child(odd).$(type), .$(classname):nth-child(even) .$(classname):nth-child(odd).$(type),
.$(classname):nth-child(even) .$(classname):nth-child(odd) .$(type) { .$(classname):nth-child(even) .$(classname):nth-child(odd) .$(type) {
background: var(--$(type)-even-color); background: var(--$(type)-odd-color);
} }
} }