@kushagradhawan/kookie-ui 0.1.48 → 0.1.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/components.css +1094 -95
- package/dist/cjs/components/_internal/shell-bottom.d.ts +31 -0
- package/dist/cjs/components/_internal/shell-bottom.d.ts.map +1 -0
- package/dist/cjs/components/_internal/shell-bottom.js +2 -0
- package/dist/cjs/components/_internal/shell-bottom.js.map +7 -0
- package/dist/cjs/components/_internal/shell-handles.d.ts +7 -0
- package/dist/cjs/components/_internal/shell-handles.d.ts.map +1 -0
- package/dist/cjs/components/_internal/shell-handles.js +2 -0
- package/dist/cjs/components/_internal/shell-handles.js.map +7 -0
- package/dist/cjs/components/_internal/shell-inspector.d.ts +31 -0
- package/dist/cjs/components/_internal/shell-inspector.d.ts.map +1 -0
- package/dist/cjs/components/_internal/shell-inspector.js +2 -0
- package/dist/cjs/components/_internal/shell-inspector.js.map +7 -0
- package/dist/cjs/components/_internal/shell-resize.d.ts +24 -0
- package/dist/cjs/components/_internal/shell-resize.d.ts.map +1 -0
- package/dist/cjs/components/_internal/shell-resize.js +2 -0
- package/dist/cjs/components/_internal/shell-resize.js.map +7 -0
- package/dist/cjs/components/_internal/shell-sidebar.d.ts +37 -0
- package/dist/cjs/components/_internal/shell-sidebar.d.ts.map +1 -0
- package/dist/cjs/components/_internal/shell-sidebar.js +2 -0
- package/dist/cjs/components/_internal/shell-sidebar.js.map +7 -0
- package/dist/cjs/components/schemas/index.d.ts +2 -0
- package/dist/cjs/components/schemas/index.d.ts.map +1 -1
- package/dist/cjs/components/schemas/index.js +1 -1
- package/dist/cjs/components/schemas/index.js.map +3 -3
- package/dist/cjs/components/schemas/shell.schema.d.ts +1025 -0
- package/dist/cjs/components/schemas/shell.schema.d.ts.map +1 -0
- package/dist/cjs/components/schemas/shell.schema.js +2 -0
- package/dist/cjs/components/schemas/shell.schema.js.map +7 -0
- package/dist/cjs/components/shell.context.d.ts +38 -0
- package/dist/cjs/components/shell.context.d.ts.map +1 -0
- package/dist/cjs/components/shell.context.js +2 -0
- package/dist/cjs/components/shell.context.js.map +7 -0
- package/dist/cjs/components/shell.d.ts +6 -68
- package/dist/cjs/components/shell.d.ts.map +1 -1
- package/dist/cjs/components/shell.hooks.d.ts +3 -0
- package/dist/cjs/components/shell.hooks.d.ts.map +1 -0
- package/dist/cjs/components/shell.hooks.js +2 -0
- package/dist/cjs/components/shell.hooks.js.map +7 -0
- package/dist/cjs/components/shell.js +1 -1
- package/dist/cjs/components/shell.js.map +3 -3
- package/dist/cjs/components/shell.types.d.ts +20 -0
- package/dist/cjs/components/shell.types.d.ts.map +1 -0
- package/dist/cjs/components/shell.types.js +2 -0
- package/dist/cjs/components/shell.types.js.map +7 -0
- package/dist/cjs/components/sidebar.d.ts +8 -2
- package/dist/cjs/components/sidebar.d.ts.map +1 -1
- package/dist/cjs/components/sidebar.js +1 -1
- package/dist/cjs/components/sidebar.js.map +3 -3
- package/dist/esm/components/_internal/shell-bottom.d.ts +31 -0
- package/dist/esm/components/_internal/shell-bottom.d.ts.map +1 -0
- package/dist/esm/components/_internal/shell-bottom.js +2 -0
- package/dist/esm/components/_internal/shell-bottom.js.map +7 -0
- package/dist/esm/components/_internal/shell-handles.d.ts +7 -0
- package/dist/esm/components/_internal/shell-handles.d.ts.map +1 -0
- package/dist/esm/components/_internal/shell-handles.js +2 -0
- package/dist/esm/components/_internal/shell-handles.js.map +7 -0
- package/dist/esm/components/_internal/shell-inspector.d.ts +31 -0
- package/dist/esm/components/_internal/shell-inspector.d.ts.map +1 -0
- package/dist/esm/components/_internal/shell-inspector.js +2 -0
- package/dist/esm/components/_internal/shell-inspector.js.map +7 -0
- package/dist/esm/components/_internal/shell-resize.d.ts +24 -0
- package/dist/esm/components/_internal/shell-resize.d.ts.map +1 -0
- package/dist/esm/components/_internal/shell-resize.js +2 -0
- package/dist/esm/components/_internal/shell-resize.js.map +7 -0
- package/dist/esm/components/_internal/shell-sidebar.d.ts +37 -0
- package/dist/esm/components/_internal/shell-sidebar.d.ts.map +1 -0
- package/dist/esm/components/_internal/shell-sidebar.js +2 -0
- package/dist/esm/components/_internal/shell-sidebar.js.map +7 -0
- package/dist/esm/components/schemas/index.d.ts +2 -0
- package/dist/esm/components/schemas/index.d.ts.map +1 -1
- package/dist/esm/components/schemas/index.js +1 -1
- package/dist/esm/components/schemas/index.js.map +3 -3
- package/dist/esm/components/schemas/shell.schema.d.ts +1025 -0
- package/dist/esm/components/schemas/shell.schema.d.ts.map +1 -0
- package/dist/esm/components/schemas/shell.schema.js +2 -0
- package/dist/esm/components/schemas/shell.schema.js.map +7 -0
- package/dist/esm/components/shell.context.d.ts +38 -0
- package/dist/esm/components/shell.context.d.ts.map +1 -0
- package/dist/esm/components/shell.context.js +2 -0
- package/dist/esm/components/shell.context.js.map +7 -0
- package/dist/esm/components/shell.d.ts +6 -68
- package/dist/esm/components/shell.d.ts.map +1 -1
- package/dist/esm/components/shell.hooks.d.ts +3 -0
- package/dist/esm/components/shell.hooks.d.ts.map +1 -0
- package/dist/esm/components/shell.hooks.js +2 -0
- package/dist/esm/components/shell.hooks.js.map +7 -0
- package/dist/esm/components/shell.js +1 -1
- package/dist/esm/components/shell.js.map +3 -3
- package/dist/esm/components/shell.types.d.ts +20 -0
- package/dist/esm/components/shell.types.d.ts.map +1 -0
- package/dist/esm/components/shell.types.js +2 -0
- package/dist/esm/components/shell.types.js.map +7 -0
- package/dist/esm/components/sidebar.d.ts +8 -2
- package/dist/esm/components/sidebar.d.ts.map +1 -1
- package/dist/esm/components/sidebar.js +1 -1
- package/dist/esm/components/sidebar.js.map +3 -3
- package/layout/utilities.css +168 -84
- package/layout.css +168 -84
- package/package.json +2 -1
- package/schemas/base-button.json +1 -1
- package/schemas/button.json +1 -1
- package/schemas/icon-button.json +1 -1
- package/schemas/index.json +6 -6
- package/schemas/shell-bottom.json +168 -0
- package/schemas/shell-content.json +34 -0
- package/schemas/shell-handle.json +34 -0
- package/schemas/shell-header.json +42 -0
- package/schemas/shell-inspector.json +171 -0
- package/schemas/shell-panel.json +167 -0
- package/schemas/shell-rail.json +132 -0
- package/schemas/shell-root.json +54 -0
- package/schemas/shell-sidebar.json +182 -0
- package/schemas/shell-trigger.json +76 -0
- package/schemas/toggle-button.json +1 -1
- package/schemas/toggle-icon-button.json +1 -1
- package/src/components/_internal/base-menu.css +4 -5
- package/src/components/_internal/base-sidebar-menu.css +0 -1
- package/src/components/_internal/base-sidebar.css +7 -0
- package/src/components/_internal/shell-bottom.tsx +251 -0
- package/src/components/_internal/shell-handles.tsx +193 -0
- package/src/components/_internal/shell-inspector.tsx +242 -0
- package/src/components/_internal/shell-resize.tsx +30 -0
- package/src/components/_internal/shell-sidebar.tsx +370 -0
- package/src/components/schemas/index.ts +46 -0
- package/src/components/schemas/shell.schema.ts +403 -0
- package/src/components/shell.context.tsx +59 -0
- package/src/components/shell.css +33 -18
- package/src/components/shell.hooks.ts +31 -0
- package/src/components/shell.tsx +387 -1682
- package/src/components/shell.types.ts +27 -0
- package/src/components/sidebar.css +233 -33
- package/src/components/sidebar.tsx +248 -214
- package/src/styles/tokens/blur.css +2 -2
- package/src/styles/tokens/color.css +2 -2
- package/styles.css +1267 -181
- package/tokens/base.css +5 -2
- package/tokens.css +5 -2
- package/utilities.css +168 -84
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type PresentationValue = 'fixed' | 'overlay' | 'stacked';
|
|
2
|
+
|
|
3
|
+
export type ResponsivePresentation = PresentationValue | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', PresentationValue>>;
|
|
4
|
+
|
|
5
|
+
export type PaneMode = 'expanded' | 'collapsed';
|
|
6
|
+
export type SidebarMode = 'collapsed' | 'thin' | 'expanded';
|
|
7
|
+
|
|
8
|
+
export type ResponsiveMode = PaneMode | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', PaneMode>>;
|
|
9
|
+
|
|
10
|
+
export type ResponsiveSidebarMode = SidebarMode | Partial<Record<'initial' | 'xs' | 'sm' | 'md' | 'lg' | 'xl', SidebarMode>>;
|
|
11
|
+
|
|
12
|
+
export type PaneSizePersistence = {
|
|
13
|
+
load?: () => number | Promise<number | undefined> | undefined;
|
|
14
|
+
save?: (size: number) => void | Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const BREAKPOINTS = {
|
|
18
|
+
xs: '(min-width: 520px)',
|
|
19
|
+
sm: '(min-width: 768px)',
|
|
20
|
+
md: '(min-width: 1024px)',
|
|
21
|
+
lg: '(min-width: 1280px)',
|
|
22
|
+
xl: '(min-width: 1640px)',
|
|
23
|
+
} as const;
|
|
24
|
+
|
|
25
|
+
export type Breakpoint = 'initial' | keyof typeof BREAKPOINTS;
|
|
26
|
+
|
|
27
|
+
export type PaneTarget = 'left' | 'rail' | 'panel' | 'sidebar' | 'inspector' | 'bottom';
|
|
@@ -19,55 +19,252 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
/* Rail Layout Styling */
|
|
22
|
-
:where(.rt-SidebarContainer
|
|
23
|
-
.rt-ShellSidebarRail :where(.rt-SidebarContent),
|
|
24
|
-
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarContent) {
|
|
22
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarContent) {
|
|
25
23
|
padding: var(--space-2);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
:where(.rt-SidebarContainer
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-BaseMenuViewport) {
|
|
27
|
+
padding: var(--space-2) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Enforce vertical stack and compact typography for all buttons in thin mode */
|
|
31
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarContent) :where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) {
|
|
32
|
+
justify-content: center !important;
|
|
33
|
+
align-items: center !important;
|
|
34
|
+
flex-direction: column !important;
|
|
35
|
+
gap: var(--space-1) !important;
|
|
36
|
+
text-align: center !important;
|
|
37
|
+
font-size: var(--font-size-0) !important;
|
|
38
|
+
line-height: var(--line-height-0) !important;
|
|
39
|
+
padding-top: var(--space-2) !important;
|
|
40
|
+
padding-bottom: var(--space-2) !important;
|
|
41
|
+
padding-left: var(--space-1) !important;
|
|
42
|
+
padding-right: var(--space-1) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Consolidated thin mode size blocks */
|
|
46
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarContent.rt-r-size-1) {
|
|
47
|
+
/* Horizontal padding tokens to free space for text */
|
|
48
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
49
|
+
--base-menu-item-padding-right: var(--space-1) !important;
|
|
50
|
+
/* Unify vertical padding via tokens (used by BaseMenuItem) */
|
|
51
|
+
--base-menu-item-padding-y: var(--space-2) !important;
|
|
52
|
+
|
|
53
|
+
/* Override BaseMenu left padding resets */
|
|
54
|
+
&:where(:not(:has(.rt-BaseMenuCheckboxItem, .rt-BaseMenuRadioItem))) {
|
|
55
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
56
|
+
}
|
|
57
|
+
&:where(:has(.rt-BaseMenuCheckboxItem, .rt-BaseMenuRadioItem)) {
|
|
58
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Button and subtrigger layout */
|
|
62
|
+
:where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) {
|
|
63
|
+
justify-content: center;
|
|
64
|
+
align-items: center;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
gap: var(--space-1);
|
|
67
|
+
text-align: center;
|
|
68
|
+
font-size: var(--font-size-0);
|
|
69
|
+
line-height: var(--line-height-0);
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
text-overflow: ellipsis;
|
|
73
|
+
max-width: 100%;
|
|
74
|
+
min-width: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Icon sizing */
|
|
78
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
79
|
+
:where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) :where(svg) {
|
|
80
|
+
width: var(--content-icon-size-3);
|
|
81
|
+
height: var(--content-icon-size-3);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarContent.rt-r-size-2) {
|
|
86
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
87
|
+
--base-menu-item-padding-right: var(--space-1) !important;
|
|
88
|
+
--base-menu-item-padding-y: var(--space-2) !important;
|
|
89
|
+
|
|
90
|
+
&:where(:not(:has(.rt-BaseMenuCheckboxItem, .rt-BaseMenuRadioItem))) {
|
|
91
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
92
|
+
}
|
|
93
|
+
&:where(:has(.rt-BaseMenuCheckboxItem, .rt-BaseMenuRadioItem)) {
|
|
94
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) {
|
|
98
|
+
justify-content: center;
|
|
99
|
+
align-items: center;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: var(--space-1);
|
|
102
|
+
text-align: center;
|
|
103
|
+
font-size: var(--font-size-0);
|
|
104
|
+
line-height: var(--line-height-0);
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
max-width: 100%;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
113
|
+
:where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) :where(svg) {
|
|
114
|
+
width: var(--content-icon-size-4);
|
|
115
|
+
height: var(--content-icon-size-4);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarContent.rt-r-size-3) {
|
|
120
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
121
|
+
--base-menu-item-padding-right: var(--space-1) !important;
|
|
122
|
+
--base-menu-item-padding-y: var(--space-2) !important;
|
|
123
|
+
|
|
124
|
+
&:where(:not(:has(.rt-BaseMenuCheckboxItem, .rt-BaseMenuRadioItem))) {
|
|
125
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
126
|
+
}
|
|
127
|
+
&:where(:has(.rt-BaseMenuCheckboxItem, .rt-BaseMenuRadioItem)) {
|
|
128
|
+
--base-menu-item-padding-left: var(--space-1) !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
:where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) {
|
|
132
|
+
justify-content: center;
|
|
133
|
+
align-items: center;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: var(--space-1);
|
|
136
|
+
text-align: center;
|
|
137
|
+
font-size: var(--font-size-0);
|
|
138
|
+
line-height: var(--line-height-0);
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
text-overflow: ellipsis;
|
|
142
|
+
max-width: 100%;
|
|
143
|
+
min-width: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
147
|
+
:where(.rt-SidebarMenuButton, .rt-SidebarMenuSubTrigger) :where(svg) {
|
|
148
|
+
width: var(--content-icon-size-5);
|
|
149
|
+
height: var(--content-icon-size-5);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Ellipsis on root child content when using asChild (e.g., Next.js Link) */
|
|
154
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuButton > *) {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
32
157
|
align-items: center;
|
|
158
|
+
white-space: nowrap;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
text-overflow: ellipsis;
|
|
161
|
+
width: 100%;
|
|
162
|
+
min-width: 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Ensure submenu trigger asChild containers also stack vertically */
|
|
166
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubTrigger > *) {
|
|
167
|
+
display: flex;
|
|
33
168
|
flex-direction: column;
|
|
34
|
-
|
|
35
|
-
|
|
169
|
+
align-items: center;
|
|
170
|
+
width: 100%;
|
|
171
|
+
min-width: 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
175
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuButton > * > svg) {
|
|
176
|
+
flex-shrink: 0;
|
|
36
177
|
}
|
|
37
178
|
|
|
38
|
-
|
|
39
|
-
:where(.rt-SidebarContainer.rt-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
:
|
|
43
|
-
:
|
|
44
|
-
|
|
179
|
+
/* Ensure submenu anchors also truncate */
|
|
180
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubContent .rt-SidebarMenuButton > *) {
|
|
181
|
+
display: flex;
|
|
182
|
+
flex-direction: column;
|
|
183
|
+
align-items: center;
|
|
184
|
+
white-space: nowrap;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
text-overflow: ellipsis;
|
|
187
|
+
width: 100%;
|
|
188
|
+
min-width: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/* Ensure icons remain visible at their token sizes in thin mode */
|
|
192
|
+
/* stylelint-disable-next-line selector-max-type */
|
|
193
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuButton) :where(svg) {
|
|
194
|
+
/* svg size is already controlled by tokens; this ensures layout stability */
|
|
195
|
+
display: block;
|
|
45
196
|
}
|
|
46
197
|
|
|
47
|
-
|
|
48
|
-
.rt-
|
|
49
|
-
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarGroupLabel) {
|
|
198
|
+
/* Truncate labels inside an explicit label span */
|
|
199
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuButton .rt-SidebarMenuLabel) {
|
|
50
200
|
display: block;
|
|
201
|
+
max-width: 100%;
|
|
202
|
+
min-width: 0;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
text-overflow: ellipsis;
|
|
205
|
+
white-space: nowrap;
|
|
51
206
|
text-align: center;
|
|
207
|
+
color: var(--accent-11);
|
|
52
208
|
font-size: var(--font-size-0);
|
|
53
209
|
line-height: var(--line-height-0);
|
|
54
|
-
|
|
55
|
-
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuBadge),
|
|
213
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuShortcut),
|
|
214
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-Badge),
|
|
215
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-Kbd) {
|
|
216
|
+
display: none !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarGroupLabel) {
|
|
220
|
+
display: none !important;
|
|
56
221
|
}
|
|
57
222
|
|
|
58
223
|
/* Hide submenu chevrons and flatten sublists in rail */
|
|
59
|
-
:where(.rt-SidebarContainer
|
|
60
|
-
.rt-
|
|
61
|
-
:
|
|
62
|
-
|
|
224
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubTriggerIcon),
|
|
225
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-BaseMenuSubTriggerIcon) {
|
|
226
|
+
display: none !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubList),
|
|
230
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-BaseMenuSubList) {
|
|
231
|
+
padding-left: 0 !important;
|
|
232
|
+
margin-left: 0 !important;
|
|
233
|
+
border-left: 0 !important;
|
|
234
|
+
border-top: 0 !important;
|
|
235
|
+
border-bottom: 0 !important;
|
|
236
|
+
margin-top: 0 !important;
|
|
237
|
+
margin-bottom: 0 !important;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* Also remove any decorative rule on the submenu list in thin mode */
|
|
241
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubList::before),
|
|
242
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-BaseMenuSubList::before) {
|
|
243
|
+
content: none !important;
|
|
244
|
+
display: none !important;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Ensure the Accordion content wrapper doesn't add indentation */
|
|
248
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubContent) {
|
|
249
|
+
padding-left: 0 !important;
|
|
250
|
+
margin-left: 0 !important;
|
|
251
|
+
border-left: 0 !important;
|
|
252
|
+
border-top: 1px solid var(--gray-a6) !important;
|
|
253
|
+
border-bottom: 1px solid var(--gray-a6) !important;
|
|
254
|
+
margin-top: var(--space-2) !important;
|
|
255
|
+
margin-bottom: var(--space-2) !important;
|
|
256
|
+
/* background-color: var(--accent-3); */
|
|
63
257
|
}
|
|
64
258
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
259
|
+
/* Remove vertical connector in thin mode */
|
|
260
|
+
/* (intentionally no ::before) */
|
|
261
|
+
|
|
262
|
+
/* Ensure submenu buttons also truncate */
|
|
263
|
+
:where(.rt-SidebarContainer[data-presentation='thin'] .rt-SidebarMenuSubContent .rt-SidebarMenuButton) {
|
|
264
|
+
white-space: nowrap;
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
text-overflow: ellipsis;
|
|
267
|
+
max-width: 100%;
|
|
71
268
|
}
|
|
72
269
|
|
|
73
270
|
/* Panel Layout Styling (default) - inherits existing styles */
|
|
@@ -347,7 +544,7 @@
|
|
|
347
544
|
line-height: var(--line-height-1);
|
|
348
545
|
letter-spacing: var(--letter-spacing-1);
|
|
349
546
|
border-radius: var(--radius-1);
|
|
350
|
-
font-weight: var(--font-weight-
|
|
547
|
+
font-weight: var(--font-weight-regular);
|
|
351
548
|
|
|
352
549
|
/* stylelint-disable-next-line selector-max-type */
|
|
353
550
|
& :where(svg) {
|
|
@@ -373,7 +570,7 @@
|
|
|
373
570
|
line-height: var(--line-height-2);
|
|
374
571
|
letter-spacing: var(--letter-spacing-2);
|
|
375
572
|
border-radius: var(--radius-2);
|
|
376
|
-
font-weight: var(--font-weight-
|
|
573
|
+
font-weight: var(--font-weight-regular);
|
|
377
574
|
|
|
378
575
|
/* stylelint-disable-next-line selector-max-type */
|
|
379
576
|
& :where(svg) {
|
|
@@ -482,6 +679,7 @@
|
|
|
482
679
|
& :where(.rt-SidebarMenuButton[data-active]) {
|
|
483
680
|
background-color: var(--accent-9);
|
|
484
681
|
color: var(--accent-contrast);
|
|
682
|
+
font-weight: var(--font-weight-medium);
|
|
485
683
|
|
|
486
684
|
/* Force all text elements to inherit active color */
|
|
487
685
|
& :where(.rt-Text) {
|
|
@@ -547,6 +745,7 @@
|
|
|
547
745
|
& :where(.rt-SidebarMenuButton[data-active]) {
|
|
548
746
|
background-color: var(--accent-12);
|
|
549
747
|
color: var(--accent-1);
|
|
748
|
+
font-weight: var(--font-weight-medium);
|
|
550
749
|
|
|
551
750
|
& :where(.rt-Text) {
|
|
552
751
|
color: inherit !important;
|
|
@@ -667,6 +866,7 @@
|
|
|
667
866
|
/* Base state: solid accent for solid panels */
|
|
668
867
|
background-color: var(--accent-3);
|
|
669
868
|
color: var(--accent-12);
|
|
869
|
+
font-weight: var(--font-weight-medium);
|
|
670
870
|
|
|
671
871
|
/* Theme-level translucent override */
|
|
672
872
|
:where([data-panel-background='translucent']) & {
|