@duskmoon-dev/core 1.3.2 → 1.5.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.
@@ -14,6 +14,12 @@
14
14
  padding: 0 1rem;
15
15
  background-color: var(--color-surface);
16
16
  color: var(--color-on-surface);
17
+ box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
18
+ }
19
+
20
+ /* Static App Bar (default) */
21
+ .appbar-static {
22
+ position: static;
17
23
  }
18
24
 
19
25
  /* Fixed App Bar */
@@ -32,19 +38,47 @@
32
38
  z-index: 1000;
33
39
  }
34
40
 
35
- /* App Bar with Shadow */
41
+ /* Top App Bar (default) */
42
+ .appbar-top {
43
+ top: 0;
44
+ }
45
+
46
+ /* Bottom App Bar */
47
+ .appbar-bottom {
48
+ position: fixed;
49
+ bottom: 0;
50
+ left: 0;
51
+ right: 0;
52
+ top: auto;
53
+ z-index: 1000;
54
+ }
55
+
56
+ /* App Bar with Shadow (elevated) */
36
57
  .appbar-elevated {
37
58
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
38
59
  }
39
60
 
61
+ /* Flat App Bar (no shadow) */
62
+ .appbar-flat {
63
+ box-shadow: none;
64
+ }
65
+
40
66
  /* App Bar with Border */
41
67
  .appbar-bordered {
42
68
  border-bottom: 1px solid var(--color-outline-variant);
69
+ box-shadow: none;
43
70
  }
44
71
 
45
72
  /* Transparent App Bar */
46
73
  .appbar-transparent {
47
74
  background-color: transparent;
75
+ box-shadow: none;
76
+ }
77
+
78
+ /* Backdrop Blur */
79
+ .appbar-blur {
80
+ backdrop-filter: blur(8px);
81
+ -webkit-backdrop-filter: blur(8px);
48
82
  }
49
83
 
50
84
  /* App Bar Navigation Icon */
@@ -167,6 +201,114 @@
167
201
  font-size: 1.5rem;
168
202
  }
169
203
 
204
+ /* Compact Size */
205
+ .appbar-compact {
206
+ min-height: 3rem;
207
+ padding: 0 0.75rem;
208
+ }
209
+
210
+ .appbar-compact .appbar-title,
211
+ .appbar-compact .appbar-heading {
212
+ font-size: 1rem;
213
+ line-height: 1.5rem;
214
+ }
215
+
216
+ .appbar-compact .appbar-nav,
217
+ .appbar-compact .appbar-action,
218
+ .appbar-compact .appbar-back {
219
+ width: 2rem;
220
+ height: 2rem;
221
+ }
222
+
223
+ /* Comfortable Size */
224
+ .appbar-comfortable {
225
+ min-height: 5rem;
226
+ padding: 0 1.5rem;
227
+ }
228
+
229
+ .appbar-comfortable .appbar-title,
230
+ .appbar-comfortable .appbar-heading {
231
+ font-size: 1.5rem;
232
+ line-height: 2rem;
233
+ }
234
+
235
+ /* Section Classes */
236
+ .appbar-leading {
237
+ display: flex;
238
+ align-items: center;
239
+ gap: 0.25rem;
240
+ flex-shrink: 0;
241
+ }
242
+
243
+ .appbar-trailing {
244
+ display: flex;
245
+ align-items: center;
246
+ gap: 0.25rem;
247
+ flex-shrink: 0;
248
+ margin-left: auto;
249
+ }
250
+
251
+ /* Heading Text */
252
+ .appbar-heading {
253
+ font-size: 1.25rem;
254
+ font-weight: 500;
255
+ line-height: 1.75rem;
256
+ margin: 0;
257
+ overflow: hidden;
258
+ text-overflow: ellipsis;
259
+ white-space: nowrap;
260
+ }
261
+
262
+ /* Back Button */
263
+ .appbar-back {
264
+ display: flex;
265
+ align-items: center;
266
+ justify-content: center;
267
+ width: 2.5rem;
268
+ height: 2.5rem;
269
+ color: var(--color-on-surface);
270
+ background-color: transparent;
271
+ border: none;
272
+ border-radius: 50%;
273
+ cursor: pointer;
274
+ transition: background-color 150ms ease-in-out;
275
+ flex-shrink: 0;
276
+ }
277
+
278
+ .appbar-back:hover {
279
+ background-color: var(--color-surface-container);
280
+ }
281
+
282
+ .appbar-back:focus-visible {
283
+ outline: 2px solid var(--color-primary);
284
+ outline-offset: 2px;
285
+ }
286
+
287
+ /* Search Input (direct on element) */
288
+ .appbar .appbar-search,
289
+ input.appbar-search {
290
+ flex: 1;
291
+ max-width: 32rem;
292
+ padding: 0.5rem 1rem;
293
+ font-size: 0.875rem;
294
+ color: var(--color-on-surface);
295
+ background-color: var(--color-surface-container);
296
+ border: none;
297
+ border-radius: 9999px;
298
+ transition: background-color 150ms ease-in-out;
299
+ }
300
+
301
+ .appbar .appbar-search:focus,
302
+ input.appbar-search:focus {
303
+ outline: none;
304
+ background-color: var(--color-surface-container-high);
305
+ }
306
+
307
+ .appbar .appbar-search::placeholder,
308
+ input.appbar-search::placeholder {
309
+ color: var(--color-on-surface-variant);
310
+ }
311
+
170
312
  /* Color Variants */
