forked from utags/userscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
353 lines (308 loc) · 8.22 KB
/
Copy pathstyle.css
File metadata and controls
353 lines (308 loc) · 8.22 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
@import 'tailwindcss';
:host {
all: initial;
}
.user-settings {
@apply fixed top-3 right-3 z-[2147483647];
/* Tailwind ring color proxy */
--tw-ring-color: var(--user-color-ring, #111827);
}
.user-settings .panel {
@apply bg-gray-100 rounded-b-xl shadow-xl px-4 pb-4 pt-0 w-[420px] max-h-[90vh] overflow-y-auto font-sans text-[14px] text-gray-900;
background: #f2f2f7;
-webkit-box-shadow: 0 10px 39px 10px #3e424238;
-moz-box-shadow: 0 10px 39px 10px #3e424238;
box-shadow: 0 10px 39px 10px #3e424238 !important;
scrollbar-color: rgba(156, 163, 175, 0.25) transparent;
scrollbar-width: thin;
}
.user-settings .grid {
@apply flex flex-col gap-3;
}
.user-settings .row {
@apply flex items-center justify-between gap-3 px-4 py-3;
}
.user-settings .group {
@apply bg-white rounded-xl overflow-hidden gap-0;
}
.user-settings .group .row {
@apply bg-white rounded-none border-0 px-4 py-3 relative;
}
.user-settings .group .row:not(:last-child)::after {
content: '';
position: absolute;
left: 16px;
right: 0;
bottom: 0;
height: 1px;
background: #e5e7eb;
}
.user-settings .header-row {
@apply rounded-none px-0 pb-3 pt-0 flex items-center justify-center;
}
.user-settings .panel-stuck .header-row .panel-title {
opacity: 0;
transform: translateY(-2px);
transition:
opacity 150ms ease,
transform 150ms ease;
}
.user-settings label {
@apply text-gray-600;
}
.user-settings .label-wrap {
@apply flex flex-col gap-1 text-left min-w-[60px];
}
.user-settings .btn {
@apply px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-50;
white-space: nowrap;
}
.user-settings .btn-danger {
@apply border-red-500 text-red-500 hover:bg-red-50;
}
.user-settings .btn-ghost {
@apply px-2 py-1 rounded-md text-gray-500 hover:bg-gray-100;
}
.user-settings input[type='text'] {
@apply px-3 py-2 rounded-md border border-transparent text-gray-700 w-[180px] text-right outline-none;
}
.user-settings input[type='text']:hover,
.user-settings input[type='text']:focus {
@apply border-gray-300;
}
.user-settings select {
@apply px-3 py-2 rounded-md border border-transparent text-gray-700 w-[180px] text-right outline-none bg-white;
}
.user-settings select:hover,
.user-settings select:focus {
@apply border-gray-300;
}
.user-settings input[type='color'] {
@apply rounded-md border border-gray-300 w-[80px] h-8 p-0;
}
.user-settings textarea {
@apply px-3 py-2 rounded-md border border-transparent text-gray-700 w-full text-right outline-none;
}
.user-settings textarea:hover,
.user-settings textarea:focus {
@apply border-gray-300;
}
.user-settings .switch {
@apply flex items-center gap-2;
}
.user-settings .toggle-wrap {
@apply flex items-center gap-2;
}
.user-settings .toggle-checkbox {
-webkit-appearance: none;
appearance: none;
position: relative;
display: inline-block;
width: 42px;
height: 22px;
border-radius: 9999px;
background: #e5e5ea;
border: 1px solid #d1d1d6;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition:
background-color 0.2s ease,
border-color 0.2s ease;
}
.user-settings .toggle-checkbox::before {
content: '';
position: absolute;
top: 50%;
left: 2px;
width: 18px;
height: 18px;
border-radius: 9999px;
background: #ffffff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
transition:
transform 0.2s ease,
background-color 0.2s ease,
left 0.2s ease,
right 0.2s ease;
transform: translateY(-50%);
}
.user-settings .toggle-checkbox:checked {
background: var(--user-toggle-on-bg, #34c759);
border-color: var(--user-toggle-on-bg, #34c759);
}
.user-settings .panel-title {
@apply text-[20px] font-bold text-gray-800;
}
.user-settings .outer-header {
@apply bg-gray-100 relative flex items-center justify-center h-11 rounded-t-xl font-sans;
background: #f2f2f7;
}
.user-settings .outer-header .outer-title {
opacity: 0;
transition: opacity 150ms ease;
@apply text-[20px] font-bold text-gray-800;
}
.user-settings .outer-header.stuck .outer-title {
opacity: 1;
}
.user-settings .outer-header::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1px;
background: #e5e7eb;
opacity: 0;
transition: opacity 150ms ease;
}
.user-settings .outer-header.stuck::after {
opacity: 1;
}
.user-settings .group-title {
@apply text-[13px] font-semibold text-gray-600 px-1;
}
.user-settings .btn-ghost.icon {
transition:
background-color 150ms ease,
color 150ms ease;
@apply w-9 h-9 rounded-full flex items-center justify-center text-gray-500 hover:bg-gray-100 hover:text-gray-700 text-[16px] cursor-pointer select-none;
}
.user-settings .close-btn:hover {
@apply bg-gray-300 text-gray-900;
transform: translateY(-50%);
font-size: 19px;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.user-settings .close-btn {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
transition:
transform 150ms ease,
background-color 150ms ease,
color 150ms ease,
font-size 150ms ease;
}
.user-settings .toggle-checkbox:checked::before {
left: auto;
right: 2px;
transform: translateY(-50%);
background: #ffffff;
}
.user-settings .color-row {
@apply flex items-center gap-1.5;
}
.user-settings .color-swatch {
@apply w-6 h-6 rounded-md cursor-pointer;
}
.user-settings .color-swatch.active {
@apply ring-2 ring-offset-2;
--tw-ring-color: var(--user-color-ring, #111827);
}
.user-settings .seg {
@apply flex items-center gap-2;
flex-wrap: wrap;
}
.user-settings .seg.vertical {
@apply flex-col items-end;
}
.user-settings .seg-btn {
@apply px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-50 cursor-pointer select-none;
}
.user-settings .seg-btn.active {
background: var(--user-active-bg, #111827);
color: var(--user-active-fg, #ffffff);
border-color: var(--user-active-bg, #111827);
}
.user-settings .value-wrap {
@apply flex flex-col items-end gap-1 text-right;
}
.user-settings .tabs {
@apply flex items-center gap-2 mb-2;
}
.user-settings .tab-btn {
@apply px-3 py-1 rounded-md border border-gray-300 text-gray-700 hover:bg-gray-50 cursor-pointer select-none;
}
.user-settings .tab-btn.active {
background: var(--user-active-bg, #111827);
color: var(--user-active-fg, #ffffff);
border-color: var(--user-active-bg, #111827);
}
.user-settings .field-help {
@apply text-gray-400 text-[11px];
}
.row.help-row .field-help {
@apply ml-0;
}
.user-settings .field-help a {
@apply text-blue-600 hover:text-blue-700;
text-decoration: underline;
text-decoration-style: dashed;
text-underline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
.user-settings .panel {
@apply bg-gray-800 rounded-b-xl text-gray-100;
-webkit-box-shadow: 0 10px 39px 10px #00000040;
-moz-box-shadow: 0 10px 39px 10px #00000040;
box-shadow: 0 10px 39px 10px #00000040 !important;
}
.user-settings .row {
@apply bg-transparent border-0;
}
.user-settings .header-row {
@apply bg-gray-800 border-gray-700;
}
.user-settings .outer-header {
@apply bg-gray-800 rounded-t-xl;
}
.user-settings .outer-header::after {
background: #4b5563;
}
.user-settings .footer a.issue-link {
@apply text-gray-300 hover:text-gray-100;
}
.user-settings .footer .brand {
@apply text-gray-400;
}
.user-settings label {
@apply text-gray-300;
}
.user-settings .field-help {
@apply text-gray-400;
}
.user-settings .field-help a {
@apply text-blue-400 hover:text-blue-300;
}
.user-settings .group {
@apply bg-gray-700;
}
.user-settings .group .row:not(:last-child)::after {
background: #4b5563;
}
}
.user-settings .panel::-webkit-scrollbar {
width: 4px;
}
.user-settings .panel::-webkit-scrollbar-track {
background: transparent;
}
.user-settings .panel::-webkit-scrollbar-thumb {
background: rgba(156, 163, 175, 0.25);
border-radius: 9999px;
opacity: 0.25;
}
.user-settings .footer {
@apply text-[12px] text-gray-500 flex flex-col items-center gap-1 pt-6 pb-3;
}
.user-settings .footer a.issue-link {
@apply text-gray-600 hover:text-gray-800 underline underline-offset-2 cursor-pointer select-none;
}
.user-settings .footer .brand {
@apply text-gray-500 hover:text-gray-700 cursor-pointer select-none;
}
.user-settings button {
user-select: none;
}