Repository navigation
Expand file tree
/
Copy pathsettings-plugins.css
More file actions
287 lines (247 loc) · 8.98 KB
/
Copy pathsettings-plugins.css
File metadata and controls
287 lines (247 loc) · 8.98 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
/*
* club-QuickBox skin for ruTorrent -- settings plugin pages.
* Page-specific chrome for the fifteen plugin Settings pages (Autotools,
* XMPP, Cookies, Find at, Retrackers, Feeds, Scheduler, Search, Unpack,
* Channels, Ratio Groups, Screenshots, Upload ETA, History, File Manager).
* The shared field/grid/table primitives live in css/settings.css; this file
* holds only what those primitives do not cover -- the Scheduler heatmap, the
* Autotools feature sub-cards, the Retrackers side-by-side lists and the File
* Manager format legend. Every color reads from a --qb-* token and every rule
* is scoped under the page id so it never leaks to a core Settings page.
*/
/* ============================================================
* Textareas: a sensible height instead of filling the page
* ============================================================ */
#stg #st_cookies textarea,
#stg #st_lookat textarea,
#stg #st_retrackers textarea {
width: 100%;
min-height: 150px;
box-sizing: border-box;
resize: vertical;
font-family: var(--qb-font);
font-size: 12px;
}
#stg #st_retrackers textarea { min-height: 170px; }
/* Retrackers: the two announce lists sit side by side at wide widths. */
#stg #st_retrackers .cqb-retrackers {
display: grid;
grid-template-columns: 1fr;
gap: 12px 20px;
}
@media (min-width: 720px) {
#stg #st_retrackers .cqb-retrackers { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
* Autotools: three feature sub-cards (AutoLabel / AutoMove / AutoWatch)
* ============================================================ */
/* Drop the outer card chrome -- the sub-cards are the cards here. */
#stg #st_autotools fieldset {
margin: 0;
padding: 0;
background: none;
border: 0;
}
#stg #st_autotools fieldset > legend { display: none; }
#stg .cqb-subcards {
display: flex;
flex-direction: column;
gap: 14px;
}
#stg .cqb-subcard {
padding: 0;
background-color: var(--qb-surface);
border: 1px solid var(--qb-border);
border-radius: var(--qb-radius-lg);
overflow: hidden;
}
#stg .cqb-subcard-head {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background-color: var(--qb-surface-2);
border-bottom: 1px solid var(--qb-border);
}
#stg .cqb-subcard-head input[type="checkbox"] {
flex: none;
margin: 0;
}
#stg .cqb-subcard-head .cqb-subcard-title {
flex: 1 1 auto;
min-width: 0;
color: var(--qb-foreground);
font-size: 13px;
font-weight: 600;
line-height: 1.3;
}
/* The sub-card body collapses to zero when its feature is off (the enable
* toggle greys the fields via the core .disabled class on every label). */
#stg .cqb-subcard-body {
display: flex;
flex-direction: column;
gap: 12px;
padding: 14px;
}
#stg .cqb-subcard-body:empty { display: none; }
/* ============================================================
* Scheduler: a token heatmap in the Chunks pane idiom
* ============================================================ */
#stg #st_scheduler #sch_graph {
gap: 4px 0;
margin-top: 4px;
}
#stg #st_scheduler .sch-week {
display: flex;
align-items: center;
height: 20px;
color: var(--qb-fg-muted);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
}
#stg #st_scheduler .sch-week.disabled { color: var(--qb-fg-muted); }
/* Each half-day column lays its 12 cells in an even flex row. */
#stg #st_scheduler #sch_graph .align-items-stretch {
display: flex;
gap: 2px;
padding: 0 1px;
}
#stg #st_scheduler #sch_graph .align-items-stretch > div {
flex: 1 1 0;
min-width: 0;
height: 20px;
border-radius: 3px;
cursor: pointer;
transition: background-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}
#stg #st_scheduler #sch_graph .align-items-stretch > div:hover {
transform: translateY(-1px);
box-shadow: 0 0 0 2px var(--qb-focus);
}
/* Per-mode fills. The "...dis" variants render when the scheduler is off and
* read as a dimmer wash of the same hue so the pattern stays legible. */
#stg #st_scheduler .sch_fast { background-color: var(--qb-state-downloading); }
#stg #st_scheduler .sch_seed { background-color: var(--qb-state-seeding); }
#stg #st_scheduler .sch_res1 { background-color: var(--qb-state-paused); }
#stg #st_scheduler .sch_res2 { background-color: color-mix(in srgb, var(--qb-state-paused) 72%, var(--qb-background)); }
#stg #st_scheduler .sch_res3 { background-color: color-mix(in srgb, var(--qb-state-paused) 48%, var(--qb-background)); }
#stg #st_scheduler .sch_stop { background-color: var(--qb-surface-3); }
#stg #st_scheduler .sch_fastdis { background-color: color-mix(in srgb, var(--qb-state-downloading) 32%, var(--qb-surface)); }
#stg #st_scheduler .sch_seeddis { background-color: color-mix(in srgb, var(--qb-state-seeding) 32%, var(--qb-surface)); }
#stg #st_scheduler .sch_res1dis { background-color: color-mix(in srgb, var(--qb-state-paused) 34%, var(--qb-surface)); }
#stg #st_scheduler .sch_res2dis { background-color: color-mix(in srgb, var(--qb-state-paused) 24%, var(--qb-surface)); }
#stg #st_scheduler .sch_res3dis { background-color: color-mix(in srgb, var(--qb-state-paused) 16%, var(--qb-surface)); }
#stg #st_scheduler .sch_stopdis { background-color: var(--qb-surface-2); }
/* Hover read-out line under the grid. */
#stg #st_scheduler #sch_desc {
min-height: 20px;
margin-top: 6px;
padding: 0;
color: var(--qb-foreground);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
#stg #st_scheduler #sch_desc.disabled { color: var(--qb-fg-muted); }
/* Legend as color chips with labels. */
#stg #st_scheduler #sch_legend {
width: auto;
margin: 10px 0 0;
border-collapse: separate;
border-spacing: 0;
}
#stg #st_scheduler #sch_legend tr { display: flex; flex-wrap: wrap; gap: 8px 18px; }
#stg #st_scheduler #sch_legend td { padding: 0; border: 0; vertical-align: middle; }
#stg #st_scheduler #sch_legend td[clr] {
width: 16px;
height: 16px;
border-radius: 4px;
cursor: pointer;
align-self: center;
}
/* The legend is a key: its swatches always show the vivid mode color even
* while the schedule itself is off (the cells there read as a dim wash). */
#stg #st_scheduler #sch_legend td[clr="0"] { background-color: var(--qb-state-downloading); }
#stg #st_scheduler #sch_legend td[clr="1"] { background-color: var(--qb-surface-3); }
#stg #st_scheduler #sch_legend td[clr="2"] { background-color: var(--qb-state-seeding); }
#stg #st_scheduler #sch_legend td[clr="3"] { background-color: var(--qb-state-paused); }
#stg #st_scheduler #sch_legend td[clr="4"] { background-color: color-mix(in srgb, var(--qb-state-paused) 72%, var(--qb-background)); }
#stg #st_scheduler #sch_legend td[clr="5"] { background-color: color-mix(in srgb, var(--qb-state-paused) 48%, var(--qb-background)); }
/* The three restricted-rate cards sit side by side instead of stacking. */
#stg #st_scheduler .cqb-limited-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
}
@media (min-width: 760px) {
#stg #st_scheduler .cqb-limited-grid { grid-template-columns: repeat(3, 1fr); }
}
#stg #st_scheduler .cqb-limited-grid fieldset { margin: 0; }
#stg #st_scheduler #sch_legend td.disabled {
margin-right: 10px;
color: var(--qb-foreground);
font-size: 12px;
display: flex;
align-items: center;
}
/* ============================================================
* File Manager: the strftime token legend + a preview line
* ============================================================ */
#stg #flm-settings-pane .cqb-fmt-legend {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 6px 16px;
margin: 4px 0 0;
}
#stg #flm-settings-pane .cqb-fmt-item {
display: flex;
align-items: baseline;
gap: 8px;
font-size: 12px;
color: var(--qb-fg-muted);
}
#stg #flm-settings-pane .cqb-fmt-code {
flex: none;
min-width: 28px;
padding: 1px 6px;
background-color: var(--qb-surface-3);
border: 1px solid var(--qb-border);
border-radius: var(--qb-radius);
color: var(--qb-foreground);
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
font-size: 11px;
text-align: center;
}
#stg #flm-settings-pane .cqb-fmt-preview {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
margin: 10px 0 0;
padding: 8px 12px;
background-color: var(--qb-surface-2);
border: 1px solid var(--qb-border);
border-radius: var(--qb-radius);
font-size: 12px;
color: var(--qb-foreground);
}
#stg #flm-settings-pane .cqb-fmt-preview code {
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
color: var(--qb-primary-text);
}
#stg #flm-settings-pane .cqb-fmt-preview .cqb-fmt-sep { color: var(--qb-fg-muted); }
/* ============================================================
* Search (extsearch): per-engine block reads as one settings card
* ============================================================ */
#stg #st_extsearch .seng_public,
#stg #st_extsearch .seng_private {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid var(--qb-border-soft);
}
#stg #st_extsearch .cqb-login-hint {
margin-top: 10px;
}
@media (prefers-reduced-motion: reduce) {
#stg #st_scheduler #sch_graph .align-items-stretch > div { transition: none; }
}