171
313
  .appbar-primary {
172
314
  background-color: var(--color-primary);
@@ -205,10 +347,53 @@
205
347
  color: var(--color-on-secondary-container);
206
348
  }
207
349
 
350
+ .appbar-secondary .appbar-subtitle {
351
+ color: var(--color-on-secondary);
352
+ opacity: 0.8;
353
+ }
354
+
355
+ .appbar-tertiary {
356
+ background-color: var(--color-tertiary);
357
+ color: var(--color-on-tertiary);
358
+ }
359
+
360
+ .appbar-tertiary .appbar-nav,
361
+ .appbar-tertiary .appbar-action {
362
+ color: var(--color-on-tertiary);
363
+ }
364
+
365
+ .appbar-tertiary .appbar-nav:hover,
366
+ .appbar-tertiary .appbar-action:hover {
367
+ background-color: var(--color-tertiary-container);
368
+ color: var(--color-on-tertiary-container);
369
+ }
370
+
371
+ .appbar-tertiary .appbar-subtitle {
372
+ color: var(--color-on-tertiary);
373
+ opacity: 0.8;
374
+ }
375
+
376
+ /* Surface Variants */
208
377
  .appbar-surface {
378
+ background-color: var(--color-surface);
379
+ }
380
+
381
+ .appbar-surface-container {
209
382
  background-color: var(--color-surface-container);
210
383
  }
211
384
 
385
+ .appbar-surface-container-low {
386
+ background-color: var(--color-surface-container-low);
387
+ }
388
+
389
+ .appbar-surface-container-high {
390
+ background-color: var(--color-surface-container-high);
391
+ }
392
+
393
+ .appbar-surface-container-highest {
394
+ background-color: var(--color-surface-container-highest);
395
+ }
396
+
212
397
  /* Center Title */
213
398
  .appbar-center {
214
399
  justify-content: space-between;
@@ -68,7 +68,8 @@
68
68
  border-color: var(--color-on-surface);
69
69
  }
70
70
 
71
- .checkbox:checked:hover:not(:disabled) {
71
+ .checkbox:checked:hover:not(:disabled),
72
+ .checkbox:indeterminate:hover:not(:disabled) {
72
73
  background-color: color-mix(in oklch, var(--checkbox-color), black 10%);
73
74
  border-color: color-mix(in oklch, var(--checkbox-color), black 10%);
74
75
  }