Skip to content

Instantly share code, notes, and snippets.

@Kcko
Created November 27, 2026 08:02
Show Gist options
  • Select an option

  • Save Kcko/69fa26b562117fe5a73f5df521ee4b2e to your computer and use it in GitHub Desktop.

Select an option

Save Kcko/69fa26b562117fe5a73f5df521ee4b2e to your computer and use it in GitHub Desktop.
span {
@apply inline-flex items-center gap-1.5;
&::before {
content: '';
@apply size-4 shrink-0 bg-black;
mask: var(--type-icon) center / contain no-repeat;
}
&[data-state-id='4'] {
--type-icon: url('/assets/gfx/svg/fe-servis.svg');
}
&[data-state-id='5'] {
--type-icon: url('/assets/gfx/svg/fe-lupa.svg');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment