@broberg/app-shell 0.2.1 → 0.2.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/css/app-shell.css +8 -1
- package/package.json +1 -1
package/css/app-shell.css
CHANGED
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
color: var(--fg);
|
|
25
25
|
}
|
|
26
26
|
.bas-root *, .bas-root *::before, .bas-root *::after { box-sizing: border-box; }
|
|
27
|
-
|
|
27
|
+
/* Zero specificity on purpose: `.bas-root button` (0,1,1) beat `.bas-item`'s
|
|
28
|
+
* 13px (0,1,0), so an item with children — a <button> — came out in the page's
|
|
29
|
+
* font size next to its <a> siblings (appkit, Lens 8ce4cc94). */
|
|
30
|
+
:where(.bas-root button) { font: inherit; }
|
|
28
31
|
|
|
29
32
|
/* ── top bar ── */
|
|
30
33
|
.bas-topbar {
|
|
@@ -52,6 +55,10 @@
|
|
|
52
55
|
|
|
53
56
|
/* ── sidebar ── */
|
|
54
57
|
.bas-sidebar {
|
|
58
|
+
/* sticky makes its own stacking context, so the rail's flyout can only rise
|
|
59
|
+
* as high as the sidebar does; without this <main> paints over it and takes
|
|
60
|
+
* its clicks (appkit, Lens 839394b1). Below the top bar (50). */
|
|
61
|
+
z-index: 20;
|
|
55
62
|
flex: 0 0 240px; width: 240px;
|
|
56
63
|
position: sticky; top: var(--bas-top); align-self: flex-start;
|
|
57
64
|
height: calc(100dvh - var(--bas-top));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broberg/app-shell",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The fleet's app shell: collapsible sidebar (phone: rail or drawer), top bar with the notification bell and user menu as standard, page header and tabs. Framework-free core + Preact (Stack B). Styled on @broberg/theme tokens. Avatar from Broberg ID, initials otherwise — no Gravatar.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|