Skip to content

Commit

Permalink
feat: added kin variant
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Dec 31, 2024
1 parent d6cf6e5 commit 65f5293
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/nimiq-css/src/unocss/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,15 @@ function createPreset() {
layer: variantLayer,
}
},
(matcher) => {
if (!matcher.startsWith('kin-hocus:'))
return matcher
return {
matcher: matcher.slice(10),
selector: (s) =>
`*:has(> [kin]:where(:hover,:focus-visible)) ${s}`,
}
},
(matcher) => {
if (!matcher.startsWith('selected:'))
return matcher
Expand Down

0 comments on commit 65f5293

Please sign in to comment.