Last active
July 20, 2021 11:30
-
-
Save AlexandrHoroshih/b0a0e03a952b021ddff8a11767b0ea97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div block> | |
<div> | |
<div block> | |
<div> | |
<div block> | |
<div> | |
<div> | |
<div block> | |
<div> | |
<div block> | |
<div></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--woly-component-level: 7; | |
--woly-main-level: 5; | |
--woly-border-width: 1px; | |
--woly-const-m: 6px; | |
} | |
div { | |
padding: calc(1px * var(--woly-component-level) * var(--woly-main-level) - var(--woly-border-width)); | |
background-color: rgba(0,0,255,0.2); | |
} | |
div::after { | |
counter-reset: variable var(--woly-component-level); | |
content: counter(variable); | |
} | |
[block] { | |
--temp-level: max(calc(var(--woly-component-level) - 1), 0); | |
} | |
[block] > * { | |
--woly-component-level: var(--temp-level); | |
} | |
[block] > [block] { | |
background-color: red; | |
} | |
[block] > [block]:after { | |
content: "INVALID!!!!" | |
} | |
[set-root] { | |
--woly-component-level: var(--override, 5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment