@astronox/core 0.4.16 → 0.4.18

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": "@astronox/core",
3
- "version": "0.4.16",
3
+ "version": "0.4.18",
4
4
  "description": "Reusable Astro components, patterns, styles, and infrastructure for AstroNox sites.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -62,10 +62,10 @@ const resolvedTone = tone ?? dataTone;
62
62
  <slot name="head" />
63
63
  </head>
64
64
  <body>
65
- <div class="site-shell">
65
+ <div class="site-shell" data-site-scroll-root>
66
66
  <slot name="skip-link" />
67
67
  <slot name="header" />
68
- <div class="site-viewport" data-site-scroll-root data-site-viewport>
68
+ <div class="site-viewport" data-site-viewport>
69
69
  <main id="content" class="site-main" tabindex="-1">
70
70
  <div class="site-main__content">
71
71
  {
@@ -1,3 +1,4 @@
1
+ html:has(.modal[open])[data-site-scroll-root],
1
2
  html:has(.modal[open]) [data-site-scroll-root] {
2
3
  overflow-y: hidden;
3
4
  }
@@ -66,7 +66,10 @@ body {
66
66
  height: 100vh;
67
67
  min-height: 100vh;
68
68
  grid-template-rows: auto minmax(0, 1fr);
69
- overflow: hidden;
69
+ overflow-x: hidden;
70
+ overflow-y: auto;
71
+ scroll-padding-block-start: var(--nox-site-header-responsive-height);
72
+ scrollbar-gutter: stable;
70
73
  background: var(--nox-page-background);
71
74
  }
72
75
 
@@ -133,14 +136,12 @@ p {
133
136
 
134
137
  .site-viewport {
135
138
  --site-content-gap: var(--nox-space-5);
139
+ --nox-sticky-viewport-offset: var(--nox-site-header-responsive-height);
136
140
 
137
141
  min-width: 0;
138
142
  min-height: 0;
139
- overflow-x: hidden;
140
- overflow-y: auto;
141
- scrollbar-gutter: stable;
143
+ overflow: visible;
142
144
  background: var(--nox-page-background);
143
- overscroll-behavior-y: contain;
144
145
  }
145
146
 
146
147
  .site-main {