Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
248 lines (241 loc) · 8.21 KB
/
Copy pathstyle.css
File metadata and controls
248 lines (241 loc) · 8.21 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
/*
* club-QuickBox skin for ruTorrent
* Token-driven dark theme with two variants: Spectre (teal/green) and
* Reel (warm amber), mapped onto ruTorrent's own custom-property contract.
* Variant selection and progress-bar colors are driven from init.js.
* No external fonts, no @import: a self-hosted system UI stack only.
*/
/* ============================================================
* 1. Variant tokens (Spectre is the default; Reel overrides)
* ============================================================ */
:root,
:root[data-qb-variant="spectre"] {
--qb-background: #060818;
--qb-foreground: #e0e6ed;
--qb-surface: #0e1726;
--qb-surface-2: #181e2e;
--qb-surface-3: #1b2436;
--qb-muted: #181e2e;
--qb-fg-muted: #94a3b8;
--qb-border: #1b2e4b;
--qb-border-soft: #142138;
--qb-input: #0a1120;
--qb-primary: #26ae7f;
--qb-primary-fg: #060818;
--qb-primary-text: #26ae7f;
/* Primary hover fill: moves AWAY from --qb-primary-fg (lighter under a dark
* label, darker under a light one) so the label keeps its contrast. */
--qb-primary-hover: color-mix(in srgb, var(--qb-primary) 88%, white);
--qb-accent: #2aebcb;
--qb-accent-fg: #060818;
--qb-accent-text: #2aebcb;
--qb-destructive: #e7515a;
--qb-destructive-text: #f87171;
--qb-ring: #2aebcb;
--qb-focus: rgba(42, 235, 203, 0.35);
--qb-header-gradient: linear-gradient(to right, #2aebcb, #26ae7f);
--qb-scrollbar-track: #0a1120;
--qb-scrollbar-thumb: #26ae7f;
--qb-scrollbar-thumb-hover: #2aebcb;
--qb-tooltip-bg: rgba(14, 23, 38, 0.96);
--qb-tooltip-fg: #e0e6ed;
--qb-tooltip-border: rgba(27, 46, 75, 0.5);
--qb-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
--qb-shadow-soft: 0 8px 20px rgba(2, 6, 23, 0.35);
--qb-speed-down: #38bdf8;
--qb-speed-up: #26ae7f;
--qb-speed-total: #2aebcb;
/* Torrent completion bar: deep primary -> bright accent (brand gradient). */
--qb-prg-start: #26ae7f;
--qb-prg-end: #2aebcb;
--qb-pill-bg: rgba(0, 0, 0, 0.28);
/* Icon color tokens (round 2 wires the SVG icon set via mask-image). */
--qb-icon: #94a3b8;
--qb-icon-hover: #e0e6ed;
--qb-state-downloading: #38bdf8;
--qb-state-seeding: #26ae7f;
--qb-state-paused: #fbbf24;
--qb-state-stopped: #94a3b8;
--qb-state-error: #e7515a;
}
:root[data-qb-variant="reel"] {
--qb-background: #181614;
--qb-foreground: #e3e0db;
--qb-surface: #22201e;
--qb-surface-2: #2a2826;
--qb-surface-3: #332f2b;
--qb-muted: #2a2826;
--qb-fg-muted: #9c958d;
--qb-border: #34302c;
--qb-border-soft: #262320;
--qb-input: #1b1917;
--qb-primary: #f0a500;
--qb-primary-fg: #181614;
--qb-primary-text: #f0a500;
--qb-primary-hover: color-mix(in srgb, var(--qb-primary) 88%, white);
--qb-accent: #483d2c;
--qb-accent-fg: #e3e0db;
--qb-accent-text: #e8c582;
--qb-destructive: #e7515a;
--qb-destructive-text: #f87171;
--qb-ring: #f0a500;
--qb-focus: rgba(240, 165, 0, 0.35);
--qb-header-gradient: linear-gradient(to right, #f0a500, #cc8c00);
--qb-scrollbar-track: #1e1c1a;
--qb-scrollbar-thumb: #483d2c;
--qb-scrollbar-thumb-hover: #f0a500;
--qb-tooltip-bg: rgba(24, 22, 20, 0.96);
--qb-tooltip-fg: #e3e0db;
--qb-tooltip-border: rgba(52, 48, 44, 0.6);
--qb-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
--qb-shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
--qb-speed-down: #38bdf8;
--qb-speed-up: #f0a500;
--qb-speed-total: #e8c582;
--qb-prg-start: #cc8c00;
--qb-prg-end: #f0a500;
--qb-pill-bg: rgba(0, 0, 0, 0.3);
--qb-icon: #9c958d;
--qb-icon-hover: #e3e0db;
--qb-state-downloading: #38bdf8;
--qb-state-seeding: #f0a500;
--qb-state-paused: #d9a441;
--qb-state-stopped: #9c958d;
--qb-state-error: #e7515a;
}
:root[data-qb-variant="smoked"] {
--qb-background: #161c23;
--qb-foreground: #e0e6ed;
--qb-surface: #1d2530;
--qb-surface-2: #171e27;
--qb-surface-3: #252e3a;
--qb-muted: #171e27;
--qb-fg-muted: #888ea8;
--qb-border: #2f3c4b;
--qb-border-soft: #222c38;
--qb-input: #171e27;
--qb-primary: #4361ee;
--qb-primary-fg: #fafafa;
--qb-primary-text: #60a5fa;
--qb-primary-hover: color-mix(in srgb, var(--qb-primary) 88%, black);
--qb-accent: #2aebcb;
--qb-accent-fg: #161c23;
--qb-accent-text: #2aebcb;
--qb-destructive: #e7515a;
--qb-destructive-text: #f87171;
--qb-ring: #2aebcb;
--qb-focus: rgba(42, 235, 203, 0.3);
--qb-header-gradient: linear-gradient(to right, #60a5fa, #3b82f6);
--qb-scrollbar-track: #171e27;
--qb-scrollbar-thumb: #4361ee;
--qb-scrollbar-thumb-hover: #2aebcb;
--qb-tooltip-bg: rgba(29, 37, 48, 0.96);
--qb-tooltip-fg: #e0e6ed;
--qb-tooltip-border: rgba(47, 60, 75, 0.6);
--qb-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
--qb-shadow-soft: 0 8px 20px rgba(2, 6, 23, 0.35);
--qb-speed-down: #38bdf8;
--qb-speed-up: #60a5fa;
--qb-speed-total: #2aebcb;
--qb-prg-start: #3b82f6;
--qb-prg-end: #60a5fa;
--qb-pill-bg: rgba(0, 0, 0, 0.28);
--qb-icon: #888ea8;
--qb-icon-hover: #e0e6ed;
--qb-state-downloading: #38bdf8;
--qb-state-seeding: #34d399;
--qb-state-paused: #fbbf24;
--qb-state-stopped: #888ea8;
--qb-state-error: #e7515a;
}
/* Light variant. color-scheme + bs-theme flip to light from init.js; surfaces
* lean on near-opaque shadows and the border for separation on the near-white
* page, and state hues drop to a 600-700 step for contrast on white. */
:root[data-qb-variant="defaulted"] {
--qb-background: #f1f2f3;
--qb-foreground: #515365;
--qb-surface: #ffffff;
--qb-surface-2: #ebedf2;
--qb-surface-3: #e2e5ea;
--qb-muted: #ebedf2;
--qb-fg-muted: #646982;
--qb-border: #d3d3d3;
--qb-border-soft: #e3e3e3;
--qb-input: #ffffff;
--qb-primary: #4361ee;
--qb-primary-fg: #ffffff;
--qb-primary-text: #1d4ed8;
--qb-primary-hover: color-mix(in srgb, var(--qb-primary) 88%, black);
--qb-accent: #0d6efd;
--qb-accent-fg: #ffffff;
--qb-accent-text: #0a58ca;
--qb-destructive: #e7515a;
--qb-destructive-text: #c0303a;
--qb-ring: #4361ee;
--qb-focus: rgba(67, 97, 238, 0.25);
--qb-header-gradient: linear-gradient(to right, #818cf8, #6366f1);
--qb-scrollbar-track: #ebedf2;
--qb-scrollbar-thumb: #4361ee;
--qb-scrollbar-thumb-hover: #0d6efd;
--qb-tooltip-bg: rgba(255, 255, 255, 0.96);
--qb-tooltip-fg: #515365;
--qb-tooltip-border: rgba(211, 211, 211, 0.6);
--qb-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
--qb-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
--qb-speed-down: #0284c7;
--qb-speed-up: #1d4ed8;
--qb-speed-total: #0a58ca;
--qb-prg-start: #4361ee;
--qb-prg-end: #6366f1;
--qb-pill-bg: rgba(0, 0, 0, 0.06);
--qb-icon: #646982;
--qb-icon-hover: #1d4ed8;
--qb-state-downloading: #0284c7;
--qb-state-seeding: #15803d;
--qb-state-paused: #b45309;
--qb-state-stopped: #646982;
--qb-state-error: #c0303a;
}
/* ============================================================
* 2. Shared primitives + ruTorrent core var mapping
* ============================================================ */
:root {
--qb-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
--qb-radius: 8px;
--qb-radius-lg: 12px;
--qb-overlay: #000000;
--qb-destructive-fg: #ffffff;
/* Native controls (checkboxes, radios) follow the active variant accent. */
accent-color: var(--qb-primary);
/* ruTorrent core contract (css/style.css) -> tokens */
--text-color: var(--qb-foreground);
--text-header-color: var(--qb-foreground);
--menu-color: var(--qb-foreground);
--menu-background-color: var(--qb-surface);
--menu-border-color: var(--qb-border);
--menu-disabled-color: var(--qb-fg-muted);
--menu-disabled-background-color: var(--qb-surface);
--menu-highlight-color: var(--qb-primary-text);
--menu-highlight-background-color: color-mix(in srgb, var(--qb-primary) 12%, transparent);
--menu-active-color: var(--qb-foreground);
--menu-connect-line-color: var(--qb-border);
--menu-connect-line-style: dotted;
--container-bg-color: var(--qb-surface);
--container-border-color: var(--qb-border);
--btn-bg-color: var(--qb-surface-2);
--header-bg-color: var(--qb-surface-2);
--header-border-color: var(--qb-border);
--footer-height: 25px;
--footer-bg-color: var(--qb-surface);
--footer-bg-image: none;
--footer-border-color: var(--qb-border);
--dialog-bg-color: var(--qb-surface);
--dialog-border-color: var(--qb-border);
--navbar-height: 36px;
--navbar-bg-color: var(--qb-surface);
--navbar-border-color: var(--qb-border);
--navbar-item-bg-color: var(--qb-surface-2);
--navbar-item-border-color: var(--qb-border);
--loading-indicator-icon: none;
--loading-indicator-side-length: 32px;
}