@kushagradhawan/kookie-ui 0.1.32 → 0.1.34
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 +937 -458
- package/dist/cjs/components/_internal/base-button.d.ts.map +1 -1
- package/dist/cjs/components/_internal/base-button.js +1 -1
- package/dist/cjs/components/_internal/base-button.js.map +3 -3
- package/dist/cjs/components/chatbar.d.ts +202 -0
- package/dist/cjs/components/chatbar.d.ts.map +1 -0
- package/dist/cjs/components/chatbar.js +2 -0
- package/dist/cjs/components/chatbar.js.map +7 -0
- package/dist/cjs/components/icon-button.d.ts.map +1 -1
- package/dist/cjs/components/icon-button.js +2 -2
- package/dist/cjs/components/icon-button.js.map +3 -3
- package/dist/cjs/components/icons.d.ts +6 -1
- package/dist/cjs/components/icons.d.ts.map +1 -1
- package/dist/cjs/components/icons.js +1 -1
- package/dist/cjs/components/icons.js.map +3 -3
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/components/index.js.map +3 -3
- package/dist/cjs/components/popover.d.ts +13 -1
- package/dist/cjs/components/popover.d.ts.map +1 -1
- package/dist/cjs/components/popover.js +1 -1
- package/dist/cjs/components/popover.js.map +3 -3
- package/dist/cjs/components/sheet.d.ts +82 -0
- package/dist/cjs/components/sheet.d.ts.map +1 -0
- package/dist/cjs/components/sheet.js +2 -0
- package/dist/cjs/components/sheet.js.map +7 -0
- package/dist/cjs/components/shell.d.ts +180 -0
- package/dist/cjs/components/shell.d.ts.map +1 -0
- package/dist/cjs/components/shell.js +2 -0
- package/dist/cjs/components/shell.js.map +7 -0
- package/dist/cjs/components/sidebar.d.ts +4 -33
- 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/cjs/components/skeleton.d.ts.map +1 -1
- package/dist/cjs/components/skeleton.js +1 -1
- package/dist/cjs/components/skeleton.js.map +2 -2
- package/dist/cjs/helpers/inert.d.ts +1 -1
- package/dist/cjs/helpers/inert.d.ts.map +1 -1
- package/dist/cjs/helpers/inert.js +1 -1
- package/dist/cjs/helpers/inert.js.map +2 -2
- package/dist/esm/components/_internal/base-button.d.ts.map +1 -1
- package/dist/esm/components/_internal/base-button.js +1 -1
- package/dist/esm/components/_internal/base-button.js.map +3 -3
- package/dist/esm/components/chatbar.d.ts +202 -0
- package/dist/esm/components/chatbar.d.ts.map +1 -0
- package/dist/esm/components/chatbar.js +2 -0
- package/dist/esm/components/chatbar.js.map +7 -0
- package/dist/esm/components/icon-button.d.ts.map +1 -1
- package/dist/esm/components/icon-button.js +2 -2
- package/dist/esm/components/icon-button.js.map +3 -3
- package/dist/esm/components/icons.d.ts +6 -1
- package/dist/esm/components/icons.d.ts.map +1 -1
- package/dist/esm/components/icons.js +1 -1
- package/dist/esm/components/icons.js.map +3 -3
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/index.js.map +3 -3
- package/dist/esm/components/popover.d.ts +13 -1
- package/dist/esm/components/popover.d.ts.map +1 -1
- package/dist/esm/components/popover.js +1 -1
- package/dist/esm/components/popover.js.map +3 -3
- package/dist/esm/components/sheet.d.ts +82 -0
- package/dist/esm/components/sheet.d.ts.map +1 -0
- package/dist/esm/components/sheet.js +2 -0
- package/dist/esm/components/sheet.js.map +7 -0
- package/dist/esm/components/shell.d.ts +180 -0
- package/dist/esm/components/shell.d.ts.map +1 -0
- package/dist/esm/components/shell.js +2 -0
- package/dist/esm/components/shell.js.map +7 -0
- package/dist/esm/components/sidebar.d.ts +4 -33
- 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/dist/esm/components/skeleton.d.ts.map +1 -1
- package/dist/esm/components/skeleton.js.map +2 -2
- package/dist/esm/helpers/inert.d.ts +1 -1
- package/dist/esm/helpers/inert.d.ts.map +1 -1
- package/dist/esm/helpers/inert.js +1 -1
- package/dist/esm/helpers/inert.js.map +2 -2
- package/package.json +2 -1
- package/src/components/_internal/base-button.tsx +8 -0
- package/src/components/_internal/base-card.css +18 -18
- package/src/components/_internal/base-dialog.css +11 -49
- package/src/components/_internal/base-menu.css +2 -2
- package/src/components/_internal/base-sidebar-menu.css +3 -3
- package/src/components/accordion.css +6 -6
- package/src/components/animations.css +65 -81
- package/src/components/callout.css +3 -3
- package/src/components/chatbar.css +214 -0
- package/src/components/chatbar.tsx +1181 -0
- package/src/components/icon-button.tsx +11 -0
- package/src/components/icons.tsx +97 -2
- package/src/components/image.css +3 -3
- package/src/components/index.css +3 -0
- package/src/components/index.tsx +3 -0
- package/src/components/popover.css +53 -8
- package/src/components/popover.tsx +180 -2
- package/src/components/scroll-area.css +3 -3
- package/src/components/segmented-control.css +3 -3
- package/src/components/sheet.css +90 -0
- package/src/components/sheet.tsx +247 -0
- package/src/components/shell.css +137 -0
- package/src/components/shell.tsx +1032 -0
- package/src/components/sidebar.css +55 -268
- package/src/components/sidebar.tsx +40 -262
- package/src/components/skeleton.tsx +1 -2
- package/src/components/text-area.css +6 -5
- package/src/components/tooltip.css +2 -2
- package/src/helpers/inert.ts +3 -3
- package/src/styles/tokens/constants.css +6 -3
- package/src/styles/tokens/index.css +1 -0
- package/src/styles/tokens/radius.css +7 -2
- package/src/styles/tokens/space.css +6 -0
- package/src/styles/tokens/transition.css +91 -46
- package/styles.css +998 -496
- package/tokens/base.css +57 -35
- package/tokens.css +61 -38
|
@@ -2,6 +2,57 @@
|
|
|
2
2
|
@import './_internal/base-sidebar.css';
|
|
3
3
|
@import './_internal/base-sidebar-menu.css';
|
|
4
4
|
|
|
5
|
+
/*
|
|
6
|
+
Compact rail presentation
|
|
7
|
+
- Pattern B (split): scope to .rt-ShellSidebarRail
|
|
8
|
+
- Pattern A (single): scope to Shell region in rail state
|
|
9
|
+
*/
|
|
10
|
+
.rt-ShellSidebarRail :where(.rt-SidebarContent),
|
|
11
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarContent) {
|
|
12
|
+
padding: var(--space-2);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rt-ShellSidebarRail :where(.rt-SidebarMenuButton),
|
|
16
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarMenuButton) {
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: var(--space-1);
|
|
21
|
+
padding: var(--space-2) var(--space-1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rt-ShellSidebarRail :where(.rt-SidebarMenuBadge),
|
|
25
|
+
.rt-ShellSidebarRail :where(.rt-SidebarMenuShortcut),
|
|
26
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarMenuBadge),
|
|
27
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarMenuShortcut) {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rt-ShellSidebarRail :where(.rt-SidebarGroupLabel),
|
|
32
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarGroupLabel) {
|
|
33
|
+
display: block;
|
|
34
|
+
text-align: center;
|
|
35
|
+
font-size: var(--font-size-0);
|
|
36
|
+
line-height: var(--line-height-0);
|
|
37
|
+
color: var(--gray-a9);
|
|
38
|
+
font-weight: var(--font-weight-medium);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Hide submenu chevrons and flatten sublists in rail */
|
|
42
|
+
.rt-ShellSidebarRail :where(.rt-SidebarMenuSubTriggerIcon),
|
|
43
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarMenuSubTriggerIcon) {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.rt-ShellSidebarRail :where(.rt-SidebarMenuSubList),
|
|
48
|
+
:where(.rt-ShellSidebar[data-state='rail'] .rt-SidebarMenuSubList) {
|
|
49
|
+
padding-left: 0;
|
|
50
|
+
border-left: none;
|
|
51
|
+
margin-left: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Note: label styling omitted to avoid type-selector-specificity; use Text component for fine control */
|
|
55
|
+
|
|
5
56
|
/* Container Variants */
|
|
6
57
|
.rt-SidebarContainer:where(.rt-variant-outline) {
|
|
7
58
|
background-color: var(--color-panel);
|
|
@@ -208,9 +259,9 @@
|
|
|
208
259
|
justify-content: flex-start;
|
|
209
260
|
|
|
210
261
|
/* Transitions */
|
|
211
|
-
transition: background var(--duration-
|
|
212
|
-
box-shadow var(--duration-
|
|
213
|
-
filter var(--duration-
|
|
262
|
+
transition: background var(--motion-duration-small) var(--motion-ease-standard),
|
|
263
|
+
box-shadow var(--motion-duration-small) var(--motion-ease-standard),
|
|
264
|
+
filter var(--motion-duration-small) var(--motion-ease-standard);
|
|
214
265
|
|
|
215
266
|
/* Focus state */
|
|
216
267
|
&:where(:focus-visible) {
|
|
@@ -614,268 +665,4 @@
|
|
|
614
665
|
}
|
|
615
666
|
}
|
|
616
667
|
|
|
617
|
-
|
|
618
|
-
* *
|
|
619
|
-
* COLLAPSIBLE BEHAVIOR *
|
|
620
|
-
* *
|
|
621
|
-
***************************************************************************************************/
|
|
622
|
-
|
|
623
|
-
/* Collapsible behavior - ICON-ONLY MODE APPROACH */
|
|
624
|
-
.rt-SidebarRoot:where([data-collapsible="icon"]) {
|
|
625
|
-
/* No transitions - instant state changes for better UX */
|
|
626
|
-
transition: none;
|
|
627
|
-
overflow: visible; /* Allow content to be visible */
|
|
628
|
-
flex-shrink: 0; /* Don't let flex container shrink this */
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/* Icon-only width - size-specific space tokens */
|
|
632
|
-
:where(.radix-themes) {
|
|
633
|
-
--sidebar-icon-width-1: calc(var(--space-9) + var(--space-1)); /* Size 1: 36px */
|
|
634
|
-
--sidebar-icon-width-2: calc(var(--space-9) + var(--space-3)); /* Size 2: 76px */
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
/* Icon-only collapsed state - show narrow sidebar with icons only */
|
|
638
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-state="collapsed"]) {
|
|
639
|
-
opacity: 1; /* Keep visible */
|
|
640
|
-
pointer-events: auto; /* Keep interactive */
|
|
641
|
-
|
|
642
|
-
/* Size-specific widths */
|
|
643
|
-
&:where(.rt-r-size-1) {
|
|
644
|
-
width: var(--sidebar-icon-width-1);
|
|
645
|
-
min-width: var(--sidebar-icon-width-1);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
&:where(.rt-r-size-2) {
|
|
649
|
-
width: var(--sidebar-icon-width-2);
|
|
650
|
-
min-width: var(--sidebar-icon-width-2);
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
/* Expanded state - full width */
|
|
655
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-state="expanded"]) {
|
|
656
|
-
width: var(--sidebar-width);
|
|
657
|
-
min-width: var(--sidebar-width);
|
|
658
|
-
opacity: 1;
|
|
659
|
-
pointer-events: auto;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
/* Container sizing for icon mode */
|
|
663
|
-
.rt-SidebarContainer:where([data-collapsible="icon"]) {
|
|
664
|
-
/* Allow dynamic width based on state */
|
|
665
|
-
width: 100%;
|
|
666
|
-
min-width: 0;
|
|
667
|
-
flex-shrink: 0;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
/* Content adjustments for icon mode */
|
|
671
|
-
.rt-SidebarContent:where([data-collapsible="icon"]) {
|
|
672
|
-
/* Allow content to shrink in icon mode */
|
|
673
|
-
width: 100%;
|
|
674
|
-
min-width: 0;
|
|
675
|
-
flex-shrink: 0;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
/* Hide text content in collapsed icon mode */
|
|
679
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-state="collapsed"]) {
|
|
680
|
-
/* Style menu buttons for icon-only mode */
|
|
681
|
-
& :where(.rt-SidebarMenuButton) {
|
|
682
|
-
justify-content: center;
|
|
683
|
-
flex-direction: column;
|
|
684
|
-
padding: var(--space-2) var(--space-1);
|
|
685
|
-
gap: var(--space-1);
|
|
686
|
-
min-height: auto;
|
|
687
|
-
|
|
688
|
-
/* Show text spans as small labels under icons */
|
|
689
|
-
/* stylelint-disable-next-line selector-max-type */
|
|
690
|
-
& :where(span) {
|
|
691
|
-
display: block;
|
|
692
|
-
font-size: var(--font-size-0);
|
|
693
|
-
line-height: var(--line-height-0);
|
|
694
|
-
color: var(--gray-a10);
|
|
695
|
-
text-align: center;
|
|
696
|
-
font-weight: var(--font-weight-medium);
|
|
697
|
-
max-width: 100%;
|
|
698
|
-
overflow: hidden;
|
|
699
|
-
text-overflow: ellipsis;
|
|
700
|
-
white-space: nowrap;
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/* Dynamic width calculation for labels inside collapsed icon sidebar */
|
|
705
|
-
&:where(.rt-r-size-1) {
|
|
706
|
-
/* Group labels (no button padding) */
|
|
707
|
-
--sidebar-group-label-width: calc(var(--sidebar-icon-width-1) - (var(--space-2) * 2));
|
|
708
|
-
/* Button labels (inside menu buttons, subtract button padding) */
|
|
709
|
-
--sidebar-button-label-width: calc(var(--sidebar-group-label-width) - (var(--space-1) * 2));
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
&:where(.rt-r-size-2) {
|
|
713
|
-
--sidebar-group-label-width: calc(var(--sidebar-icon-width-2) - (var(--space-2) * 2));
|
|
714
|
-
--sidebar-button-label-width: calc(var(--sidebar-group-label-width) - (var(--space-1) * 2));
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
/* Apply the computed width to both group labels and the spans inside icon buttons */
|
|
718
|
-
& :where(.rt-SidebarGroupLabel) {
|
|
719
|
-
max-width: var(--sidebar-group-label-width);
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/* stylelint-disable-next-line selector-max-type */
|
|
723
|
-
& :where(.rt-SidebarMenuButton span) {
|
|
724
|
-
max-width: var(--sidebar-button-label-width);
|
|
725
|
-
min-width: 0; /* allow shrinking */
|
|
726
|
-
overflow: hidden;
|
|
727
|
-
text-overflow: ellipsis;
|
|
728
|
-
white-space: nowrap;
|
|
729
|
-
color: var(--gray-a12);
|
|
730
|
-
font-weight: var(--font-weight-medium);
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
/* stylelint-disable selector-max-type, selector-max-specificity */
|
|
734
|
-
&.rt-menu-variant-solid :where(.rt-SidebarMenuButton[data-highlighted] span),
|
|
735
|
-
&.rt-menu-variant-solid :where(.rt-SidebarMenuButton[data-active] span) {
|
|
736
|
-
color: var(--accent-contrast) !important;
|
|
737
|
-
}
|
|
738
|
-
/* stylelint-enable selector-max-type, selector-max-specificity */
|
|
739
|
-
|
|
740
|
-
/* Show group labels as small text instead of separators */
|
|
741
|
-
:where(.rt-SidebarGroupLabel) {
|
|
742
|
-
/* Use block display to make text-overflow ellipsis work reliably */
|
|
743
|
-
display: block;
|
|
744
|
-
text-align: center;
|
|
745
|
-
min-width: 0;
|
|
746
|
-
min-height: auto; /* Remove inherited min-height constraint */
|
|
747
|
-
max-width: var(--sidebar-group-label-width);
|
|
748
|
-
font-size: var(--font-size-0);
|
|
749
|
-
line-height: var(--line-height-0);
|
|
750
|
-
color: var(--gray-a9);
|
|
751
|
-
font-weight: var(--font-weight-medium);
|
|
752
|
-
padding: var(--space-1) var(--space-1);
|
|
753
|
-
margin: var(--space-2) 0 var(--space-1) 0;
|
|
754
|
-
overflow: hidden;
|
|
755
|
-
text-overflow: ellipsis;
|
|
756
|
-
white-space: nowrap;
|
|
757
|
-
|
|
758
|
-
/* Hide label for the first group if you prefer */
|
|
759
|
-
:where(.rt-SidebarGroup:first-child) & {
|
|
760
|
-
margin-top: 0;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/* Hide badges and shortcuts */
|
|
765
|
-
:where(.rt-SidebarMenuBadge),
|
|
766
|
-
:where(.rt-SidebarMenuShortcut) {
|
|
767
|
-
display: none;
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
/* Keep sub-menu trigger icons hidden in icon mode, but preserve accordion functionality */
|
|
771
|
-
:where(.rt-SidebarMenuSubTriggerIcon) {
|
|
772
|
-
display: none;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
/* Remove nested styling from sub-menu list to make items look like top-level */
|
|
776
|
-
:where(.rt-SidebarMenuSubList) {
|
|
777
|
-
padding-left: 0; /* Remove indentation */
|
|
778
|
-
border-left: none; /* Remove border */
|
|
779
|
-
margin-left: 0; /* Remove margin */
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
/* Tighter menu padding for icon-only mode */
|
|
783
|
-
:where(.rt-SidebarMenu) {
|
|
784
|
-
padding: var(--space-2);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/* Icon size remapping for collapsed state - make icons more prominent */
|
|
789
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-state="collapsed"]) {
|
|
790
|
-
/* Size 1 → use much larger icons (size 3 equivalent) */
|
|
791
|
-
&:where(.rt-r-size-1) {
|
|
792
|
-
/* stylelint-disable-next-line selector-max-type */
|
|
793
|
-
& :where(.rt-SidebarMenuButton svg) {
|
|
794
|
-
width: var(--content-icon-size-2) !important; /* ~19px instead of ~14px */
|
|
795
|
-
height: var(--content-icon-size-2) !important;
|
|
796
|
-
color: currentColor !important; /* Ensure icon color is visible */
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
/* Size 2 → use largest icons (size 4 equivalent) */
|
|
801
|
-
&:where(.rt-r-size-2) {
|
|
802
|
-
/* stylelint-disable-next-line selector-max-type */
|
|
803
|
-
& :where(.rt-SidebarMenuButton svg) {
|
|
804
|
-
width: var(--content-icon-size-3) !important; /* 20px instead of 16px */
|
|
805
|
-
height: var(--content-icon-size-3) !important;
|
|
806
|
-
color: currentColor !important; /* Ensure icon color is visible */
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
/* Floating sidebars in icon mode */
|
|
812
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-type="floating"]) {
|
|
813
|
-
/* Same instant approach */
|
|
814
|
-
transition: none;
|
|
815
|
-
overflow: visible; /* Allow content to be visible outside container */
|
|
816
|
-
flex-shrink: 0;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
/* Floating collapsed state */
|
|
820
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-type="floating"][data-state="collapsed"]) {
|
|
821
|
-
opacity: 1;
|
|
822
|
-
pointer-events: auto;
|
|
823
|
-
/* Keep floating margins but adjust for smaller width */
|
|
824
|
-
margin: var(--space-2);
|
|
825
|
-
|
|
826
|
-
/* Size-specific widths */
|
|
827
|
-
&:where(.rt-r-size-1) {
|
|
828
|
-
width: var(--sidebar-icon-width-1);
|
|
829
|
-
min-width: var(--sidebar-icon-width-1);
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
&:where(.rt-r-size-2) {
|
|
833
|
-
width: var(--sidebar-icon-width-2);
|
|
834
|
-
min-width: var(--sidebar-icon-width-2);
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-type="floating"][data-state="expanded"]) {
|
|
839
|
-
width: var(--sidebar-width);
|
|
840
|
-
min-width: var(--sidebar-width);
|
|
841
|
-
opacity: 1;
|
|
842
|
-
pointer-events: auto;
|
|
843
|
-
/* Restore floating margins */
|
|
844
|
-
margin: var(--space-2);
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
/* Mobile responsive behavior - hide completely on mobile regardless of icon mode */
|
|
848
|
-
@media (max-width: 768px) {
|
|
849
|
-
.rt-SidebarRoot:where([data-collapsible="icon"]) {
|
|
850
|
-
display: none;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
.rt-SidebarRoot:where([data-collapsible="icon"][data-state="expanded"]) {
|
|
854
|
-
display: flex;
|
|
855
|
-
position: fixed;
|
|
856
|
-
top: 0;
|
|
857
|
-
left: 0;
|
|
858
|
-
height: 100vh;
|
|
859
|
-
width: var(--sidebar-width);
|
|
860
|
-
z-index: 50;
|
|
861
|
-
box-shadow: var(--shadow-6);
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
/* Reduced motion support - already no animations */
|
|
866
|
-
@media (prefers-reduced-motion: reduce) {
|
|
867
|
-
.rt-SidebarRoot:where([data-collapsible="icon"]) {
|
|
868
|
-
transition: none;
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
/* High contrast mode support */
|
|
873
|
-
@media (forced-colors: active) {
|
|
874
|
-
:where(.rt-SidebarMenuButton):focus-visible {
|
|
875
|
-
outline: 2px solid CanvasText;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
:where(.rt-SidebarTrigger):focus-visible {
|
|
879
|
-
outline: 2px solid CanvasText;
|
|
880
|
-
}
|
|
881
|
-
}
|
|
668
|
+
/* Removed old icon-only collapsed mode rules in favor of Shell rail mode */
|