Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
380 lines (330 loc) · 7.83 KB
/
Copy pathstyles.css
File metadata and controls
380 lines (330 loc) · 7.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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
/* SPDX-License-Identifier: MPL-2.0 */
.logo.leptos:hover {
filter: drop-shadow(0 0 2em #a82e20);
}
:root {
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 24px;
font-weight: 400;
color: #0f0f0f;
background-color: #f6f6f6;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
.container {
margin: 0;
padding-top: 10vh;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: 0.75s;
}
.logo.tauri:hover {
filter: drop-shadow(0 0 2em #24c8db);
}
.row {
display: flex;
justify-content: center;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
h1 {
text-align: center;
}
/* Default look of form controls. In the base layer, like Tailwind's own
preflight, so that utility classes on a control (px-2, text-xs, bg-*, ...)
override it. Unlayered rules beat every layered one, utilities included.
The layer order is declared by tailwind.css, which is linked first. */
@layer base {
input,
button,
select,
textarea {
border-radius: 8px;
border: 1px solid rgba(255,255,255,0.1);
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
color: #f0f0f0;
background-color: #1a1a1a;
transition: border-color 0.25s;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
}
select {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 36px;
cursor: pointer;
}
select:hover,
select:focus {
border-color: rgba(251,191,36,0.4);
outline: none;
}
select option {
background-color: #1a1a1a;
color: #f0f0f0;
padding: 8px;
}
select option:checked {
background-color: rgba(251,191,36,0.15);
}
textarea {
resize: vertical;
}
@layer base {
button {
cursor: pointer;
}
button:hover {
border-color: #396cd8;
}
button:active {
border-color: #396cd8;
background-color: #e8e8e8;
}
}
/* Focus styles handled by tailwind.css focus-visible rules */
input:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
outline: none;
}
#greet-input {
margin-right: 5px;
}
@media (prefers-color-scheme: dark) {
:root {
color: #f6f6f6;
background-color: #2f2f2f;
}
a:hover {
color: #24c8db;
}
@layer base {
button:active {
background-color: #0f0f0f69;
}
}
}
/* ── Project Rail ────────────────────────────────────────── */
.project-rail-slot {
position: relative;
flex: 0 0 48px;
width: 48px;
min-width: 48px;
height: 100%;
z-index: 20;
}
.project-rail {
display: flex;
flex-direction: column;
position: absolute;
inset: 0 auto 0 0;
width: 48px;
min-width: 48px;
height: 100%;
background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
border-right: 1px solid rgba(255,255,255,0.04);
transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1),
min-width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
z-index: 21;
}
/* The slot reserves the collapsed footprint. Expansion changes only the rail's
painted overlay, so the Sidebar and board keep their layout coordinates.
The overlay covers the Sidebar, so it needs an opaque base (the modal surface
colour) beneath the translucent gradient or the Sidebar labels show through. */
.project-rail.expanded {
width: 180px;
min-width: 180px;
background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%), #0B0B0F;
box-shadow: 4px 0 16px rgba(0,0,0,0.3);
}
.rail-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 6px 10px;
border: none;
background: transparent;
color: rgba(255,255,255,0.4);
cursor: pointer;
position: relative;
border-radius: 0;
box-shadow: none;
font-size: 13px;
transition: color 0.15s, background 0.15s;
white-space: nowrap;
text-align: left;
}
.rail-item:hover {
color: rgba(255,255,255,0.7);
background: rgba(255,255,255,0.03);
border-color: transparent;
}
.rail-item:active {
background: rgba(255,255,255,0.05);
}
.rail-item.active {
color: #fbbf24;
}
/* Workspace groups: a chevron (expands members) beside the Workspace's own
select control. The chevron is narrow so the 48px strip still fits. */
.rail-group {
display: flex;
flex-direction: column;
}
/* The chevron sits in a 12px strip on the left edge, and the Workspace badge
starts at 14px, so the badge stays inside the 48px collapsed rail. */
.rail-workspace-row {
position: relative;
display: flex;
}
/* The global button rule adds padding; the reset keeps the chevron in its strip. */
/* z-index: the Workspace select button is a later, positioned sibling, and
would otherwise paint over the chevron and take its clicks. */
.rail-toggle {
position: absolute;
z-index: 1;
inset: 0 auto 0 0;
width: 12px;
min-width: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
border: none;
background: transparent;
color: rgba(255,255,255,0.35);
cursor: pointer;
}
.rail-toggle:hover {
color: rgba(255,255,255,0.7);
}
.rail-toggle svg {
transition: transform 0.15s;
}
.rail-toggle svg.rotate-90 {
transform: rotate(90deg);
}
.rail-workspace {
flex: 1 1 auto;
min-width: 0;
padding-left: 14px;
padding-right: 0;
}
/* Members keep the badge inside the 48px rail; the guide line shows nesting. */
.rail-item.rail-member {
padding-left: 14px;
box-shadow: inset 2px 0 0 rgba(255,255,255,0.08);
}
.rail-badge.workspace {
border-radius: 10px;
border-style: dashed;
border-color: rgba(255,255,255,0.12);
}
.rail-badge.warn {
background: rgba(248,113,113,0.15);
color: #fca5a5;
}
.rail-notice {
display: flex;
align-items: center;
gap: 10px;
padding: 6px 10px;
font-size: 12px;
color: #fca5a5;
}
.rail-separator {
height: 1px;
margin: 6px 10px;
background: rgba(255,255,255,0.08);
}
.rail-active-indicator {
position: absolute;
left: 0;
top: 4px;
bottom: 4px;
width: 3px;
border-radius: 0 2px 2px 0;
background: #fbbf24;
}
.rail-badge {
position: relative;
width: 32px;
height: 32px;
min-width: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 13px;
background: rgba(255,255,255,0.06);
color: rgba(255,255,255,0.5);
transition: background 0.15s, color 0.15s, border-color 0.15s;
border: 1px solid transparent;
}
/* Needs you: how many of the project's tasks wait on the user. */
.rail-attention {
position: absolute;
top: -6px;
right: -7px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 9999px;
background: #f59e0b;
color: #1c1204;
font-size: 10px;
font-weight: 700;
line-height: 16px;
text-align: center;
box-shadow: 0 0 0 2px #0b0b10;
}
.rail-badge.active {
background: rgba(251,191,36,0.12);
color: #fbbf24;
border-color: rgba(251,191,36,0.25);
}
.rail-badge.add {
background: transparent;
border: 1px dashed rgba(255,255,255,0.15);
color: rgba(255,255,255,0.3);
}
.rail-item:hover .rail-badge.add {
border-color: rgba(255,255,255,0.3);
color: rgba(255,255,255,0.6);
}
.rail-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 500;
animation: rail-label-in 0.15s ease-out;
}
@keyframes rail-label-in {
from { opacity: 0; transform: translateX(-4px); }
to { opacity: 1; transform: translateX(0); }
}