-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
357 lines (314 loc) · 8.83 KB
/
styles.css
File metadata and controls
357 lines (314 loc) · 8.83 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
/* styles.css */
#ai-nav-bar {
position: fixed;
top: 60px; /* Assuming Gemini header is 60px */
right: 0px; /* Flush to the right edge */
width: 250px; /* Adjust width as needed */
height: calc(100vh - 60px); /* Full viewport height below the header */
overflow-y: auto;
background-color: #202124; /* Dark, neutral background */
border: none; /* Reset existing border */
border-left: 1px solid #4a4a4a; /* New border for sidebar look */
border-radius: 0; /* Sharp corners for a column */
padding: 10px;
z-index: 999; /* High enough, but allows for main content adjustment */
box-shadow: -2px 0 5px rgba(0,0,0,0.1); /* Shadow on the left side */
font-family: 'Google Sans', Roboto, Arial, sans-serif; /* Match Gemini's font if possible */
transition: width 0.3s ease-in-out, padding 0.3s ease-in-out; /* For smooth collapse */
}
#ai-nav-bar h3 {
display: flex; /* To align title and button */
justify-content: space-between; /* Pushes button to the right */
align-items: center;
margin-top: 0;
margin-bottom: 10px;
font-size: 16px;
color: #e8eaed; /* Light text for dark theme */
border-bottom: 1px solid #3c4043;
padding-bottom: 5px;
}
/* Header buttons container */
.header-buttons {
display: flex;
gap: 4px;
align-items: center;
}
/* Header Control Buttons */
#ai-nav-refresh-btn,
#ai-nav-focus-mode-btn {
background: none;
border: none;
color: #bdc1c6;
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: inline-flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease-in-out;
flex-shrink: 0; /* Prevent button from shrinking */
}
#ai-nav-refresh-btn:hover:not(:disabled),
#ai-nav-focus-mode-btn:hover {
background-color: #3c4043;
color: #e8eaed;
}
#ai-nav-refresh-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
#ai-nav-refresh-btn.loading svg {
animation: refresh-spin 1s linear infinite;
}
/* Focus Mode Button Active State */
#ai-nav-focus-mode-btn.active {
background-color: #8ab4f8;
color: #202124;
}
#ai-nav-focus-mode-btn.active:hover {
background-color: #a8c7fa;
color: #202124;
}
@keyframes refresh-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Search Container */
.search-container {
position: relative;
margin-bottom: 15px;
}
.search-input {
width: 100%;
padding: 8px 30px 8px 12px;
background-color: #3c4043;
border: 1px solid #5f6368;
border-radius: 20px;
color: #e8eaed;
font-size: 13px;
font-family: inherit;
outline: none;
transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.search-input:focus {
border-color: #8ab4f8;
background-color: #282a2d;
}
.search-input::placeholder {
color: #9aa0a6;
}
.search-clear {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
background-color: #5f6368;
color: #e8eaed;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 12px;
line-height: 1;
transition: background-color 0.2s ease-in-out;
}
.search-clear:hover {
background-color: #9aa0a6;
}
.nav-item {
padding: 8px 10px;
margin-bottom: 6px;
cursor: pointer;
border-radius: 6px;
font-size: 13px;
line-height: 1.4;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
border: 1px solid transparent; /* For hover/active state */
}
.nav-item:hover {
background-color: #3c4043; /* Darker gray on hover */
border-color: #5f6368;
}
.nav-item.query {
background-color: #282a2d; /* Darker background for queries */
color: #e8eaed; /* Lighter text for queries */
border-left: 3px solid #8ab4f8; /* Lighter blue left border for queries */
}
.nav-item.response {
background-color: #2f3134; /* Dark background for responses */
color: #bdc1c6; /* Lighter grey text for responses */
border-left: 3px solid #81c995; /* Lighter green left border for responses */
margin-bottom: 12px; /* Add more space after responses */
}
.nav-item.active {
background-color: #8ab4f8;
color: #202124;
font-weight: 500;
}
/* Keyboard navigation highlight */
.nav-item.nav-item-highlighted {
background-color: #3c4043;
border: 2px solid #8ab4f8;
box-shadow: 0 0 8px rgba(138, 180, 248, 0.3);
transform: translateX(2px);
transition: all 0.2s ease-in-out;
}
.nav-item.nav-item-highlighted:hover {
background-color: #3c4043; /* Maintain highlight background on hover */
}
/* Ensure highlighted state takes precedence over active state */
.nav-item.nav-item-highlighted.active {
background-color: #5a7db8; /* Darker blue blend for both highlighted and active */
color: #e8eaed;
border-color: #8ab4f8;
}
/* Scrollbar styling for webkit browsers */
#ai-nav-bar::-webkit-scrollbar {
width: 8px;
}
#ai-nav-bar::-webkit-scrollbar-track {
background: #202124;
border-radius: 8px;
}
#ai-nav-bar::-webkit-scrollbar-thumb {
background: #5f6368;
border-radius: 8px;
}
#ai-nav-bar::-webkit-scrollbar-thumb:hover {
background: #9aa0a6;
}
/* Collapse Button (within Navbar) */
#ai-nav-collapse-btn {
cursor: pointer;
font-size: 20px;
padding: 0 5px;
margin-left: 10px;
line-height: 1;
color: #bdc1c6; /* Light grey to match other text */
transition: color 0.2s ease-in-out;
}
#ai-nav-collapse-btn:hover {
color: #e8eaed; /* Brighter on hover */
}
/* Expand Button (Fixed to edge) */
#ai-nav-expand-btn {
position: fixed;
top: 70px; /* Align with where navbar top would be */
right: 10px;
z-index: 1000; /* Above everything when navbar is collapsed */
background-color: #2f3134; /* Dark background */
color: #e8eaed; /* Light text */
border: 1px solid #5f6368;
border-radius: 50%; /* Circular button */
width: 36px;
height: 36px;
font-size: 20px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
display: none; /* Hidden by default */
transition: background-color 0.2s ease-in-out;
}
#ai-nav-expand-btn:hover {
background-color: #3c4043;
}
/* Styles for when the navbar is collapsed */
#ai-nav-bar.collapsed {
width: 0;
padding-left: 0;
padding-right: 0;
overflow: hidden;
border-left: none;
}
#ai-nav-bar.collapsed h3,
#ai-nav-bar.collapsed .search-container,
#ai-nav-bar.collapsed .nav-item,
#ai-nav-bar.collapsed::-webkit-scrollbar {
display: none; /* Hide content when collapsed */
}
/* Show expand button when navbar is collapsed */
body.ai-nav-collapsed #ai-nav-expand-btn {
display: block;
}
/* Initial glow animation for expand button */
@keyframes gentle-glow {
0%, 100% {
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
50% {
box-shadow: 0 0 20px rgba(138, 180, 248, 0.6), 0 0 30px rgba(138, 180, 248, 0.4);
}
}
#ai-nav-expand-btn.initial-glow {
animation: gentle-glow 2s ease-in-out 3;
animation-delay: 0.5s;
}
/* Loading state styles */
.nav-loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
text-align: center;
}
.nav-loading-spinner {
width: 32px;
height: 32px;
border: 3px solid #3c4043;
border-top: 3px solid #8ab4f8;
border-radius: 50%;
animation: nav-loading-spin 1s linear infinite;
margin-bottom: 12px;
}
.nav-loading-text {
color: #9aa0a6;
font-size: 13px;
line-height: 1.4;
}
@keyframes nav-loading-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Placeholder item styles (for virtual scrolling) */
.nav-item.placeholder {
opacity: 0.6;
font-style: italic;
border-left-color: #5f6368 !important; /* Dimmed border */
}
.nav-item.placeholder::after {
content: " (scroll to view)";
font-size: 11px;
color: #5f6368;
font-style: normal;
}
/* === tweak the clear-button size & centering === */
.search-input {
/* increase right-side padding so text doesn’t overlap the larger “x” */
padding: 8px 36px 8px 12px; /* was 30px */
}
.search-clear {
/* bigger, perfectly centred circle */
width: 24px; /* was 18px */
height: 24px; /* was 18px */
font-size: 18px; /* was 12px – ensures the “×” fills the circle */
line-height: 24px; /* match height for perfect vertical centering */
font-weight: bold; /* make × more prominent */
text-align: center; /* ensure horizontal centering */
}