Created
March 8, 2023 13:25
-
-
Save glipitch/93096b565fd9801425604618cf643ca3 to your computer and use it in GitHub Desktop.
Display outlines on nested elements
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 /*or select specific element(s)*/ { | |
--outline-width: .01px; | |
} | |
* { | |
outline: var(--outline-width) solid red; | |
} | |
* * { | |
outline: var(--outline-width) solid green | |
} | |
* * * { | |
outline: var(--outline-width) solid orange | |
} | |
* * * * { | |
outline: var(--outline-width) solid blue | |
} | |
* * * * * { | |
outline: var(--outline-width) solid red | |
} | |
* * * * * * { | |
outline: var(--outline-width) solid green | |
} | |
* * * * * * * { | |
outline: var(--outline-width) solid orange | |
} | |
* * * * * * * * { | |
outline: var(--outline-width) solid blue | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment