@wintermuted/ui-theme 0.21.0

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.
@@ -0,0 +1,286 @@
1
+ /* Image gallery grid with hover-lift thumbnails. */
2
+
3
+ /**
4
+ * .gallery / .wm-gallery
5
+ * Responsive auto-fill image grid. Minimum cell width: 200 px.
6
+ */
7
+ .gallery,
8
+ .wm-gallery {
9
+ display: grid;
10
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
11
+ gap: 0.75rem;
12
+ }
13
+
14
+ /**
15
+ * .gallery-item / .wm-gallery-item
16
+ * Individual image cell. Border, radius, overflow clip, and hover lift.
17
+ * Wraps a plain <img> or an <a><img></a> pair.
18
+ */
19
+ .gallery-item,
20
+ .wm-gallery-item {
21
+ position: relative;
22
+ margin: 0;
23
+ border-radius: var(--wm-radius-base, 6px);
24
+ overflow: hidden;
25
+ border: 1px solid var(--wm-color-border);
26
+ background: var(--wm-color-surface-muted);
27
+ cursor: pointer;
28
+ transition:
29
+ box-shadow 0.2s ease,
30
+ transform 0.15s ease;
31
+ }
32
+
33
+ .gallery-item:hover,
34
+ .wm-gallery-item:hover {
35
+ box-shadow: var(--wm-shadow-soft);
36
+ transform: translateY(-2px);
37
+ }
38
+
39
+ .gallery-item img,
40
+ .wm-gallery-item img {
41
+ display: block;
42
+ width: 100%;
43
+ height: auto;
44
+ aspect-ratio: 16 / 10;
45
+ object-fit: cover;
46
+ transition: opacity 0.2s ease;
47
+ }
48
+
49
+ /**
50
+ * .gallery-item-caption / .wm-gallery-item-caption
51
+ * Optional overlay caption that appears on hover.
52
+ */
53
+ .gallery-item-caption,
54
+ .wm-gallery-item-caption {
55
+ position: absolute;
56
+ bottom: 0;
57
+ left: 0;
58
+ right: 0;
59
+ padding: 0.4rem 0.6rem;
60
+ font-size: 0.75rem;
61
+ color: var(--wm-color-text);
62
+ background: color-mix(in srgb, var(--wm-color-surface) 88%, transparent);
63
+ backdrop-filter: blur(4px);
64
+ opacity: 0;
65
+ transition: opacity 0.2s ease;
66
+ }
67
+
68
+ .gallery-item:hover .gallery-item-caption,
69
+ .wm-gallery-item:hover .wm-gallery-item-caption {
70
+ opacity: 1;
71
+ }
72
+
73
+ /**
74
+ * .gallery-item-figure / .wm-gallery-item-figure
75
+ * Resume-style gallery tile with persistent figcaption below the media.
76
+ */
77
+ .gallery-item-figure,
78
+ .wm-gallery-item-figure {
79
+ display: flex;
80
+ flex-direction: column;
81
+ margin: 0;
82
+ }
83
+
84
+ .gallery-item-figure figcaption,
85
+ .wm-gallery-item-figure figcaption {
86
+ font-size: 0.75rem;
87
+ color: var(--wm-color-text-muted);
88
+ padding: 0.4rem 0.6rem;
89
+ line-height: 1.4;
90
+ border-top: 1px solid var(--wm-color-border);
91
+ background: var(--wm-color-surface-solid);
92
+ }
93
+
94
+ /**
95
+ * .gallery-item-diagram / .wm-gallery-item-diagram
96
+ * Mermaid diagram tile used in resume project galleries.
97
+ */
98
+ .gallery-item-diagram .mermaid,
99
+ .wm-gallery-item-diagram .wm-mermaid {
100
+ padding: 0.5rem;
101
+ display: flex;
102
+ align-items: center;
103
+ justify-content: center;
104
+ flex: 1;
105
+ aspect-ratio: 16 / 10;
106
+ overflow: hidden;
107
+ background: var(--wm-color-surface-muted);
108
+ }
109
+
110
+ .gallery-item-diagram .mermaid svg,
111
+ .wm-gallery-item-diagram .wm-mermaid svg {
112
+ max-width: 100%;
113
+ max-height: 100%;
114
+ height: auto;
115
+ }
116
+
117
+ /**
118
+ * .gallery-placeholder / .wm-gallery-placeholder
119
+ * Design-first placeholder tile for when screenshots are not ready yet.
120
+ * Keep aspect ratio consistent with real images so layout does not shift later.
121
+ */
122
+ .gallery-placeholder,
123
+ .wm-gallery-placeholder {
124
+ display: grid;
125
+ place-items: center;
126
+ aspect-ratio: 16 / 10;
127
+ padding: 0.9rem;
128
+ background:
129
+ linear-gradient(
130
+ 135deg,
131
+ color-mix(in srgb, var(--wm-color-surface-strong) 88%, white) 0%,
132
+ var(--wm-color-surface-muted) 52%,
133
+ color-mix(in srgb, var(--wm-color-accent-soft) 24%, var(--wm-color-surface-muted)) 100%
134
+ );
135
+ color: var(--wm-color-text-muted);
136
+ text-align: center;
137
+ }
138
+
139
+ .gallery-placeholder::before,
140
+ .wm-gallery-placeholder::before {
141
+ content: "";
142
+ position: absolute;
143
+ inset: 0;
144
+ pointer-events: none;
145
+ background-image: linear-gradient(
146
+ 45deg,
147
+ transparent 0,
148
+ transparent 46%,
149
+ color-mix(in srgb, var(--wm-color-border) 64%, transparent) 46%,
150
+ color-mix(in srgb, var(--wm-color-border) 64%, transparent) 54%,
151
+ transparent 54%,
152
+ transparent 100%
153
+ );
154
+ background-size: 22px 22px;
155
+ opacity: 0.25;
156
+ }
157
+
158
+ .gallery-placeholder-content,
159
+ .wm-gallery-placeholder-content {
160
+ position: relative;
161
+ z-index: 1;
162
+ display: grid;
163
+ gap: 0.35rem;
164
+ }
165
+
166
+ .gallery-placeholder-title,
167
+ .wm-gallery-placeholder-title {
168
+ margin: 0;
169
+ font-size: 0.78rem;
170
+ text-transform: uppercase;
171
+ letter-spacing: 0.08em;
172
+ color: var(--wm-color-text-secondary);
173
+ font-weight: 600;
174
+ }
175
+
176
+ .gallery-placeholder-meta,
177
+ .wm-gallery-placeholder-meta {
178
+ margin: 0;
179
+ font-size: 0.72rem;
180
+ color: var(--wm-color-text-muted);
181
+ }
182
+
183
+ /**
184
+ * .gallery-lightbox-overlay / .wm-gallery-lightbox-overlay
185
+ * Full-screen lightbox for gallery items. Toggle with .active.
186
+ */
187
+ .gallery-lightbox-overlay,
188
+ .wm-gallery-lightbox-overlay {
189
+ position: fixed;
190
+ inset: 0;
191
+ z-index: 1000;
192
+ display: flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ background: color-mix(in srgb, black 82%, transparent);
196
+ backdrop-filter: blur(6px);
197
+ opacity: 0;
198
+ visibility: hidden;
199
+ transition: opacity 0.25s ease, visibility 0.25s ease;
200
+ padding: 1.25rem;
201
+ }
202
+
203
+ .gallery-lightbox-overlay.active,
204
+ .wm-gallery-lightbox-overlay.wm-active {
205
+ opacity: 1;
206
+ visibility: visible;
207
+ }
208
+
209
+ .gallery-lightbox-close,
210
+ .wm-gallery-lightbox-close {
211
+ position: absolute;
212
+ top: 1.25rem;
213
+ right: 1.5rem;
214
+ background: none;
215
+ border: none;
216
+ color: #fff;
217
+ font-size: 2rem;
218
+ cursor: pointer;
219
+ line-height: 1;
220
+ opacity: 0.7;
221
+ transition: opacity 0.15s ease;
222
+ }
223
+
224
+ .gallery-lightbox-close:hover,
225
+ .wm-gallery-lightbox-close:hover {
226
+ opacity: 1;
227
+ }
228
+
229
+ .gallery-lightbox-img,
230
+ .wm-gallery-lightbox-img {
231
+ max-width: min(92vw, 1200px);
232
+ max-height: 84vh;
233
+ border-radius: var(--wm-radius-base, 8px);
234
+ box-shadow: 0 8px 40px color-mix(in srgb, black 48%, transparent);
235
+ object-fit: contain;
236
+ border: 1px solid color-mix(in srgb, var(--wm-color-border) 72%, transparent);
237
+ }
238
+
239
+ .gallery-lightbox-nav,
240
+ .wm-gallery-lightbox-nav {
241
+ position: absolute;
242
+ top: 50%;
243
+ transform: translateY(-50%);
244
+ width: 2.4rem;
245
+ height: 2.4rem;
246
+ border-radius: var(--wm-radius-pill);
247
+ border: 1px solid color-mix(in srgb, var(--wm-color-border) 72%, transparent);
248
+ background: color-mix(in srgb, var(--wm-color-surface-solid) 84%, transparent);
249
+ color: var(--wm-color-text);
250
+ font-size: 1.25rem;
251
+ line-height: 1;
252
+ cursor: pointer;
253
+ display: inline-flex;
254
+ align-items: center;
255
+ justify-content: center;
256
+ transition: background 0.15s ease, opacity 0.15s ease;
257
+ }
258
+
259
+ .gallery-lightbox-nav:hover,
260
+ .wm-gallery-lightbox-nav:hover {
261
+ background: color-mix(in srgb, var(--wm-color-surface-solid) 96%, transparent);
262
+ }
263
+
264
+ .gallery-lightbox-nav-prev,
265
+ .wm-gallery-lightbox-nav-prev {
266
+ left: 1rem;
267
+ }
268
+
269
+ .gallery-lightbox-nav-next,
270
+ .wm-gallery-lightbox-nav-next {
271
+ right: 1rem;
272
+ }
273
+
274
+ .gallery-lightbox-status,
275
+ .wm-gallery-lightbox-status {
276
+ position: absolute;
277
+ bottom: 1.25rem;
278
+ left: 50%;
279
+ transform: translateX(-50%);
280
+ padding: 0.2rem 0.55rem;
281
+ border-radius: var(--wm-radius-pill);
282
+ background: color-mix(in srgb, black 42%, transparent);
283
+ color: #fff;
284
+ font-size: 0.74rem;
285
+ letter-spacing: 0.03em;
286
+ }
@@ -0,0 +1,53 @@
1
+ /* ── Inline Panels: Tonal in-context info blocks ────────────────────────────── */
2
+
3
+ /**
4
+ * .inline-panel / .wm-inline-panel
5
+ * Muted-surface inline info block. Use inside cards or below form fields
6
+ * to surface contextual information without a full alert bar.
7
+ * Add a semantic modifier for tonal color: -warning, -success, -danger, -accent.
8
+ */
9
+ .inline-panel,
10
+ .wm-inline-panel {
11
+ background: var(--wm-color-surface-muted);
12
+ border-radius: var(--wm-radius-xs, 4px);
13
+ padding: 0.75rem;
14
+ margin-top: 0.5rem;
15
+ font-size: 0.85rem;
16
+ line-height: 1.5;
17
+ }
18
+
19
+ .inline-panel a,
20
+ .wm-inline-panel a {
21
+ color: var(--wm-color-accent);
22
+ font-weight: 500;
23
+ }
24
+
25
+ /* ── Tonal modifiers ────────────────────────────────────────────────────────── */
26
+
27
+ .inline-panel-accent,
28
+ .wm-inline-panel-accent {
29
+ background: var(--wm-color-accent-soft);
30
+ border: 1px solid var(--wm-color-accent-border);
31
+ color: var(--wm-color-accent);
32
+ }
33
+
34
+ .inline-panel-success,
35
+ .wm-inline-panel-success {
36
+ background: var(--wm-color-success-soft);
37
+ border: 1px solid var(--wm-color-success-border);
38
+ color: var(--wm-color-success);
39
+ }
40
+
41
+ .inline-panel-warning,
42
+ .wm-inline-panel-warning {
43
+ background: var(--wm-color-warning-soft);
44
+ border: 1px solid var(--wm-color-warning-border);
45
+ color: var(--wm-color-warning);
46
+ }
47
+
48
+ .inline-panel-danger,
49
+ .wm-inline-panel-danger {
50
+ background: var(--wm-color-danger-soft);
51
+ border: 1px solid var(--wm-color-danger-border);
52
+ color: var(--wm-color-danger);
53
+ }