@nimtech/nimpress 2.10.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimtech/nimpress",
3
- "version": "2.10.1",
3
+ "version": "2.10.2",
4
4
  "description": "Svelte 5 docs framework that supports it all.",
5
5
  "author": "nimling",
6
6
  "license": "Apache-2.0",
@@ -368,6 +368,19 @@
368
368
  width: auto;
369
369
  }
370
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
+
371
384
  @supports (animation-timeline: scroll()) {
372
385
  html[data-np-theme="glass"] .np-header::before {
373
386
  animation: np-glass-header-frost linear both;
@@ -376,22 +389,31 @@
376
389
  }
377
390
 
378
391
  html[data-np-theme="glass"] .np-header-lead::before {
379
- content: "";
380
- position: absolute;
381
- inset: 0;
382
- z-index: -1;
383
- border: 1px solid var(--np-glass-rim);
384
- border-radius: var(--np-radius-pill);
385
- background-color: var(--np-glass-ground);
386
- backdrop-filter: var(--np-glass-frost);
387
- -webkit-backdrop-filter: var(--np-glass-frost);
388
- pointer-events: none;
389
392
  animation: np-glass-lead-clear linear both;
390
393
  animation-timeline: --np-glass-scroll;
391
394
  animation-range: 0 96px;
392
395
  }
393
396
  }
394
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
+ }
407
+
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;
414
+ }
415
+ }
416
+
395
417
  html[data-np-theme="glass"] .np-dropdown-trigger,
396
418
  html[data-np-theme="glass"] .np-api-collapse-all {
397
419
  background-color: var(--np-glass-control);
@@ -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,