Created
February 12, 2025 22:21
-
-
Save Lego2012/e29323f45b4614cb2f5c0d42c06b3fa0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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% { | |
--icon-url: url(/wp-content....svg); | |
--icon-color: var(--primary); | |
--icon-offset: 0 .5ex; | |
--icon-size: 1em; | |
--icon-gap: .5em; | |
--icon-display: flex; | |
--list-indent: 0; | |
} | |
%root% ul { | |
list-style: none; | |
padding: 0; | |
margin-inline-start: var(--list-indent); | |
} | |
%root% li { | |
display: grid; | |
grid-template-columns: auto minmax(0, 1fr); | |
gap: var(--icon-gap); | |
&::before { | |
content: '': | |
display: var(--icon-display); | |
inline-size: var(--icon-size); | |
block-size: var(--icon-size); | |
background-color: var(--icon-url); | |
mask-image: var(--icon-url); | |
mask-size: cover; | |
translate: var(--icon-offset); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment