File tree Expand file tree Collapse file tree 4 files changed +9
-16
lines changed
packages/preset-wind/src/variants Expand file tree Collapse file tree 4 files changed +9
-16
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,8 @@ import { variants as miniVariants } from '@unocss/preset-mini/variants'
33import type { PresetWindOptions , Theme } from '..'
44import { variantCombinators } from './combinators'
55import { variantColorsScheme } from './dark'
6- import { variantStickyHover } from './experimental'
76import { variantContrasts , variantMotions , variantOrientations } from './media'
8- import { variantSpaceAndDivide } from './misc'
7+ import { variantSpaceAndDivide , variantStickyHover } from './misc'
98import { placeholderModifier } from './placeholder'
109
1110export function variants ( options : PresetWindOptions ) : Variant < Theme > [ ] {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22export * from './combinators'
33export * from './dark'
44export * from './default'
5- export * from './experimental'
65export * from './media'
76export * from './misc'
87export * from './placeholder'
Original file line number Diff line number Diff line change 11import type { Variant } from '@unocss/core'
2+ import { variantMatcher } from '@unocss/rule-utils'
23
34export const variantSpaceAndDivide : Variant = ( matcher ) => {
45 // test/svelte-scoped.test.ts:350:55
@@ -15,3 +16,10 @@ export const variantSpaceAndDivide: Variant = (matcher) => {
1516 }
1617 }
1718}
19+
20+ export const variantStickyHover : Variant [ ] = [
21+ variantMatcher ( '@hover' , input => ( {
22+ parent : `${ input . parent ? `${ input . parent } $$ ` : '' } @media (hover: hover) and (pointer: fine)` ,
23+ selector : `${ input . selector || '' } :hover` ,
24+ } ) ) ,
25+ ]
You can’t perform that action at this time.
0 commit comments