@nonoun/native-ui 0.2.10 → 0.4.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/dist/components-lean.css +20 -941
- package/dist/components.css +20 -948
- package/dist/components.js +66 -498
- package/dist/core.js +121 -38
- package/dist/custom-elements.json +3971 -6744
- package/dist/foundation.css +5 -6
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/kernel.js +208 -208
- package/dist/native-ui-lean.css +25 -947
- package/dist/native-ui.css +25 -954
- package/dist/native-ui.js +4 -4
- package/dist/register-all.js +4 -4
- package/dist/traits/drag-controller.d.ts.map +1 -1
- package/dist/traits.js +3 -3
- package/dist/ui-icon.js +1 -1
- package/package.json +6 -9
- package/dist/components/ui-nav/index.d.ts +0 -6
- package/dist/components/ui-nav/index.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-element.d.ts +0 -20
- package/dist/components/ui-nav/ui-nav-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-group-element.d.ts +0 -24
- package/dist/components/ui-nav/ui-nav-group-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-group-header-element.d.ts +0 -7
- package/dist/components/ui-nav/ui-nav-group-header-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav-item-element.d.ts +0 -23
- package/dist/components/ui-nav/ui-nav-item-element.d.ts.map +0 -1
- package/dist/components/ui-nav/ui-nav.d.ts +0 -2
- package/dist/components/ui-nav/ui-nav.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/index.d.ts +0 -3
- package/dist/containers/ui-layout-chat/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/ui-layout-chat-element.d.ts +0 -14
- package/dist/containers/ui-layout-chat/ui-layout-chat-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-chat/ui-layout-chat.d.ts +0 -3
- package/dist/containers/ui-layout-chat/ui-layout-chat.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/index.d.ts +0 -3
- package/dist/containers/ui-layout-inspector/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/ui-layout-inspector-element.d.ts +0 -14
- package/dist/containers/ui-layout-inspector/ui-layout-inspector-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-inspector/ui-layout-inspector.d.ts +0 -3
- package/dist/containers/ui-layout-inspector/ui-layout-inspector.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/index.d.ts +0 -4
- package/dist/containers/ui-layout-sidebar/index.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts +0 -11
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item-element.d.ts +0 -10
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item-element.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item.d.ts +0 -3
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar-item.d.ts.map +0 -1
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar.d.ts +0 -4
- package/dist/containers/ui-layout-sidebar/ui-layout-sidebar.d.ts.map +0 -1
- package/dist/inspector/build-inspector.d.ts +0 -8
- package/dist/inspector/build-inspector.d.ts.map +0 -1
- package/dist/inspector/index.d.ts +0 -10
- package/dist/inspector/index.d.ts.map +0 -1
- package/dist/inspector/native-tokens-color-swatch-element.d.ts +0 -15
- package/dist/inspector/native-tokens-color-swatch-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-color-swatch.d.ts +0 -3
- package/dist/inspector/native-tokens-color-swatch.d.ts.map +0 -1
- package/dist/inspector/native-tokens-colors-element.d.ts +0 -14
- package/dist/inspector/native-tokens-colors-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-colors.d.ts +0 -4
- package/dist/inspector/native-tokens-colors.d.ts.map +0 -1
- package/dist/inspector/native-tokens-inspector-element.d.ts +0 -15
- package/dist/inspector/native-tokens-inspector-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-inspector.d.ts +0 -3
- package/dist/inspector/native-tokens-inspector.d.ts.map +0 -1
- package/dist/inspector/native-tokens-themes-element.d.ts +0 -13
- package/dist/inspector/native-tokens-themes-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-themes.d.ts +0 -4
- package/dist/inspector/native-tokens-themes.d.ts.map +0 -1
- package/dist/inspector/native-tokens-variable-element.d.ts +0 -19
- package/dist/inspector/native-tokens-variable-element.d.ts.map +0 -1
- package/dist/inspector/native-tokens-variable.d.ts +0 -4
- package/dist/inspector/native-tokens-variable.d.ts.map +0 -1
- package/dist/inspector.css +0 -231
- package/dist/inspector.d.ts +0 -12
- package/dist/inspector.d.ts.map +0 -1
- package/dist/inspector.js +0 -609
package/dist/components-lean.css
CHANGED
|
@@ -39,6 +39,15 @@
|
|
|
39
39
|
:where(ui-icon[size="lg"]) { --ui-icon-size: var(--ui-icon-lg); }
|
|
40
40
|
:where(ui-icon[size="xl"]) { --ui-icon-size: var(--ui-icon-xl); }
|
|
41
41
|
|
|
42
|
+
/* ── Intent (declarative color) ── */
|
|
43
|
+
|
|
44
|
+
:where(ui-icon[intent="accent"]) { --ui-icon-color: var(--accent-ink); }
|
|
45
|
+
:where(ui-icon[intent="success"]) { --ui-icon-color: var(--success-ink); }
|
|
46
|
+
:where(ui-icon[intent="warning"]) { --ui-icon-color: var(--warning-ink); }
|
|
47
|
+
:where(ui-icon[intent="danger"]) { --ui-icon-color: var(--danger-ink); }
|
|
48
|
+
:where(ui-icon[intent="info"]) { --ui-icon-color: var(--info-ink); }
|
|
49
|
+
:where(ui-icon[intent="muted"]) { --ui-icon-color: var(--neutral-ink-muted); }
|
|
50
|
+
|
|
42
51
|
/* ── Forced Colors ── */
|
|
43
52
|
|
|
44
53
|
@media (forced-colors: active) {
|
|
@@ -750,7 +759,7 @@
|
|
|
750
759
|
/* ╭──────────────────────────────────────────────────────────╮
|
|
751
760
|
│ ui-chat │
|
|
752
761
|
│ Chat application shell with header / content / input / │
|
|
753
|
-
│ footer sub-containers. Fills its parent (
|
|
762
|
+
│ footer sub-containers. Fills its parent (nui-app-panel │
|
|
754
763
|
│ or any flex column). │
|
|
755
764
|
╰──────────────────────────────────────────────────────────╯ */
|
|
756
765
|
|
|
@@ -1302,6 +1311,16 @@
|
|
|
1302
1311
|
opacity: var(--ui-backdrop-opacity);
|
|
1303
1312
|
}
|
|
1304
1313
|
|
|
1314
|
+
/* ── Sizing API ──
|
|
1315
|
+
WHY: Host pages set width and box-shadow directly on ui-card inside ui-dialog.
|
|
1316
|
+
Expose custom properties so consumers can set these declaratively on ui-dialog
|
|
1317
|
+
without reaching into children. */
|
|
1318
|
+
|
|
1319
|
+
:where(ui-dialog) > :where(dialog) > :where(*) {
|
|
1320
|
+
width: var(--ui-dialog-width, auto);
|
|
1321
|
+
box-shadow: var(--ui-dialog-shadow, none);
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1305
1324
|
}
|
|
1306
1325
|
|
|
1307
1326
|
@layer ui {
|
|
@@ -1948,365 +1967,6 @@
|
|
|
1948
1967
|
|
|
1949
1968
|
}
|
|
1950
1969
|
|
|
1951
|
-
@layer ui {
|
|
1952
|
-
|
|
1953
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
1954
|
-
│ ui-nav │
|
|
1955
|
-
│ Navigation list with keyboard nav + selection. │
|
|
1956
|
-
│ Transparent wrapper — no visual surface. │
|
|
1957
|
-
│ Uses ui-nav-item / ui-nav-group for children. │
|
|
1958
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
1959
|
-
|
|
1960
|
-
/* WHY: ui-nav is a transparent flex wrapper — no inline padding.
|
|
1961
|
-
Inline padding is owned by leaf items (nav-item, summary).
|
|
1962
|
-
Block padding is owned by nav-group margins. */
|
|
1963
|
-
:where(ui-nav) {
|
|
1964
|
-
display: flex;
|
|
1965
|
-
flex-direction: column;
|
|
1966
|
-
gap: 0;
|
|
1967
|
-
padding: 0;
|
|
1968
|
-
outline: none;
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
/* ── Nav Item ── */
|
|
1972
|
-
/* WHY: Nav items share the same visual pattern as options (ghost row,
|
|
1973
|
-
hover/active/selected states). */
|
|
1974
|
-
|
|
1975
|
-
:where(ui-nav-item) {
|
|
1976
|
-
--_font-weight: var(--ui-font-weight-text);
|
|
1977
|
-
--_line-height: var(--ui-line-height-control);
|
|
1978
|
-
|
|
1979
|
-
display: flex;
|
|
1980
|
-
align-items: center;
|
|
1981
|
-
gap: calc(var(--_space) * 2);
|
|
1982
|
-
padding-inline: calc(var(--_space-k) * var(--_space));
|
|
1983
|
-
|
|
1984
|
-
min-height: var(--_min-height);
|
|
1985
|
-
|
|
1986
|
-
font-size: var(--_font-size);
|
|
1987
|
-
letter-spacing: var(--_letter-spacing);
|
|
1988
|
-
line-height: var(--_line-height);
|
|
1989
|
-
font-weight: var(--_font-weight);
|
|
1990
|
-
|
|
1991
|
-
cursor: pointer;
|
|
1992
|
-
user-select: none;
|
|
1993
|
-
color: var(--_ink-muted);
|
|
1994
|
-
|
|
1995
|
-
transition:
|
|
1996
|
-
background var(--_duration) var(--_easing),
|
|
1997
|
-
color var(--_duration) var(--_easing),
|
|
1998
|
-
border-color var(--_duration) var(--_easing),
|
|
1999
|
-
opacity var(--_duration) var(--_easing),
|
|
2000
|
-
transform var(--_duration) var(--_easing);
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
/* ── Nav Item States ── */
|
|
2004
|
-
|
|
2005
|
-
:where(ui-nav-item):hover{
|
|
2006
|
-
color: var(--_ink-hover);
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
:where(ui-nav-item):active{
|
|
2010
|
-
color: var(--_ink-active);
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
:where(ui-nav-item)[aria-current="page"] {
|
|
2014
|
-
color: var(--_ink-strong);
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
:where(ui-nav-item)[aria-disabled="true"] {
|
|
2018
|
-
color: var(--_ink-disabled);
|
|
2019
|
-
cursor: not-allowed;
|
|
2020
|
-
pointer-events: none;
|
|
2021
|
-
}
|
|
2022
|
-
|
|
2023
|
-
:where(ui-nav-item):focus-visible{
|
|
2024
|
-
outline: 2px solid var(--ui-focus-ring);
|
|
2025
|
-
outline-offset: -2px;
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
/* ── Nav Group ── */
|
|
2029
|
-
/* WHY: Groups stamp a native <details>/<summary> for collapsible behavior.
|
|
2030
|
-
DOM structure: ui-nav-group > details > summary > ui-nav-group-header
|
|
2031
|
-
> ui-nav-item* */
|
|
2032
|
-
|
|
2033
|
-
:where(ui-nav-group) {
|
|
2034
|
-
--_indicator-index: 0;
|
|
2035
|
-
|
|
2036
|
-
display: block;
|
|
2037
|
-
position: relative;
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
:where(ui-nav-group) + :where(ui-nav-group) {
|
|
2041
|
-
margin-block-start: calc(var(--_space) * 2);
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
/* ── Details (native disclosure with animated open/close) ── */
|
|
2045
|
-
/* WHY: ::details-content lets us animate the content area directly.
|
|
2046
|
-
interpolate-size allows height to transition between 0 and auto.
|
|
2047
|
-
content-visibility with allow-discrete keeps content visible during close. */
|
|
2048
|
-
|
|
2049
|
-
:where(ui-nav-group) > :where(details) {
|
|
2050
|
-
interpolate-size: allow-keywords;
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
:where(ui-nav-group) > :where(details)::details-content {
|
|
2054
|
-
height: 0;
|
|
2055
|
-
overflow: clip;
|
|
2056
|
-
opacity: 0;
|
|
2057
|
-
|
|
2058
|
-
transition:
|
|
2059
|
-
height var(--_duration) var(--_easing),
|
|
2060
|
-
opacity var(--_duration) var(--_easing),
|
|
2061
|
-
content-visibility var(--_duration) var(--_easing) allow-discrete;
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
:where(ui-nav-group) > :where(details[open])::details-content {
|
|
2065
|
-
height: auto;
|
|
2066
|
-
opacity: 1;
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
/* ── Summary (clickable header row) ── */
|
|
2070
|
-
|
|
2071
|
-
:where(ui-nav-group) > :where(details) > :where(summary) {
|
|
2072
|
-
display: flex;
|
|
2073
|
-
align-items: center;
|
|
2074
|
-
gap: calc(var(--_space) * 2);
|
|
2075
|
-
padding-inline: calc(var(--_space-k) * var(--_space));
|
|
2076
|
-
cursor: pointer;
|
|
2077
|
-
user-select: none;
|
|
2078
|
-
list-style: none;
|
|
2079
|
-
outline: none;
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
/* WHY: Remove default marker in WebKit */
|
|
2083
|
-
:where(ui-nav-group) > :where(details) > :where(summary)::-webkit-details-marker {
|
|
2084
|
-
display: none;
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
:where(ui-nav-group) > :where(details) > :where(summary)::marker {
|
|
2088
|
-
display: none;
|
|
2089
|
-
content: '';
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
/* ── Nav Group Header ── */
|
|
2093
|
-
/* WHY: Header sits inside <summary>. Bold text with optional icon. */
|
|
2094
|
-
|
|
2095
|
-
:where(ui-nav-group-header) {
|
|
2096
|
-
display: flex;
|
|
2097
|
-
align-items: center;
|
|
2098
|
-
flex: 1;
|
|
2099
|
-
gap: calc(var(--_space) * 2);
|
|
2100
|
-
min-height: var(--_min-height);
|
|
2101
|
-
font-size: var(--_font-size);
|
|
2102
|
-
font-weight: var(--ui-font-weight-button);
|
|
2103
|
-
letter-spacing: var(--_letter-spacing);
|
|
2104
|
-
line-height: var(--ui-line-height-control);
|
|
2105
|
-
color: var(--_ink);
|
|
2106
|
-
cursor: pointer;
|
|
2107
|
-
user-select: none;
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
/* WHY: Fixed-size icon well — matches ui-layout-sidebar-item [slot="icon"].
|
|
2111
|
-
All sidebar icons align on the same 1.5rem column regardless of icon size.
|
|
2112
|
-
JS wraps the first <ui-icon> child in a .icon-well span during setup(). */
|
|
2113
|
-
:where(ui-nav-group-header) > :where(.icon-well) {
|
|
2114
|
-
display: inline-flex;
|
|
2115
|
-
align-items: center;
|
|
2116
|
-
justify-content: center;
|
|
2117
|
-
width: 1.5rem;
|
|
2118
|
-
height: 1.5rem;
|
|
2119
|
-
flex-shrink: 0;
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
/* ── Chevron icon (right side of summary) ── */
|
|
2123
|
-
|
|
2124
|
-
:where(ui-nav-group) > :where(details) > :where(summary)::after {
|
|
2125
|
-
content: '';
|
|
2126
|
-
flex-shrink: 0;
|
|
2127
|
-
width: var(--_icon-size);
|
|
2128
|
-
height: var(--_icon-size);
|
|
2129
|
-
|
|
2130
|
-
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z' fill='currentColor'/%3E%3C/svg%3E");
|
|
2131
|
-
mask-size: contain;
|
|
2132
|
-
mask-repeat: no-repeat;
|
|
2133
|
-
mask-position: center;
|
|
2134
|
-
-webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z' fill='currentColor'/%3E%3C/svg%3E");
|
|
2135
|
-
-webkit-mask-size: contain;
|
|
2136
|
-
-webkit-mask-repeat: no-repeat;
|
|
2137
|
-
-webkit-mask-position: center;
|
|
2138
|
-
|
|
2139
|
-
background: var(--_ink-muted);
|
|
2140
|
-
|
|
2141
|
-
transition:
|
|
2142
|
-
transform var(--_duration) var(--_easing);
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
/* Chevron rotates when open */
|
|
2146
|
-
:where(ui-nav-group) > :where(details[open]) > :where(summary)::after {
|
|
2147
|
-
transform: rotate(180deg);
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
/* ── Selected group — has a child with aria-current ── */
|
|
2151
|
-
|
|
2152
|
-
:where(ui-nav-group):state(has-selection) > :where(details) > :where(summary) :where(ui-nav-group-header) {
|
|
2153
|
-
color: var(--_ink-strong);
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
/* ── Summary Hover ── */
|
|
2157
|
-
|
|
2158
|
-
:where(ui-nav-group) > :where(details) > :where(summary):hover :where(ui-nav-group-header){
|
|
2159
|
-
color: var(--_ink-strong);
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
/* ── Summary Focus ── */
|
|
2163
|
-
|
|
2164
|
-
:where(ui-nav-group) > :where(details) > :where(summary):focus-visible{
|
|
2165
|
-
outline: 2px solid var(--ui-focus-ring);
|
|
2166
|
-
outline-offset: -2px;
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
/* ── Vertical connector line (icon groups only) ── */
|
|
2170
|
-
/* WHY: Connector draws from below the header to the bottom of the group.
|
|
2171
|
-
Only shown when header contains an icon. Scoped via :has(). */
|
|
2172
|
-
|
|
2173
|
-
/* WHY: Insets account for the summary's padding-inline so the connector
|
|
2174
|
-
line passes through the icon center and child text aligns with header text. */
|
|
2175
|
-
:where(ui-nav-group):has(:where(ui-nav-group-header) :where(.icon-well)) {
|
|
2176
|
-
--_group-pad: calc(var(--_space-k) * var(--_space));
|
|
2177
|
-
--_group-icon-well: 1.5rem;
|
|
2178
|
-
--_group-line-inset: calc(var(--_group-pad) + var(--_group-icon-well) / 2);
|
|
2179
|
-
--_group-child-inset: calc(var(--_group-icon-well) + var(--_space) * 2);
|
|
2180
|
-
}
|
|
2181
|
-
|
|
2182
|
-
:where(ui-nav-group):has(:where(ui-nav-group-header) :where(.icon-well)):has(:where(details[open]))::after {
|
|
2183
|
-
content: '';
|
|
2184
|
-
position: absolute;
|
|
2185
|
-
inset-inline-start: var(--_group-line-inset);
|
|
2186
|
-
top: var(--_min-height);
|
|
2187
|
-
bottom: 0;
|
|
2188
|
-
width: 1px;
|
|
2189
|
-
background: var(--_border-muted);
|
|
2190
|
-
pointer-events: none;
|
|
2191
|
-
}
|
|
2192
|
-
|
|
2193
|
-
/* ── Sliding indicator (same pattern as vertical tabs) ── */
|
|
2194
|
-
/* WHY: A ::before pseudo on the group slides along the connector line.
|
|
2195
|
-
JS sets --_indicator-index; :state(has-selection) gates visibility. */
|
|
2196
|
-
|
|
2197
|
-
:where(ui-nav-group):has(:where(ui-nav-group-header) :where(.icon-well)):has(:where(details[open])):state(has-selection)::before {
|
|
2198
|
-
content: '';
|
|
2199
|
-
position: absolute;
|
|
2200
|
-
z-index: 1;
|
|
2201
|
-
inset-inline-start: calc(var(--_group-line-inset, 0px) - 0.5px);
|
|
2202
|
-
top: var(--_min-height);
|
|
2203
|
-
height: var(--_min-height);
|
|
2204
|
-
width: 2px;
|
|
2205
|
-
border-radius: 1px;
|
|
2206
|
-
background: var(--_surface);
|
|
2207
|
-
pointer-events: none;
|
|
2208
|
-
transform: translateY(calc(var(--_indicator-index) * var(--_min-height)));
|
|
2209
|
-
|
|
2210
|
-
transition:
|
|
2211
|
-
transform var(--_duration) var(--_easing),
|
|
2212
|
-
background var(--_duration) var(--_easing);
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
/* ── Grouped Child Items ── */
|
|
2216
|
-
/* WHY: When header has an icon, margin-inline-start = icon-size + gap
|
|
2217
|
-
so item text aligns with header text past the icon.
|
|
2218
|
-
Items are inside <details> after the <summary>. */
|
|
2219
|
-
|
|
2220
|
-
:where(ui-nav-group) > :where(details) > :where(ui-nav-item) {
|
|
2221
|
-
margin-inline-start: var(--_group-child-inset, 0);
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
/* ── Nav Group Flyout (collapsed sidebar) ── */
|
|
2225
|
-
/* WHY: In collapsed mode, summary click opens a ui-listbox popover to the right
|
|
2226
|
-
instead of expanding the <details>. Same pattern as sidebar-trigger menus. */
|
|
2227
|
-
|
|
2228
|
-
:where(ui-nav-group) > :where(ui-listbox.nav-group-flyout[popover]) {
|
|
2229
|
-
--_popover-origin: left center;
|
|
2230
|
-
--_popover-from: perspective(800px) scale(0.96) rotateY(20deg);
|
|
2231
|
-
|
|
2232
|
-
position: fixed;
|
|
2233
|
-
position-area: inline-end span-block-end;
|
|
2234
|
-
position-try-fallbacks: --nav-flyout-flip-up;
|
|
2235
|
-
margin-block: var(--ui-popover-viewport-margin);
|
|
2236
|
-
margin-inline: 0;
|
|
2237
|
-
margin-inline-start: var(--ui-popover-gap);
|
|
2238
|
-
min-width: 200px;
|
|
2239
|
-
max-height: var(--ui-popover-max-height);
|
|
2240
|
-
overflow-y: auto;
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
|
-
@position-try --nav-flyout-flip-up {
|
|
2244
|
-
position-area: inline-end span-block-start;
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
@position-try --nav-flyout-flip-down {
|
|
2248
|
-
position-area: inline-end span-block-end;
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
/* ── Container Query: Collapsed Sidebar ── */
|
|
2252
|
-
/* WHY: Nav components own their own collapsed behavior via @container.
|
|
2253
|
-
The sidebar aside declares container-name: sidebar. When it shrinks
|
|
2254
|
-
to 48px (icon rail), nav responds to the width — not to [collapsed].
|
|
2255
|
-
Threshold 80px: collapsed = 48px, min expanded = 160px. */
|
|
2256
|
-
|
|
2257
|
-
@container sidebar (max-width: 80px) {
|
|
2258
|
-
|
|
2259
|
-
/* Nav items hide entirely — only group headers (with icons) remain. */
|
|
2260
|
-
:where(ui-nav-item) {
|
|
2261
|
-
display: none;
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
/* Summary shrinks to icon-only. Reduced inline padding wraps tightly
|
|
2265
|
-
around the icon; parent align-items: center handles horizontal centering. */
|
|
2266
|
-
:where(ui-nav-group) > :where(details) > :where(summary) {
|
|
2267
|
-
padding-inline: var(--_space);
|
|
2268
|
-
border-radius: var(--_radius);
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
/* Hide chevron — no expand/collapse in icon rail (flyout instead). */
|
|
2272
|
-
:where(ui-nav-group) > :where(details) > :where(summary)::after {
|
|
2273
|
-
display: none;
|
|
2274
|
-
}
|
|
2275
|
-
|
|
2276
|
-
/* Hide vertical connector line and sliding indicator. */
|
|
2277
|
-
:where(ui-nav-group)::after,
|
|
2278
|
-
:where(ui-nav-group)::before {
|
|
2279
|
-
display: none;
|
|
2280
|
-
}
|
|
2281
|
-
|
|
2282
|
-
/* Header collapses to icon-only. font-size: 0 hides text nodes
|
|
2283
|
-
(can't be targeted by CSS). Icon overrides back to normal below. */
|
|
2284
|
-
:where(ui-nav-group-header) {
|
|
2285
|
-
flex: 0 0 auto;
|
|
2286
|
-
font-size: 0;
|
|
2287
|
-
gap: 0;
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
:where(ui-nav-group-header) :where(.icon-well) :where(ui-icon) {
|
|
2291
|
-
font-size: var(--_font-size, 1rem);
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
/* WHY: In collapsed mode the group is a small icon — centering
|
|
2295
|
-
the flyout vertically with the anchor is more natural than top-aligning.
|
|
2296
|
-
Fallbacks handle viewport clipping (top/bottom edge). */
|
|
2297
|
-
:where(ui-nav-group) > :where(ui-listbox.nav-group-flyout[popover]) {
|
|
2298
|
-
position-area: inline-end;
|
|
2299
|
-
position-try-fallbacks: --nav-flyout-flip-up, --nav-flyout-flip-down;
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
/* Collapse inter-group spacing in icon rail. */
|
|
2303
|
-
:where(ui-nav-group) + :where(ui-nav-group) {
|
|
2304
|
-
margin-block-start: 0;
|
|
2305
|
-
}
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
|
-
}
|
|
2309
|
-
|
|
2310
1970
|
@layer ui {
|
|
2311
1971
|
|
|
2312
1972
|
/* ── Pagination Container ── */
|
|
@@ -4515,587 +4175,6 @@
|
|
|
4515
4175
|
|
|
4516
4176
|
}
|
|
4517
4177
|
|
|
4518
|
-
@layer ui {
|
|
4519
|
-
|
|
4520
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
4521
|
-
│ ui-layout-body │
|
|
4522
|
-
│ Rounded, padded, scrollable content surface. │
|
|
4523
|
-
│ Fills remaining flex space inside ui-layout-canvas. │
|
|
4524
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
4525
|
-
|
|
4526
|
-
:where(ui-layout-body) {
|
|
4527
|
-
display: flex;
|
|
4528
|
-
flex: 1;
|
|
4529
|
-
min-width: 0;
|
|
4530
|
-
flex-direction: column;
|
|
4531
|
-
overflow-y: auto;
|
|
4532
|
-
scrollbar-width: none;
|
|
4533
|
-
background: var(--_ground, var(--_panel));
|
|
4534
|
-
border-radius: var(--_radius);
|
|
4535
|
-
padding: calc(var(--_space-k) * var(--_space));
|
|
4536
|
-
}
|
|
4537
|
-
|
|
4538
|
-
:where(ui-layout-body)[show-scrollbar] {
|
|
4539
|
-
scrollbar-width: thin;
|
|
4540
|
-
}
|
|
4541
|
-
|
|
4542
|
-
}
|
|
4543
|
-
|
|
4544
|
-
@layer ui {
|
|
4545
|
-
|
|
4546
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
4547
|
-
│ ui-layout-breadcrumb │
|
|
4548
|
-
│ Grid bar with leading / label / trailing slots. │
|
|
4549
|
-
│ Same slot pattern as ui-header. │
|
|
4550
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
4551
|
-
|
|
4552
|
-
/* ── Base ── */
|
|
4553
|
-
|
|
4554
|
-
:where(ui-layout-breadcrumb) {
|
|
4555
|
-
display: grid;
|
|
4556
|
-
grid-template-columns: 1fr;
|
|
4557
|
-
align-items: center;
|
|
4558
|
-
min-height: var(--ui-layout-bar-height);
|
|
4559
|
-
gap: calc(var(--_space) * 2);
|
|
4560
|
-
padding-block: var(--_space);
|
|
4561
|
-
padding-inline: calc(var(--_space-k) * var(--_space));
|
|
4562
|
-
flex-shrink: 0;
|
|
4563
|
-
min-width: 0;
|
|
4564
|
-
}
|
|
4565
|
-
|
|
4566
|
-
/* ── Slots ── */
|
|
4567
|
-
|
|
4568
|
-
:where(ui-layout-breadcrumb):has(> [slot="leading"]):has(> [slot="trailing"]) {
|
|
4569
|
-
grid-template-columns: auto 1fr auto;
|
|
4570
|
-
}
|
|
4571
|
-
|
|
4572
|
-
:where(ui-layout-breadcrumb):has(> [slot="leading"]):not(:has(> [slot="trailing"])) {
|
|
4573
|
-
grid-template-columns: auto 1fr;
|
|
4574
|
-
}
|
|
4575
|
-
|
|
4576
|
-
:where(ui-layout-breadcrumb):not(:has(> [slot="leading"])):has(> [slot="trailing"]) {
|
|
4577
|
-
grid-template-columns: 1fr auto;
|
|
4578
|
-
}
|
|
4579
|
-
|
|
4580
|
-
:where(ui-layout-breadcrumb) > :where([slot="leading"]) {
|
|
4581
|
-
display: flex;
|
|
4582
|
-
align-items: center;
|
|
4583
|
-
gap: calc(var(--_space) * 2);
|
|
4584
|
-
}
|
|
4585
|
-
|
|
4586
|
-
:where(ui-layout-breadcrumb) > :where([slot="label"]),
|
|
4587
|
-
:where(ui-layout-breadcrumb) > :where(:not([slot])) {
|
|
4588
|
-
min-width: 0;
|
|
4589
|
-
}
|
|
4590
|
-
|
|
4591
|
-
:where(ui-layout-breadcrumb) > :where([slot="trailing"]) {
|
|
4592
|
-
display: flex;
|
|
4593
|
-
align-items: center;
|
|
4594
|
-
gap: calc(var(--_space) * 2);
|
|
4595
|
-
}
|
|
4596
|
-
|
|
4597
|
-
}
|
|
4598
|
-
|
|
4599
|
-
@layer ui {
|
|
4600
|
-
|
|
4601
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
4602
|
-
│ ui-layout-canvas │
|
|
4603
|
-
│ Structural flex row for body + chat panels. │
|
|
4604
|
-
│ No background, no radius — purely layout. │
|
|
4605
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
4606
|
-
|
|
4607
|
-
:where(ui-layout-canvas) {
|
|
4608
|
-
display: flex;
|
|
4609
|
-
flex: 1;
|
|
4610
|
-
min-height: 0;
|
|
4611
|
-
padding: 0 calc(var(--_space-k) * var(--_space)) calc(var(--_space-k) * var(--_space));
|
|
4612
|
-
}
|
|
4613
|
-
|
|
4614
|
-
}
|
|
4615
|
-
|
|
4616
|
-
@layer ui {
|
|
4617
|
-
|
|
4618
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
4619
|
-
│ ui-layout-chat │
|
|
4620
|
-
│ Rounded, padded, scrollable right panel. │
|
|
4621
|
-
│ Hidden by default — shown via [open] attribute. │
|
|
4622
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
4623
|
-
|
|
4624
|
-
:where(ui-layout-chat) {
|
|
4625
|
-
position: relative;
|
|
4626
|
-
display: flex;
|
|
4627
|
-
flex-direction: column;
|
|
4628
|
-
width: 0;
|
|
4629
|
-
min-width: 0;
|
|
4630
|
-
max-width: 480px;
|
|
4631
|
-
overflow: clip;
|
|
4632
|
-
scrollbar-width: none;
|
|
4633
|
-
background: var(--_ground, var(--_panel));
|
|
4634
|
-
border-radius: var(--_radius);
|
|
4635
|
-
padding: 0;
|
|
4636
|
-
transition:
|
|
4637
|
-
width var(--_duration) var(--_easing),
|
|
4638
|
-
min-width var(--_duration) var(--_easing),
|
|
4639
|
-
padding var(--_duration) var(--_easing),
|
|
4640
|
-
margin var(--_duration) var(--_easing);
|
|
4641
|
-
}
|
|
4642
|
-
|
|
4643
|
-
:where(ui-layout-chat[open]) {
|
|
4644
|
-
width: 360px;
|
|
4645
|
-
min-width: 280px;
|
|
4646
|
-
margin-inline-start: calc(var(--_space) * 2);
|
|
4647
|
-
overflow-y: auto;
|
|
4648
|
-
padding: calc(var(--_space-k) * var(--_space));
|
|
4649
|
-
}
|
|
4650
|
-
|
|
4651
|
-
/* WHY: When ui-chat manages its own sub-container padding and scroll,
|
|
4652
|
-
the layout container delegates — no own padding, no own scroll.
|
|
4653
|
-
overflow: visible lets CSS anchor-positioned popovers (ui-select etc.)
|
|
4654
|
-
resolve through to the top layer. */
|
|
4655
|
-
:where(ui-layout-chat[open]):has(> ui-chat) {
|
|
4656
|
-
padding: 0;
|
|
4657
|
-
overflow: visible;
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
|
-
/* WHY: Disable width transition while dragging — it fights the pointer. */
|
|
4661
|
-
:where(ui-layout-chat[resizing]) {
|
|
4662
|
-
transition: none;
|
|
4663
|
-
}
|
|
4664
|
-
|
|
4665
|
-
:where(ui-layout-chat)[show-scrollbar] {
|
|
4666
|
-
scrollbar-width: thin;
|
|
4667
|
-
}
|
|
4668
|
-
|
|
4669
|
-
/* ── Resize Handle ── */
|
|
4670
|
-
|
|
4671
|
-
:where(ui-layout-chat) :where(.layout-resize-handle) {
|
|
4672
|
-
position: absolute;
|
|
4673
|
-
top: 0;
|
|
4674
|
-
left: 0;
|
|
4675
|
-
width: 4px;
|
|
4676
|
-
height: 100%;
|
|
4677
|
-
cursor: col-resize;
|
|
4678
|
-
z-index: 1;
|
|
4679
|
-
}
|
|
4680
|
-
|
|
4681
|
-
:where(ui-layout-chat) :where(.layout-resize-handle):hover,
|
|
4682
|
-
:where(ui-layout-chat[resizing]) :where(.layout-resize-handle) {
|
|
4683
|
-
background: var(--_border-muted);
|
|
4684
|
-
}
|
|
4685
|
-
|
|
4686
|
-
}
|
|
4687
|
-
|
|
4688
|
-
@layer ui {
|
|
4689
|
-
|
|
4690
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
4691
|
-
│ ui-layout-inspector │
|
|
4692
|
-
│ Rounded, padded, scrollable right panel. │
|
|
4693
|
-
│ Hidden by default — shown via [open] attribute. │
|
|
4694
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
4695
|
-
|
|
4696
|
-
:where(ui-layout-inspector) {
|
|
4697
|
-
position: relative;
|
|
4698
|
-
display: flex;
|
|
4699
|
-
flex-direction: column;
|
|
4700
|
-
width: 0;
|
|
4701
|
-
min-width: 0;
|
|
4702
|
-
max-width: 480px;
|
|
4703
|
-
overflow: clip;
|
|
4704
|
-
scrollbar-width: none;
|
|
4705
|
-
background: var(--_ground, var(--_panel));
|
|
4706
|
-
border-radius: var(--_radius);
|
|
4707
|
-
padding: 0;
|
|
4708
|
-
transition:
|
|
4709
|
-
width var(--_duration) var(--_easing),
|
|
4710
|
-
min-width var(--_duration) var(--_easing),
|
|
4711
|
-
padding var(--_duration) var(--_easing),
|
|
4712
|
-
margin var(--_duration) var(--_easing);
|
|
4713
|
-
}
|
|
4714
|
-
|
|
4715
|
-
:where(ui-layout-inspector[open]) {
|
|
4716
|
-
width: 360px;
|
|
4717
|
-
min-width: 280px;
|
|
4718
|
-
margin-inline-start: calc(var(--_space) * 2);
|
|
4719
|
-
overflow-y: auto;
|
|
4720
|
-
padding: calc(var(--_space-k) * var(--_space));
|
|
4721
|
-
}
|
|
4722
|
-
|
|
4723
|
-
:where(ui-layout-inspector[resizing]) {
|
|
4724
|
-
transition: none;
|
|
4725
|
-
}
|
|
4726
|
-
|
|
4727
|
-
:where(ui-layout-inspector)[show-scrollbar] {
|
|
4728
|
-
scrollbar-width: thin;
|
|
4729
|
-
}
|
|
4730
|
-
|
|
4731
|
-
/* ── Resize Handle ── */
|
|
4732
|
-
|
|
4733
|
-
:where(ui-layout-inspector) :where(.layout-resize-handle) {
|
|
4734
|
-
position: absolute;
|
|
4735
|
-
top: 0;
|
|
4736
|
-
left: 0;
|
|
4737
|
-
width: 4px;
|
|
4738
|
-
height: 100%;
|
|
4739
|
-
cursor: col-resize;
|
|
4740
|
-
z-index: 1;
|
|
4741
|
-
}
|
|
4742
|
-
|
|
4743
|
-
:where(ui-layout-inspector) :where(.layout-resize-handle):hover,
|
|
4744
|
-
:where(ui-layout-inspector[resizing]) :where(.layout-resize-handle) {
|
|
4745
|
-
background: var(--_border-muted);
|
|
4746
|
-
}
|
|
4747
|
-
|
|
4748
|
-
}
|
|
4749
|
-
|
|
4750
|
-
@layer ui {
|
|
4751
|
-
|
|
4752
|
-
/* ╭──────────────────────────────────────────────────────────╮
|
|
4753
|
-
│ ui-layout-sidebar │
|
|
4754
|
-
│ Full-page layout: collapsible/resizable sidebar aside │
|
|
4755
|
-
│ + content column (breadcrumb, canvas, body, chat). │
|
|
4756
|
-
╰──────────────────────────────────────────────────────────╯ */
|
|
4757
|
-
|
|
4758
|
-
/* ── Outer Layout ── */
|
|
4759
|
-
|
|
4760
|
-
:where(ui-layout-sidebar) {
|
|
4761
|
-
display: flex;
|
|
4762
|
-
height: 100dvh;
|
|
4763
|
-
}
|
|
4764
|
-
|
|
4765
|
-
/* WHY: Reserve sidebar width before JS builds the DOM — prevents layout shift.
|
|
4766
|
-
Collapsed state is read synchronously in the constructor so CSS matches immediately.
|
|
4767
|
-
Replaced by the real aside once [data-ready] is set. */
|
|
4768
|
-
:where(ui-layout-sidebar):not([data-ready]):not([collapsed])::before {
|
|
4769
|
-
content: '';
|
|
4770
|
-
width: var(--ui-layout-sidebar-width);
|
|
4771
|
-
flex-shrink: 0;
|
|
4772
|
-
background: var(--_body);
|
|
4773
|
-
border-right: 1px solid var(--_border-muted);
|
|
4774
|
-
}
|
|
4775
|
-
|
|
4776
|
-
:where(ui-layout-sidebar):not([data-ready])[collapsed]::before {
|
|
4777
|
-
content: '';
|
|
4778
|
-
width: 48px;
|
|
4779
|
-
flex-shrink: 0;
|
|
4780
|
-
background: var(--_body);
|
|
4781
|
-
border-right: 1px solid var(--_border-muted);
|
|
4782
|
-
}
|
|
4783
|
-
|
|
4784
|
-
/* ── Content Column ── */
|
|
4785
|
-
/* WHY: Everything except the aside forms a flex column. */
|
|
4786
|
-
|
|
4787
|
-
:where(ui-layout-sidebar) > :where(:not([slot])) {
|
|
4788
|
-
flex: 1 1 0%;
|
|
4789
|
-
min-width: 0;
|
|
4790
|
-
min-height: 0;
|
|
4791
|
-
display: flex;
|
|
4792
|
-
flex-direction: column;
|
|
4793
|
-
padding: 0;
|
|
4794
|
-
}
|
|
4795
|
-
|
|
4796
|
-
/* ── Sidebar Aside ── */
|
|
4797
|
-
/* WHY: position: relative creates the containing block for absolute
|
|
4798
|
-
header/footer overlays. Content fills the full height and scrolls
|
|
4799
|
-
underneath the pinned header/footer. */
|
|
4800
|
-
|
|
4801
|
-
:where(ui-layout-sidebar) > :where([slot="sidebar"]) {
|
|
4802
|
-
--_sidebar-header-height: 0px;
|
|
4803
|
-
--_sidebar-footer-height: 0px;
|
|
4804
|
-
|
|
4805
|
-
container-name: sidebar;
|
|
4806
|
-
container-type: inline-size;
|
|
4807
|
-
position: sticky;
|
|
4808
|
-
top: 0;
|
|
4809
|
-
width: var(--ui-layout-sidebar-width);
|
|
4810
|
-
min-width: 160px;
|
|
4811
|
-
max-width: 400px;
|
|
4812
|
-
height: 100dvh;
|
|
4813
|
-
display: block;
|
|
4814
|
-
transition: width var(--_duration) var(--_easing), min-width var(--_duration) var(--_easing);
|
|
4815
|
-
overflow: hidden;
|
|
4816
|
-
z-index: 10;
|
|
4817
|
-
}
|
|
4818
|
-
|
|
4819
|
-
/* WHY: Disable width transition while dragging — it fights the pointer. */
|
|
4820
|
-
:where(ui-layout-sidebar) > :where([slot="sidebar"][resizing]) {
|
|
4821
|
-
transition: none;
|
|
4822
|
-
}
|
|
4823
|
-
|
|
4824
|
-
/* ── Collapsed Icon Rail ── */
|
|
4825
|
-
/* WHY: Collapsed = icon rail, not fully hidden. 48px fits icons (1rem) + padding.
|
|
4826
|
-
[collapsed] drives the aside to 48px which triggers @container sidebar queries
|
|
4827
|
-
in this file and in child component CSS (ui-nav.css, etc.). */
|
|
4828
|
-
|
|
4829
|
-
:where(ui-layout-sidebar)[collapsed] > :where([slot="sidebar"]) {
|
|
4830
|
-
width: 48px;
|
|
4831
|
-
min-width: 48px;
|
|
4832
|
-
}
|
|
4833
|
-
|
|
4834
|
-
/* ── Resize Handle ── */
|
|
4835
|
-
|
|
4836
|
-
:where(ui-layout-sidebar) :where(.layout-resize-handle) {
|
|
4837
|
-
position: absolute;
|
|
4838
|
-
top: 0;
|
|
4839
|
-
right: 0;
|
|
4840
|
-
width: 4px;
|
|
4841
|
-
height: 100%;
|
|
4842
|
-
cursor: col-resize;
|
|
4843
|
-
z-index: 1;
|
|
4844
|
-
}
|
|
4845
|
-
|
|
4846
|
-
:where(ui-layout-sidebar) :where(.layout-resize-handle):hover,
|
|
4847
|
-
:where(ui-layout-sidebar) > :where([slot="sidebar"][resizing]) :where(.layout-resize-handle) {
|
|
4848
|
-
background: var(--_border-muted);
|
|
4849
|
-
}
|
|
4850
|
-
|
|
4851
|
-
/* WHY: When collapsed to icon rail, the sidebar edge meets content — drop left padding. */
|
|
4852
|
-
|
|
4853
|
-
:where(ui-layout-sidebar)[collapsed] :where(ui-layout-canvas) {
|
|
4854
|
-
padding-inline-start: 0;
|
|
4855
|
-
}
|
|
4856
|
-
|
|
4857
|
-
:where(ui-layout-sidebar)[collapsed] :where(ui-layout-breadcrumb) {
|
|
4858
|
-
padding-inline-start: 0;
|
|
4859
|
-
}
|
|
4860
|
-
|
|
4861
|
-
/* ── Sidebar Header ── */
|
|
4862
|
-
/* WHY: Absolute-positioned overlay pinned to top of aside. Content scrolls
|
|
4863
|
-
underneath it. z-index: 2 sits above content (z-index: 0). */
|
|
4864
|
-
|
|
4865
|
-
:where(ui-layout-sidebar-header) {
|
|
4866
|
-
position: absolute;
|
|
4867
|
-
top: 0;
|
|
4868
|
-
left: 0;
|
|
4869
|
-
right: 0;
|
|
4870
|
-
z-index: 2;
|
|
4871
|
-
display: flex;
|
|
4872
|
-
flex-direction: column;
|
|
4873
|
-
}
|
|
4874
|
-
|
|
4875
|
-
/* ── Sidebar Content ── */
|
|
4876
|
-
/* WHY: Full height of the aside, scrollable. Padding-block offsets keep
|
|
4877
|
-
content from starting behind header / ending behind footer.
|
|
4878
|
-
Fade-out alpha mask dissolves content edges under the overlays. */
|
|
4879
|
-
|
|
4880
|
-
:where(ui-layout-sidebar-content) {
|
|
4881
|
-
display: flex;
|
|
4882
|
-
flex-direction: column;
|
|
4883
|
-
padding-block-start: var(--_sidebar-header-height);
|
|
4884
|
-
padding-block-end: var(--_sidebar-footer-height);
|
|
4885
|
-
width: 100%;
|
|
4886
|
-
height: 100%;
|
|
4887
|
-
overflow-y: auto;
|
|
4888
|
-
scrollbar-width: none;
|
|
4889
|
-
}
|
|
4890
|
-
|
|
4891
|
-
/* WHY: When header is present, fade top edge. Content dissolves as it
|
|
4892
|
-
scrolls under the header — transparent at top, fully visible by 1.25×
|
|
4893
|
-
the header height. No opaque header background needed. */
|
|
4894
|
-
:where(ui-layout-sidebar-content)[data-has-header] {
|
|
4895
|
-
mask-image: linear-gradient(
|
|
4896
|
-
to bottom,
|
|
4897
|
-
transparent 0,
|
|
4898
|
-
black calc(var(--_sidebar-header-height) * 1.25),
|
|
4899
|
-
black 100%
|
|
4900
|
-
);
|
|
4901
|
-
}
|
|
4902
|
-
|
|
4903
|
-
/* WHY: When footer is present, fade bottom edge. */
|
|
4904
|
-
:where(ui-layout-sidebar-content)[data-has-footer] {
|
|
4905
|
-
mask-image: linear-gradient(
|
|
4906
|
-
to bottom,
|
|
4907
|
-
black 0,
|
|
4908
|
-
black calc(100% - var(--_sidebar-footer-height) * 1.25),
|
|
4909
|
-
transparent 100%
|
|
4910
|
-
);
|
|
4911
|
-
}
|
|
4912
|
-
|
|
4913
|
-
/* WHY: When both header AND footer are present, fade both edges. */
|
|
4914
|
-
:where(ui-layout-sidebar-content)[data-has-header][data-has-footer] {
|
|
4915
|
-
mask-image: linear-gradient(
|
|
4916
|
-
to bottom,
|
|
4917
|
-
transparent 0,
|
|
4918
|
-
black calc(var(--_sidebar-header-height) * 1.25),
|
|
4919
|
-
black calc(100% - var(--_sidebar-footer-height) * 1.25),
|
|
4920
|
-
transparent 100%
|
|
4921
|
-
);
|
|
4922
|
-
}
|
|
4923
|
-
|
|
4924
|
-
/* ── Sidebar Footer ── */
|
|
4925
|
-
/* WHY: Absolute-positioned overlay pinned to bottom of aside. */
|
|
4926
|
-
|
|
4927
|
-
:where(ui-layout-sidebar-footer) {
|
|
4928
|
-
position: absolute;
|
|
4929
|
-
bottom: 0;
|
|
4930
|
-
left: 0;
|
|
4931
|
-
right: 0;
|
|
4932
|
-
z-index: 2;
|
|
4933
|
-
display: flex;
|
|
4934
|
-
flex-direction: column;
|
|
4935
|
-
}
|
|
4936
|
-
|
|
4937
|
-
/* ── Sidebar Item ── */
|
|
4938
|
-
/* WHY: Universal sidebar row element. Provides inline padding for any content
|
|
4939
|
-
(buttons, links, icons). When a child ui-listbox[popover] is present, JS
|
|
4940
|
-
wires PopoverController for click-to-toggle menu behavior.
|
|
4941
|
-
Absorbs the old ui-layout-sidebar-trigger role — one element for all rows. */
|
|
4942
|
-
|
|
4943
|
-
:where(ui-layout-sidebar-item) {
|
|
4944
|
-
display: flex;
|
|
4945
|
-
align-items: center;
|
|
4946
|
-
flex: 1;
|
|
4947
|
-
min-width: 0;
|
|
4948
|
-
gap: calc(var(--_space) * 2);
|
|
4949
|
-
min-height: var(--_min-height);
|
|
4950
|
-
font-size: var(--_font-size);
|
|
4951
|
-
font-weight: var(--ui-font-weight-button);
|
|
4952
|
-
letter-spacing: var(--_letter-spacing);
|
|
4953
|
-
line-height: var(--ui-line-height-control);
|
|
4954
|
-
color: var(--_ink);
|
|
4955
|
-
cursor: pointer;
|
|
4956
|
-
user-select: none;
|
|
4957
|
-
border: none;
|
|
4958
|
-
background: none;
|
|
4959
|
-
padding-block: var(--_space);
|
|
4960
|
-
padding-inline: calc(var(--_space-k) * var(--_space));
|
|
4961
|
-
border-radius: var(--_radius);
|
|
4962
|
-
transition: color var(--_duration) var(--_easing);
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
|
-
/* WHY: Items in header/footer match the breadcrumb bar height so the
|
|
4966
|
-
first sidebar row aligns horizontally with the breadcrumb. */
|
|
4967
|
-
:where(ui-layout-sidebar-header) > :where(ui-layout-sidebar-item),
|
|
4968
|
-
:where(ui-layout-sidebar-footer) > :where(ui-layout-sidebar-item) {
|
|
4969
|
-
min-height: var(--ui-layout-bar-height);
|
|
4970
|
-
}
|
|
4971
|
-
|
|
4972
|
-
:where(ui-layout-sidebar-item):hover{
|
|
4973
|
-
color: var(--_ink-strong);
|
|
4974
|
-
}
|
|
4975
|
-
|
|
4976
|
-
:where(ui-layout-sidebar-item):focus-visible{
|
|
4977
|
-
outline: 2px solid var(--ui-focus-ring);
|
|
4978
|
-
outline-offset: -2px;
|
|
4979
|
-
}
|
|
4980
|
-
|
|
4981
|
-
/* WHY: Fixed-size icon well so all sidebar icons (header logo, nav group icons,
|
|
4982
|
-
standalone icons) center-align on the same column width regardless of intrinsic
|
|
4983
|
-
icon size. 1.5rem matches the sidebar's visual rhythm at default density.
|
|
4984
|
-
Consumer wraps the icon: <span slot="icon"><ui-icon name="..."></ui-icon></span>
|
|
4985
|
-
The wrapper is the well; the icon keeps its own --ui-icon-size dimensions. */
|
|
4986
|
-
:where(ui-layout-sidebar-item) > :where([slot="icon"]) {
|
|
4987
|
-
display: inline-flex;
|
|
4988
|
-
align-items: center;
|
|
4989
|
-
justify-content: center;
|
|
4990
|
-
width: 1.5rem;
|
|
4991
|
-
height: 1.5rem;
|
|
4992
|
-
flex-shrink: 0;
|
|
4993
|
-
}
|
|
4994
|
-
|
|
4995
|
-
/* WHY: Trailing caret pushes to end — same pattern as button justify="spread". */
|
|
4996
|
-
:where(ui-layout-sidebar-item) > :where([slot="trailing"]) {
|
|
4997
|
-
margin-inline-start: auto;
|
|
4998
|
-
flex-shrink: 0;
|
|
4999
|
-
color: var(--_ink-muted);
|
|
5000
|
-
}
|
|
5001
|
-
|
|
5002
|
-
/* WHY: When the item wraps a sub-component (e.g. ui-button) that provides
|
|
5003
|
-
its own icon, hide [slot="icon"] in expanded mode — it only serves as the
|
|
5004
|
-
bare collapsed-rail representation. Items without sub-components (just
|
|
5005
|
-
icon + label + trailing) keep [slot="icon"] visible in both modes. */
|
|
5006
|
-
:where(ui-layout-sidebar-item:has(> ui-button)) > :where([slot="icon"]) {
|
|
5007
|
-
display: none;
|
|
5008
|
-
}
|
|
5009
|
-
|
|
5010
|
-
/* WHY: Title text truncates when sidebar narrows during resize. */
|
|
5011
|
-
:where(ui-layout-sidebar-item) > :where([slot="label"]) {
|
|
5012
|
-
flex: 1;
|
|
5013
|
-
min-width: 0;
|
|
5014
|
-
white-space: nowrap;
|
|
5015
|
-
overflow: hidden;
|
|
5016
|
-
text-overflow: ellipsis;
|
|
5017
|
-
}
|
|
5018
|
-
|
|
5019
|
-
/* ── Item Popover ── */
|
|
5020
|
-
/* WHY: Popover opens to the right of the sidebar item.
|
|
5021
|
-
Default: top-aligned, grows downward (span-block-end).
|
|
5022
|
-
Flip: bottom-aligned, grows upward (span-block-start). */
|
|
5023
|
-
|
|
5024
|
-
:where(ui-layout-sidebar-item) > :where(ui-listbox[popover]) {
|
|
5025
|
-
--_popover-origin: left center;
|
|
5026
|
-
--_popover-from: perspective(800px) scale(0.96) rotateY(20deg);
|
|
5027
|
-
|
|
5028
|
-
position: fixed;
|
|
5029
|
-
position-area: inline-end span-block-end;
|
|
5030
|
-
position-try-fallbacks: --sidebar-item-flip-up;
|
|
5031
|
-
margin-block: var(--ui-popover-viewport-margin);
|
|
5032
|
-
margin-inline: 0;
|
|
5033
|
-
margin-inline-start: var(--ui-popover-gap);
|
|
5034
|
-
min-width: 200px;
|
|
5035
|
-
max-height: var(--ui-popover-max-height);
|
|
5036
|
-
overflow-y: auto;
|
|
5037
|
-
}
|
|
5038
|
-
|
|
5039
|
-
@position-try --sidebar-item-flip-up {
|
|
5040
|
-
position-area: inline-end span-block-start;
|
|
5041
|
-
}
|
|
5042
|
-
|
|
5043
|
-
@position-try --sidebar-item-flip-down {
|
|
5044
|
-
position-area: inline-end span-block-end;
|
|
5045
|
-
}
|
|
5046
|
-
|
|
5047
|
-
/* ── Container Query: Collapsed Sidebar ── */
|
|
5048
|
-
/* WHY: Each component owns its own collapsed behavior via @container.
|
|
5049
|
-
The aside is the container (container-name: sidebar). When it shrinks
|
|
5050
|
-
to 48px (icon rail), components respond to the width, not to [collapsed].
|
|
5051
|
-
Threshold 80px: collapsed = 48px, min expanded = 160px. */
|
|
5052
|
-
|
|
5053
|
-
@container sidebar (max-width: 80px) {
|
|
5054
|
-
|
|
5055
|
-
/* Resize handle — no dragging in icon rail */
|
|
5056
|
-
:where(.layout-resize-handle) {
|
|
5057
|
-
display: none;
|
|
5058
|
-
}
|
|
5059
|
-
|
|
5060
|
-
/* Header/footer — center content horizontally */
|
|
5061
|
-
:where(ui-layout-sidebar-header),
|
|
5062
|
-
:where(ui-layout-sidebar-footer) {
|
|
5063
|
-
align-items: center;
|
|
5064
|
-
}
|
|
5065
|
-
|
|
5066
|
-
/* Content — center items in the 48px rail */
|
|
5067
|
-
:where(ui-layout-sidebar-content) {
|
|
5068
|
-
align-items: center;
|
|
5069
|
-
}
|
|
5070
|
-
|
|
5071
|
-
/* Item — shrink to icon-only. Show [slot="icon"], hide everything else.
|
|
5072
|
-
WHY: Sidebar items can contain complex children (buttons with slots,
|
|
5073
|
-
links, etc.). Rather than overriding sub-component styles, the item
|
|
5074
|
-
provides its own bare icon via [slot="icon"] for the collapsed rail. */
|
|
5075
|
-
:where(ui-layout-sidebar-item) {
|
|
5076
|
-
flex: 0 0 auto;
|
|
5077
|
-
padding-inline: var(--_space);
|
|
5078
|
-
}
|
|
5079
|
-
|
|
5080
|
-
:where(ui-layout-sidebar-item) > :where([slot="icon"]) {
|
|
5081
|
-
display: inline-flex;
|
|
5082
|
-
}
|
|
5083
|
-
|
|
5084
|
-
:where(ui-layout-sidebar-item) > :where(:not([slot="icon"]):not(ui-listbox[popover]):not(.nav-group-flyout)) {
|
|
5085
|
-
display: none;
|
|
5086
|
-
}
|
|
5087
|
-
|
|
5088
|
-
/* WHY: In collapsed mode the sidebar item is a small icon — centering
|
|
5089
|
-
the popover vertically with the anchor is more natural than top-aligning.
|
|
5090
|
-
Fallbacks handle viewport clipping (top/bottom edge). */
|
|
5091
|
-
:where(ui-layout-sidebar-item) > :where(ui-listbox[popover]) {
|
|
5092
|
-
position-area: inline-end;
|
|
5093
|
-
position-try-fallbacks: --sidebar-item-flip-up, --sidebar-item-flip-down;
|
|
5094
|
-
}
|
|
5095
|
-
}
|
|
5096
|
-
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
4178
|
@layer ui {
|
|
5100
4179
|
|
|
5101
4180
|
/* ── Base ── */
|