Replying to Avatar balas

I think you need to have at least another class to make it work and use something like:

.note {background:var(--color-1)}

.note.quote {background:var(--color-2)}

.note.quote .note {background:var(--color-3)}

or setup a var on the element itself, eg:

l.style.setProperty('--color','var(--color-even)';

and use:

.note {

--color:var(--color-odd)

background:var(--color)

}

Avatar
balas 2y ago

- l.style.setProperty('--color','var(--color-even)';

+ l.style.setProperty('--color','var(--color-even)');

- --color:var(--color-odd)

+ --color:var(--color-odd);

Reply to this note

Please Login to reply.

Discussion

No replies yet.