@nimtech/nimpress 2.10.0 → 2.10.2
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.
- package/dist/nimpress.es.js +2696 -2691
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/styles/themes/glass.css +46 -22
package/package.json
CHANGED
|
@@ -354,6 +354,33 @@
|
|
|
354
354
|
box-shadow: inset 0 1px 0 var(--np-glass-edge), var(--np-shadow-popover);
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
+
html[data-np-theme="glass"] .np-header-lead {
|
|
358
|
+
position: relative;
|
|
359
|
+
isolation: isolate;
|
|
360
|
+
justify-self: start;
|
|
361
|
+
width: fit-content;
|
|
362
|
+
max-width: 100%;
|
|
363
|
+
height: calc(var(--np-header-height) - 16px);
|
|
364
|
+
padding: 0 18px 0 12px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
html[data-np-theme="glass"] .np-header-lead .np-crumbs-slot {
|
|
368
|
+
width: auto;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
html[data-np-theme="glass"] .np-header-lead::before {
|
|
372
|
+
content: "";
|
|
373
|
+
position: absolute;
|
|
374
|
+
inset: 0;
|
|
375
|
+
z-index: -1;
|
|
376
|
+
border: 1px solid var(--np-glass-rim);
|
|
377
|
+
border-radius: var(--np-radius-pill);
|
|
378
|
+
background-color: var(--np-glass-ground);
|
|
379
|
+
backdrop-filter: var(--np-glass-frost);
|
|
380
|
+
-webkit-backdrop-filter: var(--np-glass-frost);
|
|
381
|
+
pointer-events: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
357
384
|
@supports (animation-timeline: scroll()) {
|
|
358
385
|
html[data-np-theme="glass"] .np-header::before {
|
|
359
386
|
animation: np-glass-header-frost linear both;
|
|
@@ -361,34 +388,29 @@
|
|
|
361
388
|
animation-range: 0 96px;
|
|
362
389
|
}
|
|
363
390
|
|
|
364
|
-
html[data-np-theme="glass"] .np-header-lead {
|
|
365
|
-
position: relative;
|
|
366
|
-
isolation: isolate;
|
|
367
|
-
justify-self: start;
|
|
368
|
-
width: fit-content;
|
|
369
|
-
max-width: 100%;
|
|
370
|
-
height: calc(var(--np-header-height) - 16px);
|
|
371
|
-
padding: 0 18px 0 12px;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
391
|
html[data-np-theme="glass"] .np-header-lead::before {
|
|
375
|
-
content: "";
|
|
376
|
-
position: absolute;
|
|
377
|
-
inset: 0;
|
|
378
|
-
z-index: -1;
|
|
379
|
-
border: 1px solid var(--np-glass-rim);
|
|
380
|
-
border-radius: var(--np-radius-pill);
|
|
381
|
-
background-color: var(--np-glass-ground);
|
|
382
|
-
backdrop-filter: var(--np-glass-frost);
|
|
383
|
-
-webkit-backdrop-filter: var(--np-glass-frost);
|
|
384
|
-
pointer-events: none;
|
|
385
392
|
animation: np-glass-lead-clear linear both;
|
|
386
393
|
animation-timeline: --np-glass-scroll;
|
|
387
394
|
animation-range: 0 96px;
|
|
388
395
|
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@supports not (animation-timeline: scroll()) {
|
|
399
|
+
html[data-np-theme="glass"] .np-header::before {
|
|
400
|
+
opacity: 0;
|
|
401
|
+
transition: opacity 0.2s ease;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
html[data-np-theme="glass"] .np-header-lead::before {
|
|
405
|
+
transition: opacity 0.2s ease;
|
|
406
|
+
}
|
|
389
407
|
|
|
390
|
-
html[data-np-theme="glass"] .np-
|
|
391
|
-
|
|
408
|
+
html[data-np-theme="glass"] .np-scrolled .np-header::before {
|
|
409
|
+
opacity: 1;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
html[data-np-theme="glass"] .np-scrolled .np-header-lead::before {
|
|
413
|
+
opacity: 0;
|
|
392
414
|
}
|
|
393
415
|
}
|
|
394
416
|
|
|
@@ -470,10 +492,12 @@
|
|
|
470
492
|
@media (prefers-reduced-motion: reduce) {
|
|
471
493
|
html[data-np-theme="glass"] .np-header::before {
|
|
472
494
|
animation: none;
|
|
495
|
+
transition: none;
|
|
473
496
|
}
|
|
474
497
|
|
|
475
498
|
html[data-np-theme="glass"] .np-header-lead::before {
|
|
476
499
|
animation: none;
|
|
500
|
+
transition: none;
|
|
477
501
|
}
|
|
478
502
|
|
|
479
503
|
html[data-np-theme="glass"] .np-card,
|