@jsenv/navi 0.29.134 → 0.29.136

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.
@@ -236,7 +236,37 @@ const smallTouchScreenSignal = computed(() => {
236
236
  */
237
237
 
238
238
  const SAFE_AREA_CSS = /* css */ `
239
+ /* Declared as lengths so that they COMPUTE to one: an unregistered custom
240
+ property keeps the calc() it was written as, and the sum below is then a
241
+ string no one can read back. Reading it off the computed style — which a
242
+ route transition does, to keep the band the page being left had (see
243
+ nav/transition_window.js) — only works for a registered property. */
244
+ @property --navi-safe-area-inset-top {
245
+ syntax: "<length>";
246
+ inherits: true;
247
+ initial-value: 0px;
248
+ }
249
+ @property --navi-safe-area-inset-right {
250
+ syntax: "<length>";
251
+ inherits: true;
252
+ initial-value: 0px;
253
+ }
254
+ @property --navi-safe-area-inset-bottom {
255
+ syntax: "<length>";
256
+ inherits: true;
257
+ initial-value: 0px;
258
+ }
259
+ @property --navi-safe-area-inset-left {
260
+ syntax: "<length>";
261
+ inherits: true;
262
+ initial-value: 0px;
263
+ }
264
+
239
265
  @layer navi {
266
+ /* Layered whole, rules included: the two rules below are offers, not
267
+ structure. [data-navi-safe-area] is an attribute the app puts on its own
268
+ scroller, so the app's own padding on that element has to win over what
269
+ navi suggests for it. */
240
270
  :root {
241
271
  /* The room each kind of furniture takes, declared here at zero and
242
272
  written by whoever takes it. A slot rather than a value: the sum below
@@ -612,6 +642,8 @@ const css = /* css */`
612
642
  line whether it is typed in a field or drawn in the page.
613
643
  See docs/typography.md. */
614
644
  --navi-line-height: 1.25;
645
+ /* Layered: the document's line is what navi writes on when the app says
646
+ nothing, so the app's own body rule wins. */
615
647
  line-height: var(--navi-line-height);
616
648
  /* The same line for a control, snapped to the pixel. The browser lays a
617
649
  line out at its exact height but paints the glyph on a pixel row: at