@duskmoon-dev/core 1.19.7 → 1.19.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,100 @@
1
1
  // Auto-generated from hover-3d.css
2
2
  export const css = `@layer components {
3
- .hover-3d { border-radius: var(--radius-md); }
4
- @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
5
- .hover-3d { transition: transform 200ms ease; }
6
- .hover-3d:hover:not(:focus-within) { transform: perspective(60rem) rotateX(var(--hover-3d-x, 2deg)) rotateY(var(--hover-3d-y, -2deg)); }
3
+ .hover-3d {
4
+ --hover-3d-axis: 0, 0, 0;
5
+ --hover-3d-angle: 0deg;
6
+ --hover-3d-shadow-x: 0rem;
7
+ --hover-3d-shadow-y: 0rem;
8
+ --hover-3d-shine: 100% 100%;
9
+ --hover-3d-ease: linear(0, 0.931 13.8%, 1.196 21.4%, 1.343 29.8%, 1.378 36%, 1.365 43.2%, 1.059 78%, 1);
10
+ display: inline-grid;
11
+ perspective: 75rem;
12
+ filter: drop-shadow(var(--hover-3d-shadow-x) var(--hover-3d-shadow-y) 0.6rem color-mix(in oklch, var(--color-shadow) 18%, transparent));
13
+ }
14
+
15
+ .hover-3d > :first-child {
16
+ position: relative;
17
+ grid-area: 1 / 1 / 4 / 4;
18
+ overflow: hidden;
19
+ transform: rotate3d(var(--hover-3d-axis), var(--hover-3d-angle));
20
+ transform-style: preserve-3d;
21
+ backface-visibility: hidden;
22
+ scale: 1;
23
+ outline: 0.5px solid transparent;
24
+ outline-offset: -1px;
25
+ }
26
+
27
+ .hover-3d > :first-child::before {
28
+ content: '';
29
+ position: absolute;
30
+ inset: 0;
31
+ z-index: 1;
32
+ inline-size: 33.333%;
33
+ block-size: 33.333%;
34
+ scale: 500%;
35
+ translate: var(--hover-3d-shine);
36
+ opacity: 0;
37
+ filter: blur(0.75rem);
38
+ background: radial-gradient(circle at 50%, rgb(255 255 255 / 0.28) 10%, transparent 50%);
39
+ pointer-events: none;
40
+ }
41
+
42
+ .hover-3d > :nth-child(n + 2) {
43
+ z-index: 2;
44
+ min-inline-size: 0;
45
+ min-block-size: 0;
46
+ scale: 1.2;
47
+ }
48
+
49
+ .hover-3d > :nth-child(2) { grid-area: 1 / 1; }
50
+ .hover-3d > :nth-child(3) { grid-area: 1 / 2; }
51
+ .hover-3d > :nth-child(4) { grid-area: 1 / 3; }
52
+ .hover-3d > :nth-child(5) { grid-area: 2 / 1; }
53
+ .hover-3d > :nth-child(6) { grid-area: 2 / 3; }
54
+ .hover-3d > :nth-child(7) { grid-area: 3 / 1; }
55
+ .hover-3d > :nth-child(8) { grid-area: 3 / 2; }
56
+ .hover-3d > :nth-child(9) { grid-area: 3 / 3; }
57
+
58
+ @media (prefers-reduced-motion: no-preference) {
59
+ .hover-3d { transition: filter 400ms ease-out; }
60
+
61
+ .hover-3d > :first-child {
62
+ transition:
63
+ transform 500ms var(--hover-3d-ease),
64
+ scale 500ms var(--hover-3d-ease),
65
+ outline-color 500ms ease-out;
66
+ }
67
+
68
+ .hover-3d > :first-child::before {
69
+ transition: translate 400ms ease-out, opacity 400ms ease-out;
70
+ }
71
+
72
+ .hover-3d:hover {
73
+ --hover-3d-ease: linear(0, 0.708 15.2%, 0.927 23.6%, 1.067 33%, 1.12 41%, 1.13 50.2%, 1.019 83.2%, 1);
74
+ }
75
+
76
+ .hover-3d:hover > :first-child { scale: 1.05; outline-color: rgb(255 255 255 / 0.07); }
77
+ .hover-3d:hover > :first-child::before { opacity: 1; }
78
+
79
+ .hover-3d:has(> :nth-child(2):hover) { --hover-3d-axis: -1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 0% 0%; }
80
+ .hover-3d:has(> :nth-child(3):hover) { --hover-3d-axis: -1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 100% 0%; }
81
+ .hover-3d:has(> :nth-child(4):hover) { --hover-3d-axis: -1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 200% 0%; }
82
+ .hover-3d:has(> :nth-child(5):hover) { --hover-3d-axis: 0, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shine: 0% 100%; }
83
+ .hover-3d:has(> :nth-child(6):hover) { --hover-3d-axis: 0, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shine: 200% 100%; }
84
+ .hover-3d:has(> :nth-child(7):hover) { --hover-3d-axis: 1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 0% 200%; }
85
+ .hover-3d:has(> :nth-child(8):hover) { --hover-3d-axis: 1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 100% 200%; }
86
+ .hover-3d:has(> :nth-child(9):hover) { --hover-3d-axis: 1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 200% 200%; }
87
+ }
88
+
89
+ @media (prefers-reduced-motion: reduce), print {
90
+ .hover-3d { filter: none; transition: none; }
91
+ .hover-3d > :first-child { transform: none; scale: 1; transition: none; }
92
+ .hover-3d > :first-child::before { display: none; }
93
+ }
94
+
95
+ @media print {
96
+ .hover-3d > :nth-child(n + 2) { display: none; }
7
97
  }
8
- @media print { .hover-3d { transform: none; } }
9
98
  }
10
99
  `;
