-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpalette.css
More file actions
158 lines (148 loc) · 3.54 KB
/
Copy pathpalette.css
File metadata and controls
158 lines (148 loc) · 3.54 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
/* Command palette — shared overlay across all RepoLens pages.
Uses theme tokens where available; falls back to absolute values for
pages that don't load themes.css (e.g. share.html). */
#palette-overlay {
position: fixed;
inset: 0;
z-index: 9000;
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: clamp(60px, 14vh, 200px);
opacity: 0;
pointer-events: none;
transition: opacity 130ms ease;
}
#palette-overlay.visible {
opacity: 1;
pointer-events: auto;
}
#palette-modal {
background: var(--surface, #131d2e);
border: 1px solid var(--border-2, #2a3a52);
border-radius: 14px;
width: min(560px, calc(100vw - 32px));
box-shadow:
0 28px 80px rgba(0, 0, 0, 0.7),
0 0 0 1px rgba(255, 255, 255, 0.04) inset;
overflow: hidden;
transform: translateY(-10px) scale(0.975);
transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}
#palette-overlay.visible #palette-modal {
transform: none;
}
#palette-input {
display: block;
width: 100%;
padding: 16px 20px;
background: none;
border: none;
border-bottom: 1px solid var(--border, #1c2b3e);
color: var(--text, #eaeefb);
font: 400 15px var(--font, -apple-system, system-ui, sans-serif);
outline: none;
caret-color: var(--accent, #7c6fff);
}
#palette-input::placeholder {
color: var(--text-faint, #4a5570);
}
#palette-list {
max-height: 340px;
overflow-y: auto;
padding: 4px 0;
scrollbar-width: thin;
scrollbar-color: var(--border-2, #2a3a52) transparent;
}
#palette-list:empty::after {
content: 'No commands match';
display: block;
padding: 22px 20px;
font: 400 13px var(--font, system-ui);
color: var(--text-faint, #4a5570);
text-align: center;
}
.pl-section {
padding: 8px 20px 3px;
font:
700 9.5px/1 ui-monospace,
'SF Mono',
monospace;
letter-spacing: 1.2px;
text-transform: uppercase;
color: var(--text-faint, #4a5570);
}
.pl-item {
display: flex;
align-items: baseline;
gap: 10px;
padding: 9px 20px;
cursor: pointer;
transition: background 80ms;
border-radius: 0;
}
.pl-item:hover,
.pl-item.pl-selected {
background: color-mix(in srgb, var(--accent, #7c6fff) 13%, var(--surface, #131d2e));
}
.pl-name {
font: 600 13px var(--font, system-ui);
color: var(--text, #eaeefb);
flex-shrink: 0;
white-space: nowrap;
}
.pl-desc {
font: 400 11.5px var(--font, system-ui);
color: var(--text-muted, #647488);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
}
.pl-shortcut {
margin-left: auto;
font:
600 10px ui-monospace,
monospace;
color: var(--text-faint, #4a5570);
background: var(--surface-alt, #0d1623);
border: 1px solid var(--border, #1c2b3e);
border-radius: 4px;
padding: 2px 6px;
flex-shrink: 0;
white-space: nowrap;
}
.pl-empty {
padding: 24px 20px;
font: 400 13px var(--font, system-ui);
color: var(--text-faint, #4a5570);
text-align: center;
}
#palette-footer {
padding: 8px 20px;
font: 400 11px var(--font, system-ui);
color: var(--text-faint, #4a5570);
border-top: 1px solid var(--border, #1c2b3e);
display: flex;
align-items: center;
gap: 14px;
}
#palette-footer kbd {
font:
600 10px ui-monospace,
monospace;
color: var(--text-muted, #647488);
background: var(--surface-alt, #0d1623);
border: 1px solid var(--border, #1c2b3e);
border-radius: 4px;
padding: 2px 5px;
}
@media (prefers-reduced-motion: reduce) {
#palette-overlay,
#palette-modal {
transition: none;
}
}