@bwui/css 0.1.8 → 0.1.11

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/src/wave-e.css CHANGED
@@ -8,31 +8,60 @@
8
8
  min-block-size: 100vh;
9
9
  }
10
10
 
11
+ /* --- Sidebar rail (H04, SBR, R58) -----------------------------------------
12
+ * A narrow aside combining brand identity with an icon-labelled nav list,
13
+ * for use with the bw-app-shell two-column layout. Inner nav items must use
14
+ * bw-nav-rail__list--icons (H03) to get correct accessible label hiding via
15
+ * clip-path. Using bw-btn directly for nav items is not supported (SBR-003).
16
+ *
17
+ * Width follows density tokens (SBR-011); transition uses bw-ease-standard
18
+ * (SBR-012). Hides below --bw-breakpoint-md like bw-sidebar and bw-rail
19
+ * (SBR-032).
20
+ */
11
21
  .bw-sidebar-rail {
12
22
  display: flex;
13
23
  flex-direction: column;
14
24
  gap: var(--bw-space-2);
15
25
  padding: var(--bw-space-4);
16
- border-inline-end: var(--bw-size-border-hairline, 1px) solid var(--bw-color-border);
26
+ border-inline-end: var(--bw-size-border-hairline) solid var(--bw-color-border);
17
27
  background: var(--bw-color-surface);
18
- min-inline-size: 14rem;
19
- transition: min-inline-size var(--bw-duration-fast, 0.15s) ease;
20
- }
21
-
22
- .bw-sidebar-rail[data-bw-collapsed="true"] {
23
- min-inline-size: 4.5rem;
28
+ min-inline-size: var(--bw-density-sidebar-width);
29
+ inline-size: var(--bw-density-sidebar-width);
30
+ transition:
31
+ inline-size var(--bw-duration-fast) var(--bw-ease-standard),
32
+ min-inline-size var(--bw-duration-fast) var(--bw-ease-standard);
24
33
  }
25
34
 
26
- .bw-sidebar-rail[data-bw-collapsed="true"] .bw-btn:not(.bw-sidebar-rail__toggle) {
27
- font-size: 0;
28
- padding-inline: 0.5rem;
29
- justify-content: center;
35
+ /* Presence attribute matches .bw-sidebar (empty or "true"). Cap width so
36
+ * content cannot keep the expanded min-size (SBR-011 / SBR-030). */
37
+ .bw-sidebar-rail[data-bw-collapsed] {
38
+ flex: 0 0 var(--bw-density-sidebar-width-collapsed);
39
+ min-inline-size: 0;
40
+ inline-size: var(--bw-density-sidebar-width-collapsed);
41
+ max-inline-size: var(--bw-density-sidebar-width-collapsed);
42
+ overflow: hidden;
43
+ padding-inline: var(--bw-space-2);
30
44
  }
31
45
 
46
+ /* The toggle button seats at the block-start of the rail. */
32
47
  .bw-sidebar-rail__toggle {
33
48
  align-self: flex-start;
34
49
  }
35
50
 
51
+ /* Hide at mobile: the drawer (bw-drawer inside bw-topbar) takes over as the
52
+ * primary nav entry point. Same breakpoint as bw-sidebar and bw-rail. */
53
+ @media (width < --theme(--breakpoint-md)) { /* SBR-032: same breakpoint as bw-sidebar and bw-rail in shell.css */
54
+ .bw-sidebar-rail {
55
+ display: none;
56
+ }
57
+ }
58
+
59
+ @media (prefers-reduced-motion: reduce) {
60
+ .bw-sidebar-rail {
61
+ transition: none;
62
+ }
63
+ }
64
+
36
65
  .bw-menubar {
37
66
  display: flex;
38
67
  flex-wrap: wrap;