11
100
 
@@ -1,17 +1,61 @@
1
1
  // Auto-generated from hover-gallery.css
2
2
  export const css = `@layer components {
3
- .hover-gallery { display: grid; gap: 0.5rem; min-inline-size: 0; color: var(--color-on-surface); }
4
- .hover-gallery-stage { aspect-ratio: var(--hover-gallery-ratio, 4 / 3); overflow: hidden; border-radius: var(--radius-md); }
5
- .hover-gallery-stage img { inline-size: 100%; block-size: 100%; object-fit: cover; }
6
- .hover-gallery-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
7
- .hover-gallery-controls > button { border: 1px solid currentColor; color: inherit; background: var(--color-surface-container); padding: 0.25rem; border-radius: var(--radius-sm); cursor: pointer; }
8
- .hover-gallery-controls img { display: block; inline-size: 3rem; block-size: 3rem; object-fit: cover; }
9
- .hover-gallery-controls > button[aria-pressed="true"] { color: var(--color-primary); outline: 2px solid currentColor; }
10
- .hover-gallery-controls > button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
11
- @media (hover: hover) and (prefers-reduced-motion: no-preference) {
12
- .hover-gallery-controls > button:hover { background: var(--color-primary-container); }
3
+ .hover-gallery {
4
+ --hover-gallery-items: 1;
5
+ display: inline-grid;
6
+ grid-template-columns: repeat(var(--hover-gallery-items), minmax(0, 1fr));
7
+ inline-size: 100%;
8
+ gap: 1px;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .hover-gallery:has(> :nth-child(3)) { --hover-gallery-items: 2; }
13
+ .hover-gallery:has(> :nth-child(4)) { --hover-gallery-items: 3; }
14
+ .hover-gallery:has(> :nth-child(5)) { --hover-gallery-items: 4; }
15
+ .hover-gallery:has(> :nth-child(6)) { --hover-gallery-items: 5; }
16
+ .hover-gallery:has(> :nth-child(7)) { --hover-gallery-items: 6; }
17
+ .hover-gallery:has(> :nth-child(8)) { --hover-gallery-items: 7; }
18
+ .hover-gallery:has(> :nth-child(9)) { --hover-gallery-items: 8; }
19
+ .hover-gallery:has(> :nth-child(10)) { --hover-gallery-items: 9; }
20
+
21
+ .hover-gallery > * {
22
+ grid-row: 1;
23
+ inline-size: 100%;
24
+ block-size: 100%;
25
+ min-inline-size: 0;
26
+ opacity: 0;
27
+ object-fit: cover;
28
+ }
29
+
30
+ .hover-gallery > :first-child {
31
+ grid-column: 1 / -1;
32
+ opacity: 1;
33
+ }
34
+
35
+ .hover-gallery > :nth-child(2) { grid-column: 1; }
36
+ .hover-gallery > :nth-child(3) { grid-column: 2; }
37
+ .hover-gallery > :nth-child(4) { grid-column: 3; }
38
+ .hover-gallery > :nth-child(5) { grid-column: 4; }
39
+ .hover-gallery > :nth-child(6) { grid-column: 5; }
40
+ .hover-gallery > :nth-child(7) { grid-column: 6; }
41
+ .hover-gallery > :nth-child(8) { grid-column: 7; }
42
+ .hover-gallery > :nth-child(9) { grid-column: 8; }
43
+ .hover-gallery > :nth-child(10) { grid-column: 9; }
44
+ .hover-gallery > :nth-child(n + 11) { display: none; }
45
+
46
+ .hover-gallery > :first-child { pointer-events: none; }
47
+
48
+ .hover-gallery > :nth-child(n + 2):is(:hover, :focus-visible) {
49
+ grid-column: 1 / -1;
50
+ opacity: 1;
51
+ }
52
+
53
+ .hover-gallery:has(> :nth-child(n + 2):is(:hover, :focus-visible)) > :first-child { opacity: 0; }
54
+
55
+ @media print {
56
+ .hover-gallery > :first-child { display: block; }
57
+ .hover-gallery > :nth-child(n + 2) { display: none; }
13
58
  }
14
- @media print { .hover-gallery-controls { display: none; } }
15
59
  }
16
60
  `;
