feat(scss): add query for mixin parameters

This commit is contained in:
Hoang Nguyen 2023-11-20 00:00:00 +07:00
parent a237751b11
commit 00eede715f
No known key found for this signature in database
GPG key ID: B0567C20730E9B11
2 changed files with 23 additions and 0 deletions

View file

@ -1 +1,5 @@
; inherits: css
(parameters
"(" @delimiter
")" @delimiter @sentinel) @container

View file

@ -0,0 +1,19 @@
@mixin admon($fg, $sign, $title) {
border-top: 2.25rem solid $fg;
background: color-mix(in srgb, $fg 50%, var(--color-bg));
&::before {
position: absolute;
content: $sign;
top: 0.4rem;
left: 0.75rem;
}
&::after {
position: absolute;
content: $title;
font-weight: bold;
top: 0.5rem;
left: 2.25rem;
}
}