@kenjura/ursa 0.83.0 → 0.84.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.84.0
2
+ 2026-05-08
3
+
4
+ - Unified sticky headers are now standard
1
5
 
2
6
  # 0.83.0
3
7
  2026-05-07
@@ -1264,4 +1264,40 @@ footer#site-footer {
1264
1264
  -webkit-text-size-adjust: 100%;
1265
1265
  text-size-adjust: 100%;
1266
1266
  }
1267
+ }
1268
+
1269
+
1270
+ /* sticky unified header */
1271
+ article#main-content {
1272
+ h1, h2, h3 {
1273
+ position: sticky;
1274
+ z-index: 90;
1275
+ margin: 0;
1276
+
1277
+ &.stuck {
1278
+ background: var(--nav-top-bg);
1279
+ }
1280
+ }
1281
+ h1 {
1282
+ top: var(--global-nav-height);
1283
+ height: 3rem;
1284
+ line-height: 3rem;
1285
+ }
1286
+ h2 {
1287
+ top: calc(var(--global-nav-height) + 3rem);
1288
+ height: 2.25rem;
1289
+ line-height: 2.25rem;
1290
+ }
1291
+ h3 {
1292
+ top: calc(var(--global-nav-height) + 5.25rem);
1293
+ height: 1.75rem;
1294
+ line-height: 1.75rem;
1295
+ }
1296
+
1297
+ /* Hide stuck h2/h3 — the breadcrumb on the stuck h1 carries their text.
1298
+ Use visibility (not max-height/display) to preserve layout and avoid
1299
+ the flicker loop where collapsing the heading un-sticks it. */
1300
+ h2.stuck, h3.stuck {
1301
+ visibility: hidden;
1302
+ }
1267
1303
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kenjura/ursa",
3
3
  "author": "Andrew London <andrew@kenjura.com>",
4
4
  "type": "module",
5
- "version": "0.83.0",
5
+ "version": "0.84.0",
6
6
  "description": "static site generator from MD/wikitext/YML",
7
7
  "main": "lib/index.js",
8
8
  "bin": {