@tearleads/windowing 0.2.49 → 0.2.50
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 +1 -1
- package/routed/RoutedPane.css +4 -5
- package/tokens.css +12 -3
- package/window/WindowBody.css +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tearleads/windowing",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.50",
|
|
4
4
|
"description": "App-agnostic window management for React: window state, window chrome, and the menu and sidebar primitives it renders with.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
package/routed/RoutedPane.css
CHANGED
|
@@ -282,11 +282,10 @@
|
|
|
282
282
|
|
|
283
283
|
/*
|
|
284
284
|
* Release the form measure on this tier. The mobile shell is single-column and
|
|
285
|
-
* deliberately edge-to-edge
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
* e2e/mobile-chrome.spec.ts). `100%` rather than `none` because consumers also
|
|
285
|
+
* deliberately edge-to-edge, but the tier runs all the way to 759px, well past
|
|
286
|
+
* the 34rem cap, so between those widths the cap would pull the column in and
|
|
287
|
+
* leave the pane empty beside it (asserted by e2e/form-measure.spec.ts).
|
|
288
|
+
* `100%` rather than `none` because consumers also
|
|
290
289
|
* read the token inside `min()`, where a keyword would invalidate the whole
|
|
291
290
|
* declaration; every capped element is already within its container's width, so
|
|
292
291
|
* this reads as "no cap" for all of them.
|
package/tokens.css
CHANGED
|
@@ -81,10 +81,19 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
84
|
+
* The active theme's scheme (see ThemeProvider) draws the browser's own
|
|
85
|
+
* controls, such as radios, form fields, and scrollbars, light or dark. Unlike
|
|
86
|
+
* the tokens above these outrank a bare `:root`: any stylesheet may declare
|
|
87
|
+
* `:root { color-scheme: light dark }` (pdf.js's viewer CSS does), and against
|
|
88
|
+
* a zero-specificity rule it won, so a light theme on a dark-mode OS drew every
|
|
89
|
+
* native control dark, filling unchecked radios solid. A theme's own
|
|
90
|
+
* `color-scheme` still applies before the provider stamps the attribute.
|
|
86
91
|
*/
|
|
87
|
-
:
|
|
92
|
+
:root[data-theme-scheme="light"] {
|
|
93
|
+
color-scheme: light;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:root[data-theme-scheme="dark"] {
|
|
88
97
|
color-scheme: dark;
|
|
89
98
|
}
|
|
90
99
|
|
package/window/WindowBody.css
CHANGED
|
@@ -30,9 +30,17 @@
|
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/*
|
|
34
|
+
* `--window-content-inset` publishes this padding to the content, so chrome
|
|
35
|
+
* that should run edge to edge (a host's tab strip, say) can cancel exactly
|
|
36
|
+
* it. Only this scroller pads; a window with a sidebar does not, so the
|
|
37
|
+
* property is unset there.
|
|
38
|
+
*/
|
|
33
39
|
.window-body-content-scroll {
|
|
40
|
+
--window-content-inset: var(--space-md);
|
|
41
|
+
|
|
34
42
|
height: 100%;
|
|
35
|
-
padding: var(--
|
|
43
|
+
padding: var(--window-content-inset);
|
|
36
44
|
overflow: auto;
|
|
37
45
|
scrollbar-gutter: var(--scrollbar-gutter);
|
|
38
46
|
}
|