-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Expand file tree
/
Copy pathentry-layout.css
More file actions
8270 lines (7760 loc) · 218 KB
/
Copy pathentry-layout.css
File metadata and controls
8270 lines (7760 loc) · 218 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* ============================================================
Entry layout — header-less variant
- Single-row shell (`entry-shell--no-header`)
- Left icon-only nav rail (`entry-nav-rail`)
- Center scroll container (`entry-main--scroll`)
============================================================ */
/* Header-less shell variant. The rail's logo replaces the chrome
brand and a floating top-right control replaces the chrome
actions, so the entry view does not render `AppChromeHeader`. */
.entry-shell--no-header {
grid-template-rows: 1fr;
--entry-rail-width: 236px;
}
/* `.entry-shell` is always mounted inside `.workspace-shell__body`, which
reserves its own space above for the app's persistent tab-chrome header
(shell.css: `.workspace-shell` grid rows `44px minmax(0, 1fr)`) and already
sizes any direct `.entry-shell` child to `height: 100%` accordingly. A
`min-height: 100vh` here would force this element past that correctly
-computed height by the header's height, overflowing the bottom of
`.workspace-shell__body`'s `overflow: hidden` box — clipping this view's
own bottom content (e.g. the art panel's bottom padding) instead of
scrolling it. Rely on the inherited height instead of re-asserting 100vh. */
.entry-shell--onboarding {
position: relative;
display: flex;
align-items: stretch;
justify-content: stretch;
padding: 0;
background: var(--bg);
}
.entry-onboarding-modal {
width: 100%;
height: 100%;
overflow: auto;
border-radius: 0;
background: var(--bg);
box-shadow: none;
}
/* Entry view collapses the rail by default (Manus-style): the grid's first
column animates between 0 and the rail width. Collapsed = clean full-width
entry for new users; expanded = the rail docks and pushes the main content
to the right (it stays docked until the user collapses it again). */
.entry-shell--no-header .entry {
grid-template-columns: 0 minmax(0, 1fr);
/* Collapse: hold the horizontal squeeze until the rows have cascaded out
top-to-bottom (see the staggered rail-row fade below), otherwise the
0-width clip would swallow the lower rows before their turn. */
transition: grid-template-columns 200ms cubic-bezier(0.23, 1, 0.32, 1) 170ms;
/* Translucent over the app-wash pastel ground (app-wash.css): the frosted
rail and content cards float on the wash instead of a flat tone. */
background: var(--veil-page);
}
.entry-shell--no-header .entry.entry--rail-open {
/* Expand is immediate — no hold — so opening stays snappy. */
transition: grid-template-columns 200ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
grid-template-columns: var(--entry-rail-width, 56px) minmax(0, 1fr);
}
/* Left rail — docked column. Lives in the grid's first track; collapsed the
track is 0-wide so the rail is clipped away, expanded it occupies the rail
width. */
.entry-nav-rail {
/* Fill the grid track (0 collapsed → rail width expanded) rather than a
fixed width, so a 0-wide track truly hides the rail instead of letting a
56px rail overflow it. The rail box itself is a transparent container; the
visible surface is the floating `.entry-nav-rail__panel` inside it. */
width: 100%;
min-width: 0;
border-right: 0;
background: transparent;
display: flex;
flex-direction: column;
align-items: stretch;
position: relative;
z-index: 30;
/* Visibility is driven purely by the grid track width (0 collapsed) plus
the overflow clip below — no opacity fade, which previously crossed with
the topbar toggle's fade-out and caused a flash on expand. */
pointer-events: none;
}
/* The whole sidebar reads as one floating layer: the content sits in a panel
inset from the grid-track edges (margin) with rounded corners + elevation,
instead of a flush docked column separated by divider lines. */
.entry-nav-rail__panel {
flex: 1 1 auto;
min-height: 0;
/* No explicit width: as a stretch flex child it fills the rail minus its
horizontal margins (so margin insets it without overflowing the track). */
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 8px;
/* Top margin 0: the tab bar already contributes a 10px gap below the tabs
(its bottom padding), so the single visible gap between the tabs and this
rail card stays 10px instead of doubling to 20 (tab 10 + rail 10). */
margin: 0 10px 10px;
/* Bottom padding trimmed 12 → 5 so the account row's gap to the panel's
bottom edge (trigger padding 4 + footer padding 6 + 5 + 1px stroke = 16px)
matches its 16px left/right inset. */
padding: 10px 0 5px;
position: relative;
/* Craft-style milky frost (material.css thin tier): soft white surface over
the wash/wallpaper with a saturated blur, instead of fully clear glass. */
/* White frost: pure-white base at 65% alpha, so the card reads white but
keeps the frosted-glass translucency (the panel's material-thin backdrop
blur below does the frosting). */
--rail-surface: rgba(255, 255, 255, 0.65);
background: var(--rail-surface);
-webkit-backdrop-filter: var(--material-thin-backdrop);
backdrop-filter: var(--material-thin-backdrop);
/* The stroke is the gradient ring painted by ::after below — the real
border stays transparent so the box metrics don't change. */
border: 1px solid transparent;
border-radius: var(--radius-lg);
/* Whisper elevation: the floating panel only needs a hairline lift — the
md shadow read as a wide gray halo on the light ground. */
box-shadow: var(--shadow-sm);
}
/* Gradient rim, Craft-style: a light edge that is brightest along the top
and fades down the sides (glass-refract ring tokens, so dark mode halves
it automatically). Painted as a masked overlay so only the 1px ring shows
and the frosted surface underneath stays untouched. */
.entry-nav-rail__panel::after {
content: '';
position: absolute;
inset: -1px;
border-radius: inherit;
padding: 1px;
pointer-events: none;
background: linear-gradient(
180deg,
var(--glass-refract-ring-top) 0%,
var(--glass-refract-ring-edge) 42%,
var(--glass-refract-ring-edge) 68%,
var(--glass-refract-ring-bottom) 100%
);
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
mask-composite: exclude;
}
/* Material spec fallbacks: drop the translucency to a solid per-theme surface
when the user reduces transparency or the browser lacks backdrop-filter. */
@media (prefers-reduced-transparency: reduce) {
.entry-nav-rail__panel {
--rail-surface: var(--bg);
background: var(--rail-surface);
backdrop-filter: none;
-webkit-backdrop-filter: none;
border-color: color-mix(in srgb, var(--border) 66%, transparent);
}
.entry-nav-rail__panel::after {
display: none;
}
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.entry-nav-rail__panel {
--rail-surface: var(--bg);
background: var(--rail-surface);
border-color: color-mix(in srgb, var(--border) 66%, transparent);
}
.entry-nav-rail__panel::after {
display: none;
}
}
.entry-nav-rail.is-open {
pointer-events: auto;
}
/* While collapsed (the grid track is 0) clip the rail's 56px of content so
nothing bleeds over the full-width entry. Expanded, descendants may escape
horizontally so hover tooltips and the help popover render to the right. */
.entry:not(.entry--rail-open) .entry-nav-rail {
overflow: hidden;
/* Drop the right border too, otherwise a 1px seam shows on the
zero-width collapsed track. */
border-right: 0;
}
.entry--rail-open .entry-nav-rail {
overflow: visible;
}
/* ── Collapse cascade ──────────────────────────────────────────────────────
Clicking collapse plays a top-to-bottom sequence: each rail row fades and
lifts a few px, staggered by its document order (search → nav items → team
items → footer), so the sidebar empties from the top down before the track
squeezes shut. Expanding is instant (no per-row delay) to stay snappy. */
.entry-nav-rail__group > .entry-nav-rail__search,
.entry-nav-rail__group > .entry-nav-rail__btn,
.entry-nav-rail__group > .entry-nav-rail__team-wrap,
.entry-nav-rail__section-divider,
.entry-nav-rail__footer {
transition:
opacity 150ms cubic-bezier(0.23, 1, 0.32, 1),
transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.entry:not(.entry--rail-open) .entry-nav-rail__group > .entry-nav-rail__search,
.entry:not(.entry--rail-open) .entry-nav-rail__group > .entry-nav-rail__btn,
.entry:not(.entry--rail-open) .entry-nav-rail__group > .entry-nav-rail__team-wrap,
.entry:not(.entry--rail-open) .entry-nav-rail__section-divider,
.entry:not(.entry--rail-open) .entry-nav-rail__footer {
opacity: 0;
transform: translateY(-4px);
}
/* Per-row stagger — applied only while collapsing so the cascade runs
top→bottom. Our rail keeps every row (search → nav items → team switcher →
team items → divider …) as direct children of one __group, so a single
nth-child run covers the whole sequence (the designer branch split this
across a group + team-section pair). Child 1 is the brand slot, which does
not fade, so the sequence starts at child 2. */
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(2) { transition-delay: 0ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(3) { transition-delay: 15ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(4) { transition-delay: 30ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(5) { transition-delay: 45ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(6) { transition-delay: 60ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(7) { transition-delay: 75ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(8) { transition-delay: 90ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(9) { transition-delay: 105ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(10) { transition-delay: 120ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(11) { transition-delay: 135ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__group > *:nth-child(n + 12) { transition-delay: 150ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__footer { transition-delay: 165ms; }
/* Footer finale: after the rows have cascaded out top-to-bottom, the account
底卡 does NOT fade up with them — it stays fully opaque and slides left as
the track squeezes shut, reading as the card retracting to the left. Same
selector as the shared collapse rule above, placed after it so it wins. */
.entry:not(.entry--rail-open) .entry-nav-rail__footer {
opacity: 1;
transform: translateX(-36px);
}
@media (prefers-reduced-motion: reduce) {
.entry-nav-rail__group > .entry-nav-rail__search,
.entry-nav-rail__group > .entry-nav-rail__btn,
.entry-nav-rail__group > .entry-nav-rail__team-wrap,
.entry-nav-rail__section-divider,
.entry-nav-rail__footer {
transition: none;
transform: none;
}
.entry:not(.entry--rail-open) .entry-nav-rail__group > * { transition-delay: 0ms; }
.entry:not(.entry--rail-open) .entry-nav-rail__footer { transition-delay: 0ms; }
.entry-shell--no-header .entry { transition-delay: 0ms; }
}
/* Narrow window: below the comfortable split width the docked rail
auto-collapses instead of squeezing into a broken sliver — the grid track
zeroes out and the floating panel is clipped and inert. The open state is
preserved, so widening the window restores the rail as it was. */
@media (max-width: 1080px) {
.entry-shell--no-header .entry.entry--rail-open {
grid-template-columns: 0 minmax(0, 1fr);
}
.entry--rail-open .entry-nav-rail {
overflow: hidden;
pointer-events: none;
}
}
/* Topbar panel toggle — the single affordance left visible when the rail
is collapsed. Sits at the left edge of the sticky topbar and is hidden
once the rail is docked (the tabs bar's pinned Home toggle takes over). */
.entry-rail-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
margin-right: auto;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg-panel);
color: var(--text);
cursor: pointer;
transition:
opacity 160ms cubic-bezier(0.23, 1, 0.32, 1),
background 140ms cubic-bezier(0.23, 1, 0.32, 1),
color 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* The flex layout would otherwise shrink the icon's width to a sliver; pin
the SVG so the panel glyph renders at its intended square size. */
.entry-rail-toggle svg {
flex-shrink: 0;
}
.entry-rail-toggle:hover {
background: var(--bg-hover, rgba(0, 0, 0, 0.05));
color: var(--text-strong, #111);
}
.entry-rail-toggle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
/* Hide the topbar toggle the instant the rail docks — a fade here would
cross with the rail's logo sliding in and read as a flash. */
.entry--rail-open .entry-rail-toggle {
display: none;
}
/* Right-edge hairline removed: the sidebar is a floating panel, not a docked
column, so it is separated from the main content by the panel's margin +
shadow instead of a seam. */
.entry-nav-rail__group {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 2px;
flex: 1 1 auto;
min-height: 0;
width: 100%;
padding: 0 10px;
}
.entry-nav-rail__footer {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
width: 100%;
padding-bottom: 6px;
}
.entry-nav-rail__divider {
display: none;
}
.entry-nav-rail__logo-divider {
display: none;
}
/* Bottom-left action cluster (GitHub star / Discord / help).
Compact toolbar: Star keeps the GitHub icon plus live count; secondary
actions collapse to icons. */
.entry-rail-actions {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-start;
gap: 4px;
width: 100%;
max-width: calc(100% - 18px);
padding: 0 0 4px;
margin: 0 auto;
box-sizing: border-box;
}
.entry-nav-rail__footer .entry-rail-actions {
order: 1;
/* Action row rides higher, clear of the credits + account stack. */
margin-bottom: 12px;
}
/* With no update in flight, the actions box has no children because the
updater host renders nothing. Collapse it AND the footer's own padding so
the rail doesn't end in a blank strip under the account row. */
.entry-nav-rail__footer .entry-rail-actions:empty {
display: none;
}
.entry-nav-rail__footer:has(> .entry-rail-actions:empty) {
padding-bottom: 0;
}
.entry-nav-rail__footer .entry-nav-rail__account {
order: 2;
width: calc(100% - 18px);
margin: 0 auto;
padding-top: 0;
}
.entry-rail-actions > * {
align-self: center;
}
.entry-rail-actions .entry-star-badge,
.entry-rail-actions .entry-discord-badge,
.entry-rail-actions .entry-mail-badge,
.entry-rail-actions .use-everywhere-chip {
justify-content: center;
}
.entry-rail-actions .entry-help-menu {
align-self: center;
display: block;
width: 30px;
flex: 0 0 30px;
}
.entry-local-mode-tip {
position: absolute;
left: var(--spacing-8, 8px);
right: var(--spacing-8, 8px);
/* Anchored to the footer (position: relative), whose bottom edge sits the
panel's 5px bottom padding + 1px ring above the panel's visible edge —
3 + 5 + 1 = 9px, matching the sides' 8 + 1px ring inset. */
bottom: 3px;
display: grid;
gap: 8px;
width: auto;
margin: 0;
padding: 8px;
box-sizing: border-box;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--bg-panel);
color: var(--text-muted);
font-size: 12px;
line-height: 1.4;
text-align: left;
cursor: pointer;
z-index: 2;
/* A mousedown→mouseup gesture that selects the label text (any hair of
drag, e.g. a real click made while screen-recording) makes the browser
suppress the click event entirely — this card would then silently never
call begin(), with no spinner, no browser tab, and no visible error. */
user-select: none;
transition: border-color 120ms, background 120ms, transform 120ms;
}
.entry-local-mode-tip:hover,
.entry-local-mode-tip:focus-visible {
border-color: var(--border-strong);
background: var(--bg-subtle);
outline: none;
transform: translateY(-1px);
}
.entry-local-mode-tip__head {
display: flex;
align-items: center;
gap: 4px;
min-width: 0;
color: var(--text-strong);
}
.entry-local-mode-tip__login-badge {
display: inline-flex;
flex: 1;
align-items: center;
justify-content: center;
gap: 4px;
height: 30px;
overflow: hidden;
padding: 0 16px;
border-radius: var(--radius-pill, 999px);
background: var(--accent);
color: #00ff08;
font-size: 12px;
font-weight: 700;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
.entry-local-mode-tip p {
margin: 0;
}
/* While the vela device-auth flow is pending the card stops being a button:
the body swaps to a progress line + cancel, so the hover lift would lie. */
.entry-local-mode-tip.is-signing {
cursor: default;
}
.entry-local-mode-tip.is-signing:hover {
transform: none;
border-color: var(--border);
background: var(--bg-panel);
}
.entry-local-mode-tip__cancel {
justify-self: start;
margin-top: 2px;
padding: 3px 10px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: transparent;
color: var(--text-muted);
font-size: 11px;
line-height: 1.4;
cursor: pointer;
transition: border-color 120ms, background 120ms, color 120ms;
}
.entry-local-mode-tip__cancel:hover {
border-color: var(--border-strong);
background: var(--bg-subtle);
color: var(--text);
}
/* ---------- Rail account skeleton (RailAccountSyncTip) ----------
Stand-in for the account row (`.entry-nav-rail__account-trigger` below)
while the just-signed-in `GET /api/workspace/context` re-read is still in
flight. Unlike `.entry-local-mode-tip` (absolutely positioned with a fixed
`bottom` so its card shape never collides with the rail-actions row below
it), this is a normal flex child of `.entry-nav-rail__footer` — the same
flow `.entry-rail-actions` already uses (`width: calc(100% - 18px); margin:
0 auto;`). That keeps it clear of the actions row through ordinary flex
stacking instead of a guessed pixel offset, AND lands its bottom edge
close to the panel's bottom padding the same way the real account-trigger
does once it mounts in `.entry-nav-rail__group` — so the loading→loaded
swap reads as one row filling in, not a card jumping to a different slot
(recvqgpXSYFNTq follow-up, 2026-07-24 product feedback). */
.entry-rail-account-skeleton {
display: flex;
align-items: center;
gap: 8px;
width: calc(100% - 18px);
margin: 0 auto;
min-height: 34px;
padding: 4px 6px;
box-sizing: border-box;
}
.entry-rail-account-skeleton__avatar,
.entry-rail-account-skeleton__name {
display: block;
/* House skeleton sweep (matches DesignSystemsTab's `.skeletonBlock`): a
soft highlight passing over a muted base, timed with the repo's default
UI ease-out (AGENTS.md "UI animation philosophy") rather than a linear
or ease-in-out sweep. */
background:
linear-gradient(
110deg,
transparent 28%,
color-mix(in srgb, #fff 34%, transparent) 50%,
transparent 72%
) 0 0 / 200% 100%,
color-mix(in srgb, var(--bg-muted) 84%, var(--bg-panel));
animation: entry-rail-account-skeleton-sheen 1.55s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
[data-theme="dark"] .entry-rail-account-skeleton__avatar,
[data-theme="dark"] .entry-rail-account-skeleton__name {
background:
linear-gradient(
110deg,
transparent 28%,
color-mix(in srgb, #fff 13%, transparent) 50%,
transparent 72%
) 0 0 / 200% 100%,
color-mix(in srgb, var(--bg-elevated) 68%, var(--bg-muted));
}
.entry-rail-account-skeleton__avatar {
/* Mirrors `.entry-nav-rail__account-avatar`'s 24×25 box. That box's own
`clip-path: url(#od-avatar-squircle)` currently has no matching SVG
`<clipPath>` in the tree, so the real avatar renders as a plain square —
this placeholder stays a plain rounded square too rather than chasing a
squircle the live row does not actually show. */
width: 24px;
height: 25px;
flex: 0 0 24px;
border-radius: 6px;
}
.entry-rail-account-skeleton__name {
/* A representative name-length bar, sized to the real row's 13px/500 text
(`.entry-nav-rail__account-name`) rather than stretching full width —
the real row's name is short and left-aligned, not a full-width line. */
width: 62px;
height: 13px;
border-radius: 4px;
}
@keyframes entry-rail-account-skeleton-sheen {
to {
background-position: -200% 0, 0 0;
}
}
@media (prefers-reduced-motion: reduce) {
.entry-rail-account-skeleton__avatar,
.entry-rail-account-skeleton__name {
animation: none;
}
}
/* ---------- Right-side hover tooltip (rail items only) ----------
Only the rail's icon-only controls (updater, avatar, icon-only
sign-out) advertise a `data-tooltip`; labeled nav items render
their text inline and must not emit the attribute, or the bubble
would duplicate visible text. The label slides in from the right
on hover/focus-visible and sits above siblings via z-index. We
deliberately block tooltips while the help popover is open so the
floating menu does not collide with the tooltip bubble. */
.entry-nav-rail [data-tooltip] {
position: relative;
}
.entry-nav-rail [data-tooltip]:not(.od-tooltip)::after {
content: attr(data-tooltip);
position: absolute;
left: calc(100% + 10px);
top: 50%;
transform: translateY(-50%) translateX(-4px);
padding: 5px 9px;
font-size: 12px;
line-height: 1;
white-space: nowrap;
color: var(--bg-panel);
background: var(--text-strong, #111);
border-radius: var(--radius-sm);
box-shadow: var(--shadow-sm, 0 4px 12px rgba(0, 0, 0, 0.12));
opacity: 0;
pointer-events: none;
transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out);
z-index: 60;
}
.entry-nav-rail [data-tooltip]:not(.od-tooltip):hover::after,
.entry-nav-rail [data-tooltip]:not(.od-tooltip):focus-visible::after {
opacity: 1;
transform: translateY(-50%) translateX(0);
}
.entry-nav-rail [data-tooltip]:not(.od-tooltip)[aria-expanded='true']::after {
display: none;
}
/* RTL: the rail still lives on the left so the tooltip remains on
the right of the button — but using `left: calc(100% + 10px)` in
RTL would flip incorrectly via the parent's `dir="rtl"`. Pin the
anchor explicitly so the bubble stays where the user expects. */
[dir='rtl'] .entry-nav-rail [data-tooltip]:not(.od-tooltip)::after {
left: auto;
right: calc(100% + 10px);
transform: translateY(-50%) translateX(4px);
}
[dir='rtl'] .entry-nav-rail [data-tooltip]:not(.od-tooltip):hover::after,
[dir='rtl'] .entry-nav-rail [data-tooltip]:not(.od-tooltip):focus-visible::after {
transform: translateY(-50%) translateX(0);
}
/* ---------- Help launcher + flyout popover ----------
Lives in `.entry-nav-rail__footer` and floats to the right of the
rail so the menu stays inside the viewport even when the rail is
anchored at the bottom-left of the window. */
.entry-help-menu {
position: relative;
display: inline-flex;
}
.entry-rail-actions .entry-help-menu__trigger {
width: 100%;
height: 29px;
padding: 0;
border: 1px solid transparent;
border-radius: 8px;
background: transparent;
color: var(--text);
box-shadow: none;
gap: 0;
justify-content: center;
}
.entry-rail-actions .entry-help-menu__trigger:hover {
background: color-mix(in srgb, var(--text) 5%, transparent);
border-color: transparent;
color: var(--text-strong);
}
.entry-help-popover {
position: absolute;
left: calc(100% + 12px);
bottom: 0;
z-index: 70;
min-width: 220px;
padding: 6px;
background: var(--glass-regular);
-webkit-backdrop-filter: var(--glass-backdrop);
backdrop-filter: var(--glass-backdrop);
border: 1px solid var(--material-separator);
border-radius: var(--radius);
box-shadow: var(--shadow-lg, 0 14px 36px rgba(0, 0, 0, 0.14));
display: flex;
flex-direction: column;
gap: 2px;
}
.entry-help-popover__item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
font-size: 13px;
color: var(--text);
text-decoration: none;
border-radius: var(--radius-sm);
cursor: pointer;
transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}
.entry-help-popover__item:hover {
background: var(--bg-subtle);
color: var(--text-strong);
}
.entry-help-popover__social-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(58px, auto);
gap: 4px;
}
.entry-help-popover__item--social {
min-width: 0;
}
.entry-help-popover__item--social span:last-child {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.entry-help-popover__icon {
width: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
color: var(--text-muted);
flex-shrink: 0;
}
.entry-help-popover__divider {
height: 1px;
background: var(--border-soft);
margin: 4px 6px;
}
[dir='rtl'] .entry-help-popover {
left: auto;
right: calc(100% + 12px);
}
[dir='rtl'] .entry-help-popover__item {
flex-direction: row-reverse;
text-align: right;
}
/* Positioning host for the update-ready indicator and its panel. The
indicator's own look lives in UpdaterPopup.module.css; `.updater-popup`
anchors against this box (see styles/workspace/mention-home.css). */
.entry-updater-menu {
position: relative;
display: inline-flex;
}
.entry-nav-rail__logo {
appearance: none;
position: relative;
width: 36px;
height: 36px;
padding: 0;
border: 0;
border-radius: var(--radius);
background: transparent;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: hidden;
cursor: pointer;
margin-bottom: 2px;
transition: background-color 120ms cubic-bezier(0.23, 1, 0.32, 1),
border-color 120ms cubic-bezier(0.23, 1, 0.32, 1),
transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.entry-nav-rail__logo:hover {
background: transparent;
border-color: transparent;
}
.entry-nav-rail__logo:active {
transform: scale(0.96);
}
.entry-nav-rail__logo:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* The logo doubles as the Home destination; when the home view is
active it gets the same accent treatment as a primary nav button
so users still see "you are here" without a dedicated Home icon. */
.entry-nav-rail__logo.is-active {
background: transparent;
border-color: transparent;
}
.entry-nav-rail__btn {
appearance: none;
width: 100%;
height: 33px;
padding: 0 10px;
border: 1px solid transparent;
border-radius: 8px;
background: transparent;
/* The workspace console entries (成员/数据大盘/Workspace 设置) render as
anchors; the UA underline breaks the uniform nav-item look (#5517 rail
items are plain). */
text-decoration: none;
/* Unselected: label matches the icon's muted tone (one uniform color); hover
steps up to --text-strong, selection goes near-black on light gray.
68% lands the blend on the --text-soft step (52% read too faint). */
color: color-mix(in srgb, var(--text) 68%, transparent);
display: flex;
align-items: center;
justify-content: flex-start;
gap: 9px;
cursor: pointer;
font: inherit;
text-align: left;
transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.entry-nav-rail__btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 18px;
/* Tracks the unselected label tone above. */
color: color-mix(in srgb, var(--text) 68%, transparent);
}
.entry-nav-rail__btn-icon > svg {
width: 18px;
height: 18px;
}
/* Every glyph in remixicon.ttf has a zero left side bearing (ink hugs x=0), so
each icon renders ~0.8px left of its box centre — most obvious on asymmetric
marks (share / kanban / settings). Nudge the rail icons right to centre them. */
.entry-nav-rail__btn-icon .od-icon {
transform: translateX(0.8px);
}
.entry-nav-rail__btn-label {
font-size: 13px;
font-weight: 400;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.entry-nav-rail__btn.is-active .entry-nav-rail__btn-icon {
color: var(--selected);
}
.entry-nav-rail__btn.is-active .entry-nav-rail__btn-label {
font-weight: 400;
}
/* Search box */
.entry-nav-rail__search-row {
display: flex;
align-items: center;
gap: 6px;
/* No top margin: the search box's gap to the rail's top edge (panel
padding-top 10px + 1px stroke = 11px) then matches its 11px left/right
inset, instead of the extra 4px pushing it to 15px. */
margin: 0 0 10px;
}
.entry-nav-rail__search-row .entry-nav-rail__search {
flex: 1;
min-width: 0;
margin: 0;
}
.entry-nav-rail__search {
display: flex;
align-items: center;
gap: 7px;
height: 34px;
margin: 4px 0 10px;
padding: 0 10px;
/* White to match the rail surface; a border keeps the input visible on it. */
border: 1px solid var(--border);
border-radius: var(--radius-large, 8px);
background: var(--rail-surface, #fff);
color: var(--text-soft);
transition:
background-color var(--duration-ultra-fast) var(--curve-easy-ease),
border-color var(--duration-ultra-fast) var(--curve-easy-ease),
color var(--duration-ultra-fast) var(--curve-easy-ease);
}
/* The search box is now a <button> that opens the search palette. Keep the
input-box look, left-align its content, and give it a plain hover. */
.entry-nav-rail__search {
justify-content: flex-start;
width: 100%;
cursor: pointer;
text-align: left;
}
.entry-nav-rail__search:hover {
border-color: var(--border-strong);
}
.entry-nav-rail__search:focus-visible {
outline: none;
border-color: var(--border-strong);
}
.entry-nav-rail__search-placeholder {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-faint);
font-size: 13px;
}
/* ⌘K shortcut hint pinned to the right of the search box. Taller (24px in the
34px box) so it hugs closer to the top/bottom edges instead of floating. */
.entry-nav-rail__search-kbd {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 30px;
height: 24px;
padding: 0 6px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg-subtle);
color: var(--text-muted);
font-size: 11px;
font-weight: 500;
line-height: 1;
letter-spacing: 0.02em;
}
.entry-nav-rail__search input {
appearance: none;
min-width: 0;
height: 100%;
padding: 0;
border: 0;
outline: none;
background: transparent;
box-shadow: none;
color: var(--text);
font: inherit;
font-size: 13px;
width: 100%;
cursor: default;
}
.entry-nav-rail__search input:focus,
.entry-nav-rail__search input:focus-visible {
border: 0;
outline: none;
background: transparent;
box-shadow: none;
}
.entry-nav-rail__search input::-webkit-search-cancel-button,
.entry-nav-rail__search input::-webkit-search-decoration {
appearance: none;
}
.entry-nav-rail__search input::placeholder { color: var(--text-faint); }
/* Team switcher row */
/* Team block: separated from the personal nav above by a very soft divider. */
.entry-nav-rail__team-section {
display: flex;
flex-direction: column;
gap: 2px;
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid color-mix(in srgb, var(--border) 42%, transparent);
}
.entry-nav-rail__team {
position: relative;
display: flex;
align-items: center;
gap: 8px;
height: 34px;
margin: 2px 0 4px;
padding: 0 10px;
color: var(--text-strong);
}
.entry-nav-rail__team-avatar {
width: 19px;
height: 19px;
border-radius: var(--radius-pill);
background: var(--bg-panel);
color: var(--text);
display: grid;
place-items: center;
font-size: 12px;
font-weight: 700;
flex: 0 0 19px;
overflow: hidden;
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 78%, transparent);
}
.entry-nav-rail__team-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.entry-nav-rail__team-name {
font-size: 13px;
font-weight: 500;
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.entry-nav-rail__team svg { color: var(--text-soft); }
/* Section label (e.g. 更多) */
.entry-nav-rail__section {
margin: 15px 0 5px;
padding: 0 10px;
font-size: 12px;
font-weight: 500;
letter-spacing: 0;
text-transform: none;
color: color-mix(in srgb, var(--text-muted) 84%, transparent);
}
.entry-nav-rail__section-divider {
width: calc(100% - 20px);
height: 1px;
margin: 15px 10px 5px;
background: var(--border-soft, rgba(0, 0, 0, 0.08));
}
.entry-nav-rail__btn:not(.is-active):hover {
/* Only the fill changes on hover — the label keeps its resting color so
text doesn't shift tone under the pointer. */
background: color-mix(in srgb, var(--text) 5%, transparent);
border-color: transparent;
}
.entry-nav-rail__btn.is-active {
/* Selected = one step above the lightest surface gray (--bg-subtle #ededed)
under the spec's selection color (--selected #353535) for label + icon. */
background: var(--bg-subtle);
color: var(--selected);
border-color: transparent;
}
.entry-nav-rail__btn.is-active:hover {
background: var(--bg-subtle);
border-color: transparent;
}
.entry-nav-rail__btn:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 1px;
}
/* Avatar / settings dropdown — language picker section.
The cog in the top-right corner opens an `avatar-popover` (shared
with the project view) and now hosts an inline collapsible
language list, so users can switch locales without opening the