17
61
 
@@ -1,66 +1,335 @@
1
1
  // Auto-generated from index.css
2
2
  export const css = `/* Explicitly opt-in. Not imported by core or components/index.css. */
3
+ @property --dm-aura-angle {
4
+ syntax: '<angle>';
5
+ inherits: false;
6
+ initial-value: 0deg;
7
+ }
3
8
  @layer components {
4
9
  .aura {
10
+ --aura-padding: 0.125rem;
11
+ --aura-radius: var(--radius-box);
5
12
  position: relative;
6
13
  isolation: isolate;
7
- border-radius: var(--radius-md);
8
- outline: 1px solid var(--color-primary);
14
+ display: inline-block;
15
+ padding: var(--aura-padding);
16
+ border-radius: calc(var(--aura-radius) + var(--aura-padding));
17
+ color: var(--color-primary);
9
18
  }
10
- .aura::before {
19
+
20
+ .aura:has(> :is(.btn, .input, .select, .textarea)) { --aura-radius: var(--radius-field); }
21
+ .aura:has(> :is(.badge, .checkbox, .toggle, .chip)) { --aura-radius: var(--radius-selector); }
22
+
23
+ .aura::before,
24
+ .aura::after {
11
25
  content: '';
12
26
  position: absolute;
13
27
  inset: 0;
14
28
  z-index: -1;
15
29
  border-radius: inherit;
16
- box-shadow: 0 0 1rem color-mix(in oklch, var(--color-primary) 35%, transparent);
30
+ background-image: conic-gradient(from var(--dm-aura-angle), transparent 0deg 220deg, currentColor 300deg, transparent 360deg);
17
31
  pointer-events: none;
18
32
  }
33
+
34
+ .aura::before {
35
+ opacity: 0.75;
36
+ filter: blur(0.2rem);
37
+ }
38
+
39
+ .aura::after {
40
+ opacity: 0.35;
41
+ filter: blur(0.9rem);
42
+ }
43
+
44
+ .aura > * {
45
+ position: relative;
46
+ z-index: 1;
47
+ }
48
+
49
+ .aura-dual::before,
50
+ .aura-dual::after {
51
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), transparent 0deg 70deg, currentColor 90deg 110deg, transparent 130deg 250deg, currentColor 270deg 290deg, transparent 310deg 360deg);
52
+ }
53
+
54
+ .aura-rainbow::before,
55
+ .aura-rainbow::after {
56
+ background-image: conic-gradient(from var(--dm-aura-angle) in oklch longer hue, transparent, oklch(78% 0.18 20), oklch(82% 0.16 140), oklch(76% 0.17 260), oklch(80% 0.18 350), transparent);
57
+ }
58
+
59
+ .aura-holo::before,
60
+ .aura-holo::after {
61
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(82% 0.17 327), oklch(75% 0.12 274), oklch(82% 0.11 191), oklch(91% 0.11 105), oklch(88% 0.08 68), oklch(82% 0.17 327) 12.5%);
62
+ }
63
+
64
+ .aura-gold::before,
65
+ .aura-gold::after {
66
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(66% 0.19 72), oklch(96% 0.08 103), oklch(72% 0.17 82), oklch(61% 0.12 76) 25%);
67
+ }
68
+
69
+ .aura-silver::before,
70
+ .aura-silver::after {
71
+ background-image: repeating-conic-gradient(from var(--dm-aura-angle), oklch(35% 0 0), oklch(92% 0 0), oklch(62% 0 0), oklch(82% 0 0), oklch(35% 0 0) 25%);
72
+ }
73
+
74
+ .aura-glow::before,
75
+ .aura-glow::after {
76
+ background-image: radial-gradient(closest-side, currentColor, transparent);
77
+ }
78
+
79
+ .aura-xs { --aura-padding: 0; }
80
+ .aura-sm { --aura-padding: 0.0625rem; }
81
+ .aura-md { --aura-padding: 0.125rem; }
82
+ .aura-lg { --aura-padding: 0.1875rem; }
83
+ .aura-xl { --aura-padding: 0.25rem; }
84
+
19
85
  @media (prefers-reduced-motion: no-preference) {
20
- .aura-animated::before { animation: dm-aura 4s ease-in-out infinite; }
86
+ .aura:not(.aura-glow)::before,
87
+ .aura:not(.aura-glow)::after {
88
+ animation: dm-aura-spin var(--aura-duration, var(--tw-duration, 6s)) linear infinite;
89
+ }
90
+
91
+ .aura-glow::before,
92
+ .aura-glow::after {
93
+ animation: dm-aura-glow var(--aura-duration, var(--tw-duration, 6s)) ease-in-out infinite;
94
+ }
95
+ }
96
+
97
+ @keyframes dm-aura-spin { to { --dm-aura-angle: 360deg; } }
98
+ @keyframes dm-aura-glow { 50% { opacity: 0.8; filter: blur(1.3rem); } }
99
+
100
+ @media print {
101
+ .aura { padding: 0; }
102
+ .aura::before,
103
+ .aura::after { display: none; }
21
104
  }
22
- @keyframes dm-aura { 50% { opacity: 0.4; } }
23
- @media print { .aura::before { display: none; } }
24
105
  }
25
106
 
26
107
  @layer components {
27
- .hover-3d { border-radius: var(--radius-md); }
28
- @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
29
- .hover-3d { transition: transform 200ms ease; }
30
- .hover-3d:hover:not(:focus-within) { transform: perspective(60rem) rotateX(var(--hover-3d-x, 2deg)) rotateY(var(--hover-3d-y, -2deg)); }
108
+ .hover-3d {
109
+ --hover-3d-axis: 0, 0, 0;
110
+ --hover-3d-angle: 0deg;
111
+ --hover-3d-shadow-x: 0rem;
112
+ --hover-3d-shadow-y: 0rem;
113
+ --hover-3d-shine: 100% 100%;
114
+ --hover-3d-ease: linear(0, 0.931 13.8%, 1.196 21.4%, 1.343 29.8%, 1.378 36%, 1.365 43.2%, 1.059 78%, 1);
115
+ display: inline-grid;
116
+ perspective: 75rem;
117
+ filter: drop-shadow(var(--hover-3d-shadow-x) var(--hover-3d-shadow-y) 0.6rem color-mix(in oklch, var(--color-shadow) 18%, transparent));
118
+ }
119
+
120
+ .hover-3d > :first-child {
121
+ position: relative;
122
+ grid-area: 1 / 1 / 4 / 4;
123
+ overflow: hidden;
124
+ transform: rotate3d(var(--hover-3d-axis), var(--hover-3d-angle));
125
+ transform-style: preserve-3d;
126
+ backface-visibility: hidden;
127
+ scale: 1;
128
+ outline: 0.5px solid transparent;
129
+ outline-offset: -1px;
130
+ }
131
+
132
+ .hover-3d > :first-child::before {
133
+ content: '';
134
+ position: absolute;
135
+ inset: 0;
136
+ z-index: 1;
137
+ inline-size: 33.333%;
138
+ block-size: 33.333%;
139
+ scale: 500%;
140
+ translate: var(--hover-3d-shine);
141
+ opacity: 0;
142
+ filter: blur(0.75rem);
143
+ background: radial-gradient(circle at 50%, rgb(255 255 255 / 0.28) 10%, transparent 50%);
144
+ pointer-events: none;
145
+ }
146
+
147
+ .hover-3d > :nth-child(n + 2) {
148
+ z-index: 2;
149
+ min-inline-size: 0;
150
+ min-block-size: 0;
151
+ scale: 1.2;
152
+ }
153
+
154
+ .hover-3d > :nth-child(2) { grid-area: 1 / 1; }
155
+ .hover-3d > :nth-child(3) { grid-area: 1 / 2; }
156
+ .hover-3d > :nth-child(4) { grid-area: 1 / 3; }
157
+ .hover-3d > :nth-child(5) { grid-area: 2 / 1; }
158
+ .hover-3d > :nth-child(6) { grid-area: 2 / 3; }
159
+ .hover-3d > :nth-child(7) { grid-area: 3 / 1; }
160
+ .hover-3d > :nth-child(8) { grid-area: 3 / 2; }
161
+ .hover-3d > :nth-child(9) { grid-area: 3 / 3; }
162
+
163
+ @media (prefers-reduced-motion: no-preference) {
164
+ .hover-3d { transition: filter 400ms ease-out; }
165
+
166
+ .hover-3d > :first-child {
167
+ transition:
168
+ transform 500ms var(--hover-3d-ease),
169
+ scale 500ms var(--hover-3d-ease),
170
+ outline-color 500ms ease-out;
171
+ }
172
+
173
+ .hover-3d > :first-child::before {
174
+ transition: translate 400ms ease-out, opacity 400ms ease-out;
175
+ }
176
+
177
+ .hover-3d:hover {
178
+ --hover-3d-ease: linear(0, 0.708 15.2%, 0.927 23.6%, 1.067 33%, 1.12 41%, 1.13 50.2%, 1.019 83.2%, 1);
179
+ }
180
+
181
+ .hover-3d:hover > :first-child { scale: 1.05; outline-color: rgb(255 255 255 / 0.07); }
182
+ .hover-3d:hover > :first-child::before { opacity: 1; }
183
+
184
+ .hover-3d:has(> :nth-child(2):hover) { --hover-3d-axis: -1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 0% 0%; }
185
+ .hover-3d:has(> :nth-child(3):hover) { --hover-3d-axis: -1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 100% 0%; }
186
+ .hover-3d:has(> :nth-child(4):hover) { --hover-3d-axis: -1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: -0.5rem; --hover-3d-shine: 200% 0%; }
187
+ .hover-3d:has(> :nth-child(5):hover) { --hover-3d-axis: 0, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shine: 0% 100%; }
188
+ .hover-3d:has(> :nth-child(6):hover) { --hover-3d-axis: 0, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shine: 200% 100%; }
189
+ .hover-3d:has(> :nth-child(7):hover) { --hover-3d-axis: 1, 1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: -0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 0% 200%; }
190
+ .hover-3d:has(> :nth-child(8):hover) { --hover-3d-axis: 1, 0, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 100% 200%; }
191
+ .hover-3d:has(> :nth-child(9):hover) { --hover-3d-axis: 1, -1, 0; --hover-3d-angle: 10deg; --hover-3d-shadow-x: 0.5rem; --hover-3d-shadow-y: 0.5rem; --hover-3d-shine: 200% 200%; }
192
+ }
193
+
194
+ @media (prefers-reduced-motion: reduce), print {
195
+ .hover-3d { filter: none; transition: none; }
196
+ .hover-3d > :first-child { transform: none; scale: 1; transition: none; }
197
+ .hover-3d > :first-child::before { display: none; }
198
+ }
199
+
200
+ @media print {
201
+ .hover-3d > :nth-child(n + 2) { display: none; }
31
202
  }
32
- @media print { .hover-3d { transform: none; } }
33
203
  }
34
204
 
35
205
  @layer components {
36
- .hover-gallery { display: grid; gap: 0.5rem; min-inline-size: 0; color: var(--color-on-surface); }
37
- .hover-gallery-stage { aspect-ratio: var(--hover-gallery-ratio, 4 / 3); overflow: hidden; border-radius: var(--radius-md); }
38
- .hover-gallery-stage img { inline-size: 100%; block-size: 100%; object-fit: cover; }
39
- .hover-gallery-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
40
- .hover-gallery-controls > button { border: 1px solid currentColor; color: inherit; background: var(--color-surface-container); padding: 0.25rem; border-radius: var(--radius-sm); cursor: pointer; }
41
- .hover-gallery-controls img { display: block; inline-size: 3rem; block-size: 3rem; object-fit: cover; }
42
- .hover-gallery-controls > button[aria-pressed="true"] { color: var(--color-primary); outline: 2px solid currentColor; }
43
- .hover-gallery-controls > button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
44
- @media (hover: hover) and (prefers-reduced-motion: no-preference) {
45
- .hover-gallery-controls > button:hover { background: var(--color-primary-container); }
46
- }
47
- @media print { .hover-gallery-controls { display: none; } }
206
+ .hover-gallery {
207
+ --hover-gallery-items: 1;
208
+ display: inline-grid;
209
+ grid-template-columns: repeat(var(--hover-gallery-items), minmax(0, 1fr));
210
+ inline-size: 100%;
211
+ gap: 1px;
212
+ overflow: hidden;
213
+ }
214
+
215
+ .hover-gallery:has(> :nth-child(3)) { --hover-gallery-items: 2; }
216
+ .hover-gallery:has(> :nth-child(4)) { --hover-gallery-items: 3; }
217
+ .hover-gallery:has(> :nth-child(5)) { --hover-gallery-items: 4; }
218
+ .hover-gallery:has(> :nth-child(6)) { --hover-gallery-items: 5; }
219
+ .hover-gallery:has(> :nth-child(7)) { --hover-gallery-items: 6; }
220
+ .hover-gallery:has(> :nth-child(8)) { --hover-gallery-items: 7; }
221
+ .hover-gallery:has(> :nth-child(9)) { --hover-gallery-items: 8; }
222
+ .hover-gallery:has(> :nth-child(10)) { --hover-gallery-items: 9; }
223
+
224
+ .hover-gallery > * {
225
+ grid-row: 1;
226
+ inline-size: 100%;
227
+ block-size: 100%;
228
+ min-inline-size: 0;
229
+ opacity: 0;
230
+ object-fit: cover;
231
+ }
232
+
233
+ .hover-gallery > :first-child {
234
+ grid-column: 1 / -1;
235
+ opacity: 1;
236
+ }
237
+
238
+ .hover-gallery > :nth-child(2) { grid-column: 1; }
239
+ .hover-gallery > :nth-child(3) { grid-column: 2; }
240
+ .hover-gallery > :nth-child(4) { grid-column: 3; }
241
+ .hover-gallery > :nth-child(5) { grid-column: 4; }
242
+ .hover-gallery > :nth-child(6) { grid-column: 5; }
243
+ .hover-gallery > :nth-child(7) { grid-column: 6; }
244
+ .hover-gallery > :nth-child(8) { grid-column: 7; }
245
+ .hover-gallery > :nth-child(9) { grid-column: 8; }
246
+ .hover-gallery > :nth-child(10) { grid-column: 9; }
247
+ .hover-gallery > :nth-child(n + 11) { display: none; }
248
+
249
+ .hover-gallery > :first-child { pointer-events: none; }
250
+
251
+ .hover-gallery > :nth-child(n + 2):is(:hover, :focus-visible) {
252
+ grid-column: 1 / -1;
253
+ opacity: 1;
254
+ }
255
+
256
+ .hover-gallery:has(> :nth-child(n + 2):is(:hover, :focus-visible)) > :first-child { opacity: 0; }
257
+
258
+ @media print {
259
+ .hover-gallery > :first-child { display: block; }
260
+ .hover-gallery > :nth-child(n + 2) { display: none; }
261
+ }
48
262
  }
49
263
 
50
264
  @layer components {
51
- .text-rotate { display: inline-grid; color: var(--color-on-surface); vertical-align: baseline; }
52
- .text-rotate > span { grid-area: 1 / 1; visibility: hidden; }
53
- .text-rotate > span:first-child { visibility: visible; }
265
+ .text-rotate {
266
+ display: inline-block;
267
+ block-size: 1lh;
268
+ overflow: hidden;
269
+ vertical-align: bottom;
270
+ white-space: nowrap;
271
+ color: var(--color-on-surface);
272
+ }
273
+
274
+ .text-rotate > * {
275
+ display: grid;
276
+ justify-items: start;
277
+ will-change: transform;
278
+ }
279
+
280
+ .text-rotate > * > * {
281
+ block-size: 1lh;
282
+ align-content: baseline;
283
+ clip-path: inset(0.5px 0);
284
+ }
285
+
54
286
  @media (prefers-reduced-motion: no-preference) {
55
- .text-rotate-animated > span { animation: dm-text-rotate var(--text-rotate-duration, 6s) steps(1, end) infinite; }
56
- .text-rotate-animated > span:nth-child(2) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3); }
57
- .text-rotate-animated > span:nth-child(3) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3 * 2); }
58
- .text-rotate-animated:is(:hover, :focus-within, .text-rotate-paused) > span { animation-play-state: paused; }
287
+ .text-rotate > :has(> :nth-child(2)):not(:has(> :nth-child(3))) { animation: dm-text-rotate-2 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
288
+ .text-rotate > :has(> :nth-child(3)):not(:has(> :nth-child(4))) { animation: dm-text-rotate-3 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
289
+ .text-rotate > :has(> :nth-child(4)):not(:has(> :nth-child(5))) { animation: dm-text-rotate-4 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
290
+ .text-rotate > :has(> :nth-child(5)):not(:has(> :nth-child(6))) { animation: dm-text-rotate-5 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
291
+ .text-rotate > :has(> :nth-child(6)):not(:has(> :nth-child(7))) { animation: dm-text-rotate-6 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
292
+ .text-rotate:is(:hover, :focus-within, .text-rotate-paused) { --text-rotate-play-state: paused; }
293
+ }
294
+
295
+ @keyframes dm-text-rotate-2 {
296
+ 0%, 45% { transform: translateY(0); }
297
+ 50%, 95% { transform: translateY(-1lh); }
298
+ 100% { transform: translateY(-2lh); }
59
299
  }
60
- @keyframes dm-text-rotate { 0%, 33.32% { visibility: visible; } 33.33%, 100% { visibility: hidden; } }
300
+ @keyframes dm-text-rotate-3 {
301
+ 0%, 28% { transform: translateY(0); }
302
+ 33%, 61% { transform: translateY(-1lh); }
303
+ 66%, 94% { transform: translateY(-2lh); }
304
+ 100% { transform: translateY(-3lh); }
305
+ }
306
+ @keyframes dm-text-rotate-4 {
307
+ 0%, 20% { transform: translateY(0); }
308
+ 25%, 45% { transform: translateY(-1lh); }
309
+ 50%, 70% { transform: translateY(-2lh); }
310
+ 75%, 95% { transform: translateY(-3lh); }
311
+ 100% { transform: translateY(-4lh); }
312
+ }
313
+ @keyframes dm-text-rotate-5 {
314
+ 0%, 15% { transform: translateY(0); }
315
+ 20%, 35% { transform: translateY(-1lh); }
316
+ 40%, 55% { transform: translateY(-2lh); }
317
+ 60%, 75% { transform: translateY(-3lh); }
318
+ 80%, 95% { transform: translateY(-4lh); }
319
+ 100% { transform: translateY(-5lh); }
320
+ }
321
+ @keyframes dm-text-rotate-6 {
322
+ 0%, 12% { transform: translateY(0); }
323
+ 16.67%, 28.67% { transform: translateY(-1lh); }
324
+ 33.33%, 45.33% { transform: translateY(-2lh); }
325
+ 50%, 62% { transform: translateY(-3lh); }
326
+ 66.67%, 78.67% { transform: translateY(-4lh); }
327
+ 83.33%, 95% { transform: translateY(-5lh); }
328
+ 100% { transform: translateY(-6lh); }
329
+ }
330
+
61
331
  @media print {
62
- .text-rotate > span { animation: none; visibility: hidden; }
63
- .text-rotate > span:first-child { visibility: visible; }
332
+ .text-rotate > * { animation: none; transform: none; }
64
333
  }
65
334
  }
66
335
 
@@ -1,18 +1,73 @@
1
1
  // Auto-generated from text-rotate.css
2
2
  export const css = `@layer components {
3
- .text-rotate { display: inline-grid; color: var(--color-on-surface); vertical-align: baseline; }
4
- .text-rotate > span { grid-area: 1 / 1; visibility: hidden; }
5
- .text-rotate > span:first-child { visibility: visible; }
3
+ .text-rotate {
4
+ display: inline-block;
5
+ block-size: 1lh;
6
+ overflow: hidden;
7
+ vertical-align: bottom;
8
+ white-space: nowrap;
9
+ color: var(--color-on-surface);
10
+ }
11
+
12
+ .text-rotate > * {
13
+ display: grid;
14
+ justify-items: start;
15
+ will-change: transform;
16
+ }
17
+
18
+ .text-rotate > * > * {
19
+ block-size: 1lh;
20
+ align-content: baseline;
21
+ clip-path: inset(0.5px 0);
22
+ }
23
+
6
24
  @media (prefers-reduced-motion: no-preference) {
7
- .text-rotate-animated > span { animation: dm-text-rotate var(--text-rotate-duration, 6s) steps(1, end) infinite; }
8
- .text-rotate-animated > span:nth-child(2) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3); }
9
- .text-rotate-animated > span:nth-child(3) { animation-delay: calc(var(--text-rotate-duration, 6s) / -3 * 2); }
10
- .text-rotate-animated:is(:hover, :focus-within, .text-rotate-paused) > span { animation-play-state: paused; }
25
+ .text-rotate > :has(> :nth-child(2)):not(:has(> :nth-child(3))) { animation: dm-text-rotate-2 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
26
+ .text-rotate > :has(> :nth-child(3)):not(:has(> :nth-child(4))) { animation: dm-text-rotate-3 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
27
+ .text-rotate > :has(> :nth-child(4)):not(:has(> :nth-child(5))) { animation: dm-text-rotate-4 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
28
+ .text-rotate > :has(> :nth-child(5)):not(:has(> :nth-child(6))) { animation: dm-text-rotate-5 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
29
+ .text-rotate > :has(> :nth-child(6)):not(:has(> :nth-child(7))) { animation: dm-text-rotate-6 var(--text-rotate-duration, var(--tw-duration, 10s)) linear infinite; animation-play-state: var(--text-rotate-play-state, running); }
30
+ .text-rotate:is(:hover, :focus-within, .text-rotate-paused) { --text-rotate-play-state: paused; }
11
31
  }
12
- @keyframes dm-text-rotate { 0%, 33.32% { visibility: visible; } 33.33%, 100% { visibility: hidden; } }
32
+
33
+ @keyframes dm-text-rotate-2 {
34
+ 0%, 45% { transform: translateY(0); }
35
+ 50%, 95% { transform: translateY(-1lh); }
36
+ 100% { transform: translateY(-2lh); }
37
+ }
38
+ @keyframes dm-text-rotate-3 {
39
+ 0%, 28% { transform: translateY(0); }
40
+ 33%, 61% { transform: translateY(-1lh); }
41
+ 66%, 94% { transform: translateY(-2lh); }
42
+ 100% { transform: translateY(-3lh); }
43
+ }
44
+ @keyframes dm-text-rotate-4 {
45
+ 0%, 20% { transform: translateY(0); }
46
+ 25%, 45% { transform: translateY(-1lh); }
47
+ 50%, 70% { transform: translateY(-2lh); }
48
+ 75%, 95% { transform: translateY(-3lh); }
49
+ 100% { transform: translateY(-4lh); }
50
+ }
51
+ @keyframes dm-text-rotate-5 {
52
+ 0%, 15% { transform: translateY(0); }
53
+ 20%, 35% { transform: translateY(-1lh); }
54
+ 40%, 55% { transform: translateY(-2lh); }
55
+ 60%, 75% { transform: translateY(-3lh); }
56
+ 80%, 95% { transform: translateY(-4lh); }
57
+ 100% { transform: translateY(-5lh); }
58
+ }
59
+ @keyframes dm-text-rotate-6 {
60
+ 0%, 12% { transform: translateY(0); }
61
+ 16.67%, 28.67% { transform: translateY(-1lh); }
62
+ 33.33%, 45.33% { transform: translateY(-2lh); }
63
+ 50%, 62% { transform: translateY(-3lh); }
64
+ 66.67%, 78.67% { transform: translateY(-4lh); }
65
+ 83.33%, 95% { transform: translateY(-5lh); }
66
+ 100% { transform: translateY(-6lh); }
67
+ }
68
+
13
69
  @media print {
14
- .text-rotate > span { animation: none; visibility: hidden; }
15
- .text-rotate > span:first-child { visibility: visible; }
70
+ .text-rotate > * { animation: none; transform: none; }
16
71
  }
17
72
  }
18
73
  `;