tinyjukebox 0.47.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tinyjukebox/__init__.py +7 -0
- tinyjukebox/albumplayer/__init__.py +1 -0
- tinyjukebox/albumplayer/aalbumplayer.py +402 -0
- tinyjukebox/albumplayer/clock.py +39 -0
- tinyjukebox/albumplayer/dummyplayer.py +49 -0
- tinyjukebox/albumplayer/player_interface.py +97 -0
- tinyjukebox/albumplayer/radioplayer.py +391 -0
- tinyjukebox/albumplayer/simpleplayer.py +419 -0
- tinyjukebox/albumplayer/spotifyplayer.py +671 -0
- tinyjukebox/backup.py +176 -0
- tinyjukebox/backups.py +340 -0
- tinyjukebox/cli.py +1076 -0
- tinyjukebox/control.py +1386 -0
- tinyjukebox/core/__init__.py +1 -0
- tinyjukebox/core/config.py +100 -0
- tinyjukebox/core/logging/__init__.py +113 -0
- tinyjukebox/core/microservice.py +303 -0
- tinyjukebox/core/pubsub/__init__.py +15 -0
- tinyjukebox/core/pubsub/base.py +196 -0
- tinyjukebox/core/pubsub/localqueue.py +102 -0
- tinyjukebox/core/pubsub/statistics.py +57 -0
- tinyjukebox/core/py.typed +0 -0
- tinyjukebox/core/schema/__init__.py +5 -0
- tinyjukebox/core/schema/logger.py +40 -0
- tinyjukebox/core/schema/microservice.py +48 -0
- tinyjukebox/core/threads.py +39 -0
- tinyjukebox/core/ui/__init__.py +5 -0
- tinyjukebox/core/ui/cli.py +120 -0
- tinyjukebox/core/ui/tools.py +73 -0
- tinyjukebox/core/unexpected.py +46 -0
- tinyjukebox/data/__init__.py +0 -0
- tinyjukebox/data/activities.py +175 -0
- tinyjukebox/data/activity.py +138 -0
- tinyjukebox/data/common.py +91 -0
- tinyjukebox/data/degraded.py +39 -0
- tinyjukebox/data/jsondata.py +218 -0
- tinyjukebox/data/sanitycheck.py +71 -0
- tinyjukebox/data/tag.py +98 -0
- tinyjukebox/data/tags.py +160 -0
- tinyjukebox/data/target.py +568 -0
- tinyjukebox/data/targetalbumtools.py +88 -0
- tinyjukebox/data/targets.py +256 -0
- tinyjukebox/data/volumelimits.py +68 -0
- tinyjukebox/data_folder.py +180 -0
- tinyjukebox/devices/__init__.py +1 -0
- tinyjukebox/devices/baseclasses/__init__.py +1 -0
- tinyjukebox/devices/baseclasses/adriver.py +115 -0
- tinyjukebox/devices/baseclasses/aevents.py +47 -0
- tinyjukebox/devices/baseclasses/gpiolevel.py +16 -0
- tinyjukebox/devices/bluetooth/__init__.py +1 -0
- tinyjukebox/devices/bluetooth/avrcp_input.py +118 -0
- tinyjukebox/devices/bluetooth/bluez.py +446 -0
- tinyjukebox/devices/bluetooth/link.py +396 -0
- tinyjukebox/devices/bluetooth/virtual.py +155 -0
- tinyjukebox/devices/drivermanager/__init__.py +1 -0
- tinyjukebox/devices/drivermanager/driverfactory.py +75 -0
- tinyjukebox/devices/drivermanager/drivermanager.py +151 -0
- tinyjukebox/devices/drivers/__init__.py +31 -0
- tinyjukebox/devices/drivers/bluetooth.py +257 -0
- tinyjukebox/devices/drivers/input.py +165 -0
- tinyjukebox/devices/drivers/rfid.py +297 -0
- tinyjukebox/devices/drivers/rgbled.py +215 -0
- tinyjukebox/devices/py.typed +0 -0
- tinyjukebox/devices/schema/__init__.py +1 -0
- tinyjukebox/devices/schema/adriver.py +33 -0
- tinyjukebox/devices/schema/bluetooth.py +31 -0
- tinyjukebox/devices/schema/drivermanager.py +41 -0
- tinyjukebox/devices/schema/input.py +23 -0
- tinyjukebox/devices/schema/rfid.py +44 -0
- tinyjukebox/devices/schema/rgbled.py +26 -0
- tinyjukebox/diagnostics.py +179 -0
- tinyjukebox/errors.py +91 -0
- tinyjukebox/headset.py +296 -0
- tinyjukebox/images.py +133 -0
- tinyjukebox/latency.py +43 -0
- tinyjukebox/library/__init__.py +2 -0
- tinyjukebox/library/diagnostics.py +183 -0
- tinyjukebox/library/journal.py +94 -0
- tinyjukebox/library/releases.py +348 -0
- tinyjukebox/library/schema.py +98 -0
- tinyjukebox/library/service.py +1115 -0
- tinyjukebox/library/statistics.py +288 -0
- tinyjukebox/library/store.py +1386 -0
- tinyjukebox/messages.py +202 -0
- tinyjukebox/metadata.py +133 -0
- tinyjukebox/py.typed +0 -0
- tinyjukebox/restore.py +391 -0
- tinyjukebox/rgbled.py +158 -0
- tinyjukebox/schema/__init__.py +1 -0
- tinyjukebox/schema/activities.py +27 -0
- tinyjukebox/schema/tags.py +54 -0
- tinyjukebox/schema/targets.py +83 -0
- tinyjukebox/schema/tinyjukebox.py +217 -0
- tinyjukebox/schema/volume.py +28 -0
- tinyjukebox/slots.py +234 -0
- tinyjukebox/spotify/__init__.py +1 -0
- tinyjukebox/spotify/account.py +647 -0
- tinyjukebox/spotify/engine.py +568 -0
- tinyjukebox/spotify/oembed.py +65 -0
- tinyjukebox/spotify/soloist.py +198 -0
- tinyjukebox/spotify/sound.py +316 -0
- tinyjukebox/stm/__init__.py +0 -0
- tinyjukebox/stm/base.py +174 -0
- tinyjukebox/stm/playradio.py +237 -0
- tinyjukebox/stm/playspotify.py +418 -0
- tinyjukebox/stm/stmoperation.py +769 -0
- tinyjukebox/stm/stmplayalbum.py +655 -0
- tinyjukebox/stm/stmvolume.py +221 -0
- tinyjukebox/sync/__init__.py +42 -0
- tinyjukebox/sync/box.py +486 -0
- tinyjukebox/sync/client.py +189 -0
- tinyjukebox/sync/data.py +489 -0
- tinyjukebox/sync/files.py +447 -0
- tinyjukebox/sync/handshake.py +42 -0
- tinyjukebox/sync/link.py +379 -0
- tinyjukebox/sync/manifest.py +162 -0
- tinyjukebox/sync/util.py +137 -0
- tinyjukebox/tinyjukebox.py +680 -0
- tinyjukebox/tools/__init__.py +1 -0
- tinyjukebox/tools/backup.py +173 -0
- tinyjukebox/tools/fill_library.py +120 -0
- tinyjukebox/tools/import_cards.py +274 -0
- tinyjukebox/tools/import_covers.py +138 -0
- tinyjukebox/tools/migrate_box01.py +151 -0
- tinyjukebox/volumemanager.py +355 -0
- tinyjukebox/web/__init__.py +1 -0
- tinyjukebox/web/auth.py +373 -0
- tinyjukebox/web/certificates.py +111 -0
- tinyjukebox/web/logbuffer.py +62 -0
- tinyjukebox/web/server.py +1237 -0
- tinyjukebox/web/uploads.py +262 -0
- tinyjukebox/web/users.py +106 -0
- tinyjukebox/web/web/app.js +3050 -0
- tinyjukebox/web/web/favicon.svg +6 -0
- tinyjukebox/web/web/help/de/admin.html +714 -0
- tinyjukebox/web/web/help/de/manual.html +1147 -0
- tinyjukebox/web/web/help/de/quick-guide.html +79 -0
- tinyjukebox/web/web/help/en/admin.html +701 -0
- tinyjukebox/web/web/help/en/manual.html +1126 -0
- tinyjukebox/web/web/help/en/quick-guide.html +79 -0
- tinyjukebox/web/web/help/help.css +25 -0
- tinyjukebox/web/web/help/images/box-2026.jpg +0 -0
- tinyjukebox/web/web/help/images/box-back.jpg +0 -0
- tinyjukebox/web/web/help/images/lid-top.jpg +0 -0
- tinyjukebox/web/web/help/images/logo-mark.svg +38 -0
- tinyjukebox/web/web/index.html +867 -0
- tinyjukebox/web/web/style.css +412 -0
- tinyjukebox/web/web/texts/de.json +892 -0
- tinyjukebox/web/web/texts/en.json +892 -0
- tinyjukebox-0.47.0.dist-info/METADATA +236 -0
- tinyjukebox-0.47.0.dist-info/RECORD +154 -0
- tinyjukebox-0.47.0.dist-info/WHEEL +4 -0
- tinyjukebox-0.47.0.dist-info/entry_points.txt +9 -0
- tinyjukebox-0.47.0.dist-info/licenses/LICENSE.txt +21 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f6f3ee;
|
|
3
|
+
--surface: #ffffff;
|
|
4
|
+
--surface-2: #f0ebe3;
|
|
5
|
+
--text: #2b2622;
|
|
6
|
+
--muted: #6b625a;
|
|
7
|
+
--border: #e3dcd2;
|
|
8
|
+
--accent: #8e2f66;
|
|
9
|
+
--accent-text: #ffffff;
|
|
10
|
+
--accent-soft: #f6e6ef;
|
|
11
|
+
--ok: #23774a;
|
|
12
|
+
--ok-soft: #dcf1e5;
|
|
13
|
+
--warn: #8a5a12;
|
|
14
|
+
--warn-soft: #fbefd9;
|
|
15
|
+
--error: #b42a2a;
|
|
16
|
+
--error-text: #ffffff;
|
|
17
|
+
--error-soft: #fbe0e0;
|
|
18
|
+
--idle-soft: #ebe6df;
|
|
19
|
+
--shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 4px 16px rgba(60, 40, 20, .06);
|
|
20
|
+
--backdrop: rgba(20, 15, 10, .45);
|
|
21
|
+
--radius: 14px;
|
|
22
|
+
color-scheme: light;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-color-scheme: dark) {
|
|
26
|
+
:root:not([data-theme="light"]) {
|
|
27
|
+
--bg: #1b1917;
|
|
28
|
+
--surface: #262320;
|
|
29
|
+
--surface-2: #2f2b27;
|
|
30
|
+
--text: #efe9e2;
|
|
31
|
+
--muted: #a8a095;
|
|
32
|
+
--border: #3a3530;
|
|
33
|
+
--accent: #d77aae;
|
|
34
|
+
--accent-text: #1b1917;
|
|
35
|
+
--accent-soft: #3d2233;
|
|
36
|
+
--ok: #5fcf92;
|
|
37
|
+
--ok-soft: #1f3a2b;
|
|
38
|
+
--warn: #f0b458;
|
|
39
|
+
--warn-soft: #43341c;
|
|
40
|
+
--error: #f47a7a;
|
|
41
|
+
--error-text: #1b1917;
|
|
42
|
+
--error-soft: #4a2323;
|
|
43
|
+
--idle-soft: #34302b;
|
|
44
|
+
--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
|
|
45
|
+
color-scheme: dark;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* the colors of a box (app.js: showIdentity): the hue follows from its name or its id - lightness and chroma are
|
|
50
|
+
fixed, so every hue keeps the contrast of the text on it: at least 4.5 : 1 for every pair (docs/style-guide) */
|
|
51
|
+
@supports (color: oklch(0 0 0)) {
|
|
52
|
+
:root.box-hued {
|
|
53
|
+
--accent: oklch(.49 .15 var(--box-hue));
|
|
54
|
+
--accent-soft: oklch(.95 .04 var(--box-hue));
|
|
55
|
+
}
|
|
56
|
+
@media (prefers-color-scheme: dark) {
|
|
57
|
+
:root.box-hued:not([data-theme="light"]) {
|
|
58
|
+
--accent: oklch(.72 .13 var(--box-hue));
|
|
59
|
+
--accent-soft: oklch(.33 .06 var(--box-hue));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
* { box-sizing: border-box; }
|
|
65
|
+
[hidden] { display: none !important; }
|
|
66
|
+
|
|
67
|
+
html, body { margin: 0; }
|
|
68
|
+
body {
|
|
69
|
+
background: var(--bg);
|
|
70
|
+
color: var(--text);
|
|
71
|
+
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
72
|
+
-webkit-font-smoothing: antialiased;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
h1 { font-size: 1.6rem; line-height: 1.2; margin: .4rem 0 .2rem; }
|
|
76
|
+
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
|
|
77
|
+
p { margin: .3rem 0; }
|
|
78
|
+
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85em; background: var(--surface-2);
|
|
79
|
+
padding: .05rem .35rem; border-radius: 5px; }
|
|
80
|
+
.muted { color: var(--muted); }
|
|
81
|
+
.small { font-size: .85rem; }
|
|
82
|
+
.error { color: var(--error); min-height: 1.4em; }
|
|
83
|
+
.danger-text { color: var(--error) !important; }
|
|
84
|
+
|
|
85
|
+
/* controls */
|
|
86
|
+
button, .button, input, select {
|
|
87
|
+
font: inherit;
|
|
88
|
+
color: inherit;
|
|
89
|
+
}
|
|
90
|
+
button, .button {
|
|
91
|
+
background: var(--surface-2);
|
|
92
|
+
border: 1px solid var(--border);
|
|
93
|
+
border-radius: 10px;
|
|
94
|
+
padding: .5rem .9rem;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
gap: .4rem;
|
|
100
|
+
transition: background .15s, transform .05s;
|
|
101
|
+
}
|
|
102
|
+
button:hover:not(:disabled), .button:hover { background: var(--border); }
|
|
103
|
+
button:active:not(:disabled) { transform: translateY(1px); }
|
|
104
|
+
button:disabled { opacity: .45; cursor: default; }
|
|
105
|
+
a:focus-visible, button:focus-visible, .button:focus-within, input:focus-visible, select:focus-visible,
|
|
106
|
+
[tabindex]:focus-visible {
|
|
107
|
+
outline: 2px solid var(--accent);
|
|
108
|
+
outline-offset: 2px;
|
|
109
|
+
}
|
|
110
|
+
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
|
|
111
|
+
button.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
|
|
112
|
+
button.danger { color: var(--error); border-color: var(--error-soft); background: var(--error-soft); }
|
|
113
|
+
button.link { background: none; border: none; padding: .2rem .4rem; color: var(--muted); }
|
|
114
|
+
button.link:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
|
|
115
|
+
a { color: var(--accent); }
|
|
116
|
+
a.button { text-decoration: none; }
|
|
117
|
+
|
|
118
|
+
input:not([type]), input[type="password"], input[type="text"], input[type="url"], select, .inline-input {
|
|
119
|
+
width: 100%;
|
|
120
|
+
background: var(--surface);
|
|
121
|
+
border: 1px solid var(--border);
|
|
122
|
+
border-radius: 10px;
|
|
123
|
+
padding: .5rem .7rem;
|
|
124
|
+
min-width: 0;
|
|
125
|
+
}
|
|
126
|
+
.inline-input { padding: .3rem .5rem; }
|
|
127
|
+
label { display: grid; gap: .3rem; margin: .8rem 0; font-weight: 500; }
|
|
128
|
+
label.check { display: flex; align-items: center; gap: .4rem; font-weight: normal; margin: .4rem 0; }
|
|
129
|
+
label.button { display: inline-flex; margin: 0; font-weight: normal; }
|
|
130
|
+
input[type="number"], input[type="time"] {
|
|
131
|
+
background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .4rem .5rem;
|
|
132
|
+
}
|
|
133
|
+
input[type="number"] { width: 4.5rem; }
|
|
134
|
+
#backup-state, #backup-form p, #restore-state { overflow-wrap: anywhere; }
|
|
135
|
+
#backup-form label.check select { width: auto; flex: none; } /* days, weeks, months */
|
|
136
|
+
|
|
137
|
+
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .6rem 0; }
|
|
138
|
+
.row > input, .row > select { flex: 1 1 14rem; width: auto; }
|
|
139
|
+
.row > input.grow { flex: 3 1 20rem; }
|
|
140
|
+
.radio-url { word-break: break-all; }
|
|
141
|
+
.radio-actions { white-space: nowrap; }
|
|
142
|
+
.grow-text { flex: 1 1 14rem; }
|
|
143
|
+
.tag-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
|
|
144
|
+
.tag-chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; padding: .1rem .5rem;
|
|
145
|
+
border-radius: 999px; background: var(--surface-2); }
|
|
146
|
+
.tag-chip button { padding: 0 .2rem; min-height: 0; line-height: 1; }
|
|
147
|
+
.row.center { justify-content: center; }
|
|
148
|
+
|
|
149
|
+
/* layout */
|
|
150
|
+
.topbar {
|
|
151
|
+
position: sticky;
|
|
152
|
+
top: 0;
|
|
153
|
+
z-index: 5;
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
gap: 1rem;
|
|
157
|
+
padding: .7rem 1rem;
|
|
158
|
+
background: color-mix(in srgb, var(--bg) 88%, transparent);
|
|
159
|
+
backdrop-filter: blur(8px);
|
|
160
|
+
border-bottom: 1px solid var(--border);
|
|
161
|
+
}
|
|
162
|
+
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .45rem; }
|
|
163
|
+
.brand-large { font-size: 1.8rem; justify-content: center; margin-bottom: 1rem; }
|
|
164
|
+
/* the logo: the lid of the box seen from above (docs/images/logo-icon.svg) - on the page of a box in its colour */
|
|
165
|
+
.brand-logo { width: 1.3em; height: 1.3em; flex: none; }
|
|
166
|
+
.brand-logo .lid { fill: #8e2f66; stroke: #3a1f33; stroke-width: 3; }
|
|
167
|
+
.brand-logo .window { fill: #ffffff; stroke: #3a1f33; stroke-width: 2; }
|
|
168
|
+
.box-hued .brand-logo .lid { fill: var(--accent); stroke: color-mix(in srgb, var(--accent) 55%, #000); }
|
|
169
|
+
.box-hued .brand-logo .window { stroke: color-mix(in srgb, var(--accent) 55%, #000); }
|
|
170
|
+
.brand-logo .brand-led { fill: #4f8ff7; }
|
|
171
|
+
.brand-logo .key { fill: #f4f1f3; }
|
|
172
|
+
.brand-logo .key-yellow { fill: #f6c419; }
|
|
173
|
+
.tabs { display: flex; gap: .2rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
|
|
174
|
+
.tabs button { background: none; border: none; border-radius: 999px; padding: .4rem .85rem; color: var(--muted);
|
|
175
|
+
white-space: nowrap; }
|
|
176
|
+
.tabs button:not(.active):hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
|
|
177
|
+
.tabs button.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
|
|
178
|
+
.user { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .85rem; white-space: nowrap; }
|
|
179
|
+
|
|
180
|
+
main { max-width: 980px; margin: 0 auto; padding: 1rem; }
|
|
181
|
+
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
|
|
182
|
+
box-shadow: var(--shadow); padding: 1.2rem; margin-bottom: 1rem; }
|
|
183
|
+
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
|
|
184
|
+
.card-head h2 { margin: 0; }
|
|
185
|
+
.notice { border-color: var(--warn); background: var(--warn-soft); }
|
|
186
|
+
/* a QR code for the camera of a phone: black on white also in the dark theme, so that it can be read */
|
|
187
|
+
.qr img { display: block; width: 12rem; max-width: 100%; height: auto; border-radius: 6px; }
|
|
188
|
+
|
|
189
|
+
.login { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
|
|
190
|
+
.login-card { width: min(380px, 100%); border-top: 4px solid var(--accent); }
|
|
191
|
+
.login-help { display: block; text-align: center; margin-top: .8rem; font-size: .85rem; }
|
|
192
|
+
.login-place { text-align: center; font-weight: 700; font-size: 1.15rem; color: var(--accent); margin: -.5rem 0 1rem;
|
|
193
|
+
overflow-wrap: anywhere; }
|
|
194
|
+
.place-name { font-weight: 700; font-size: .95rem; color: var(--accent); }
|
|
195
|
+
.login-card button { width: 100%; margin-top: .4rem; }
|
|
196
|
+
select.language { width: auto; padding: .2rem .4rem; font-size: .85rem; color: var(--muted); }
|
|
197
|
+
.login-card select.language { display: block; margin: .8rem auto 0; }
|
|
198
|
+
|
|
199
|
+
/* now playing */
|
|
200
|
+
.now { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 1.5rem; align-items: center; }
|
|
201
|
+
.cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2);
|
|
202
|
+
display: grid; place-items: center; }
|
|
203
|
+
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
204
|
+
.cover-placeholder { font-size: 4rem; color: var(--muted); opacity: .5; }
|
|
205
|
+
.cover-small { width: 96px; flex: none; }
|
|
206
|
+
.cover-small .cover-placeholder { font-size: 2rem; }
|
|
207
|
+
.now-info { min-width: 0; }
|
|
208
|
+
.now-info h1 { overflow-wrap: anywhere; }
|
|
209
|
+
.track-now { margin: 1rem 0 .4rem; }
|
|
210
|
+
.track-title { font-weight: 600; margin-bottom: .4rem; overflow-wrap: anywhere; }
|
|
211
|
+
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
|
|
212
|
+
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .2s linear; }
|
|
213
|
+
.progress-thin { height: 3px; }
|
|
214
|
+
.times { display: flex; justify-content: space-between; margin-top: .2rem; font-variant-numeric: tabular-nums; }
|
|
215
|
+
.controls { display: flex; gap: .7rem; margin: 1rem 0; }
|
|
216
|
+
.round { width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 1.3rem; }
|
|
217
|
+
.small-round { width: 38px; height: 38px; font-size: 1.1rem; }
|
|
218
|
+
.volume { display: flex; align-items: center; gap: .6rem; }
|
|
219
|
+
.volume input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }
|
|
220
|
+
.volume-value { min-width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
|
|
221
|
+
|
|
222
|
+
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px;
|
|
223
|
+
background: var(--idle-soft); color: var(--muted); }
|
|
224
|
+
.badge.small { font-size: .7rem; margin-left: .4rem; }
|
|
225
|
+
.badge-ok { background: var(--ok-soft); color: var(--ok); }
|
|
226
|
+
.badge-warn { background: var(--warn-soft); color: var(--warn); }
|
|
227
|
+
.badge-error { background: var(--error-soft); color: var(--error); }
|
|
228
|
+
.badge-busy { background: var(--accent-soft); color: var(--accent); }
|
|
229
|
+
|
|
230
|
+
.tracklist { margin: 0; padding: 0; list-style: none; counter-reset: track; }
|
|
231
|
+
.tracklist li { counter-increment: track; display: flex; gap: .8rem; align-items: baseline; padding: .45rem .5rem;
|
|
232
|
+
border-radius: 8px; }
|
|
233
|
+
.tracklist li::before { content: counter(track); color: var(--muted); font-variant-numeric: tabular-nums;
|
|
234
|
+
min-width: 1.6rem; text-align: right; font-size: .85rem; }
|
|
235
|
+
.tracklist li.current { background: var(--accent-soft); font-weight: 600; }
|
|
236
|
+
.tracklist li.current::before { content: "▶"; color: var(--accent); }
|
|
237
|
+
.track-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
238
|
+
|
|
239
|
+
/* tables */
|
|
240
|
+
.table-wrap { overflow-x: auto; margin: 0 -.4rem; }
|
|
241
|
+
.table { width: 100%; border-collapse: collapse; }
|
|
242
|
+
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
|
|
243
|
+
font-weight: 600; padding: .5rem .4rem; border-bottom: 1px solid var(--border); }
|
|
244
|
+
.table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
|
|
245
|
+
.table th[data-sort]:hover, .table th[aria-sort] { color: var(--text); }
|
|
246
|
+
.table th[aria-sort="ascending"]::after { content: " ▲"; }
|
|
247
|
+
.table th[aria-sort="descending"]::after { content: " ▼"; }
|
|
248
|
+
.table td { padding: .5rem .4rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
|
|
249
|
+
.table tr:last-child td { border-bottom: none; }
|
|
250
|
+
.table tr.present td { background: var(--ok-soft); }
|
|
251
|
+
.table td:first-child { min-width: 9rem; }
|
|
252
|
+
.table select { min-width: 10rem; }
|
|
253
|
+
.user-password { display: flex; gap: .5rem; align-items: center; }
|
|
254
|
+
.user-password input { flex: 1 1 10rem; min-width: 8rem; }
|
|
255
|
+
|
|
256
|
+
/* albums */
|
|
257
|
+
#tab-albums .row { gap: .6rem 1.2rem; }
|
|
258
|
+
.album-open { font-weight: 600; text-align: left; overflow-wrap: anywhere; line-height: 1.3; }
|
|
259
|
+
.albums-table code { font-size: .8rem; overflow-wrap: anywhere; }
|
|
260
|
+
|
|
261
|
+
dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
|
|
262
|
+
width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 1.2rem; box-shadow: var(--shadow); }
|
|
263
|
+
dialog::backdrop { background: var(--backdrop); }
|
|
264
|
+
.dialog-close { float: right; }
|
|
265
|
+
.dialog-close button { background: none; border: none; font-size: 1.1rem; }
|
|
266
|
+
.dialog-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
|
|
267
|
+
.dialog-head h2 { margin: 0 0 .2rem; }
|
|
268
|
+
.dialog-head > div:last-child { flex: 1; min-width: 0; }
|
|
269
|
+
.title-input { font-size: 1.1rem; font-weight: 600; }
|
|
270
|
+
.dialog-head .button.small { display: inline-block; margin-top: .5rem; }
|
|
271
|
+
.dialog-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem;
|
|
272
|
+
margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
|
|
273
|
+
|
|
274
|
+
.problems { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 10px; padding: .7rem .9rem;
|
|
275
|
+
margin-bottom: 1rem; font-size: .88rem; }
|
|
276
|
+
.problems ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; overflow-wrap: anywhere; }
|
|
277
|
+
|
|
278
|
+
/* upload */
|
|
279
|
+
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.4rem; text-align: center;
|
|
280
|
+
margin: .8rem 0; transition: border-color .15s, background .15s; }
|
|
281
|
+
.dropzone.dragging { border-color: var(--accent); background: var(--accent-soft); }
|
|
282
|
+
.upload-list { list-style: none; padding: 0; margin: .6rem 0; counter-reset: up; }
|
|
283
|
+
.upload-entry { counter-increment: up; padding: .4rem 0; border-bottom: 1px solid var(--border); }
|
|
284
|
+
.upload-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
|
|
285
|
+
.upload-row::before { content: counter(up) "."; color: var(--muted); min-width: 1.6rem; text-align: right;
|
|
286
|
+
font-size: .85rem; }
|
|
287
|
+
.upload-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
|
288
|
+
.upload-state { white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
289
|
+
.upload-actions { display: flex; }
|
|
290
|
+
.upload-error .upload-state { color: var(--error); white-space: normal; }
|
|
291
|
+
.upload-error .progress-bar { background: var(--error); }
|
|
292
|
+
.upload-ok .progress-bar { background: var(--ok); }
|
|
293
|
+
|
|
294
|
+
.pending-list { list-style: none; margin: 0; padding: 0; }
|
|
295
|
+
.pending-list li { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .3rem 0; }
|
|
296
|
+
.pending-name { flex: 1; font-weight: 600; overflow-wrap: anywhere; }
|
|
297
|
+
|
|
298
|
+
/* led */
|
|
299
|
+
.led { width: .75rem; height: .75rem; border-radius: 50%; margin-left: .3rem; background: var(--led-a, var(--muted));
|
|
300
|
+
box-shadow: 0 0 .5rem var(--led-a, var(--muted)); border: 1px solid rgba(0, 0, 0, .25); }
|
|
301
|
+
.led-alternate { animation: led-blink var(--led-delay, 2s) steps(1) infinite; }
|
|
302
|
+
.led.hw-dot { display: inline-block; margin: 0 .45rem 0 0; vertical-align: baseline; }
|
|
303
|
+
.headset-icon { font-size: .95rem; line-height: 1; }
|
|
304
|
+
fieldset { border: 1px solid var(--border); border-radius: 10px; margin: .8rem 0; padding: .2rem .8rem .4rem; }
|
|
305
|
+
legend { font-weight: 600; padding: 0 .3rem; }
|
|
306
|
+
fieldset label { flex: 1 1 8rem; margin: .3rem 0; }
|
|
307
|
+
@keyframes led-blink {
|
|
308
|
+
0% { background: var(--led-a); box-shadow: 0 0 .5rem var(--led-a); }
|
|
309
|
+
50% { background: var(--led-b); box-shadow: 0 0 .5rem var(--led-b); }
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* virtual tags */
|
|
313
|
+
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; margin: 1rem 0; }
|
|
314
|
+
.deck-card { position: relative; display: block; text-align: left; padding: .6rem; background: var(--surface-2);
|
|
315
|
+
border-radius: 12px; border: 2px solid transparent; }
|
|
316
|
+
.deck-card .cover { margin-bottom: .5rem; aspect-ratio: 4 / 3; }
|
|
317
|
+
.deck-card .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
318
|
+
.deck-card.present { border-color: var(--ok); background: var(--ok-soft); }
|
|
319
|
+
/* hover: the frame, not the ground - the grey text on the card keeps its contrast */
|
|
320
|
+
.deck-card:hover:not(:disabled), .deck-row:hover:not(:disabled) {
|
|
321
|
+
background: var(--surface-2); border-color: var(--border); }
|
|
322
|
+
.deck-card.present:hover:not(:disabled), .deck-row.present:hover:not(:disabled) {
|
|
323
|
+
background: var(--ok-soft); border-color: var(--ok); }
|
|
324
|
+
.deck-name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
|
|
325
|
+
.deck-badge { position: absolute; top: .9rem; right: .9rem; }
|
|
326
|
+
.deck-controls { gap: .6rem 1.2rem; margin: .8rem 0 0; }
|
|
327
|
+
.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
|
|
328
|
+
.segmented button { border: 0; border-radius: 0; padding: .35rem .9rem; background: transparent; }
|
|
329
|
+
.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
|
|
330
|
+
.deck.deck-list { display: flex; flex-direction: column; gap: .4rem; }
|
|
331
|
+
.deck-row { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr) auto;
|
|
332
|
+
gap: .2rem .8rem; align-items: center; text-align: left; padding: .4rem .6rem; background: var(--surface-2);
|
|
333
|
+
border-radius: 10px; border: 2px solid transparent; }
|
|
334
|
+
.deck-row.present { border-color: var(--ok); background: var(--ok-soft); }
|
|
335
|
+
.deck-row-name { font-weight: 600; overflow-wrap: anywhere; }
|
|
336
|
+
.deck-row .deck-badge { position: static; justify-self: end; grid-column: 5; }
|
|
337
|
+
@media (max-width: 640px) {
|
|
338
|
+
.deck-row { grid-template-columns: 3rem minmax(0, 1fr); }
|
|
339
|
+
.deck-row-target, .deck-row-progress { grid-column: 2; }
|
|
340
|
+
}
|
|
341
|
+
.thumb-cell { width: 3.6rem; min-width: 0 !important; }
|
|
342
|
+
/* the phone as reader of the library */
|
|
343
|
+
.scan { margin: 1rem 0; padding: .8rem; border: 1px solid var(--accent); border-radius: 12px; }
|
|
344
|
+
.scan > p { margin: 0; }
|
|
345
|
+
.scan-tag { display: flex; gap: .9rem; align-items: flex-start; margin-top: .8rem; }
|
|
346
|
+
.scan-tag .thumb { width: 5rem; height: 5rem; flex: none; }
|
|
347
|
+
.scan-fields { display: grid; gap: .4rem; flex: 1; min-width: 0; }
|
|
348
|
+
|
|
349
|
+
.thumb { width: 3rem; height: 3rem; padding: 0; overflow: hidden; border-radius: 8px; display: grid;
|
|
350
|
+
place-items: center; }
|
|
351
|
+
.thumb img { width: 100%; height: 100%; object-fit: cover; }
|
|
352
|
+
.thumb .cover-placeholder { font-size: 1.2rem; }
|
|
353
|
+
label.thumb { display: grid; cursor: pointer; }
|
|
354
|
+
|
|
355
|
+
/* log */
|
|
356
|
+
.log-list { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .78rem; background: var(--surface-2);
|
|
357
|
+
border-radius: 10px; padding: .5rem; height: 65vh; overflow: auto; margin-top: .8rem; }
|
|
358
|
+
.log-entry { display: grid; grid-template-columns: 5.5rem 4.5rem 12rem 1fr; gap: .5rem; padding: .1rem 0;
|
|
359
|
+
border-bottom: 1px solid var(--border); }
|
|
360
|
+
.log-message { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
361
|
+
.log-logger { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
362
|
+
.log-time { color: var(--muted); }
|
|
363
|
+
.log-debug .log-level { color: var(--muted); }
|
|
364
|
+
.log-info .log-level { color: var(--ok); }
|
|
365
|
+
.log-warning { background: var(--warn-soft); }
|
|
366
|
+
.log-warning .log-level { color: var(--warn); }
|
|
367
|
+
.log-error, .log-critical { background: var(--error-soft); }
|
|
368
|
+
.log-error .log-level, .log-critical .log-level { color: var(--error); font-weight: 600; }
|
|
369
|
+
#tab-statistics .card-head select { flex: none; width: auto; }
|
|
370
|
+
#tab-statistics:not(.several) .stats-several { display: none; } /* the columns that name a box */
|
|
371
|
+
#stats-boxes button.link { color: inherit; padding-left: 0; text-decoration: underline; }
|
|
372
|
+
#tab-log .card-head .row { margin: 0; }
|
|
373
|
+
#tab-log .card-head select { flex: none; width: auto; }
|
|
374
|
+
#log-text { flex: 0 1 12rem; width: 12rem; }
|
|
375
|
+
#tab-log .card-head label.check { margin: 0; }
|
|
376
|
+
|
|
377
|
+
/* system */
|
|
378
|
+
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0 0 1rem; }
|
|
379
|
+
.facts dt { color: var(--muted); }
|
|
380
|
+
.facts dd { margin: 0; overflow-wrap: anywhere; }
|
|
381
|
+
.output { background: var(--surface-2); padding: .8rem; border-radius: 10px; white-space: pre-wrap;
|
|
382
|
+
overflow-wrap: anywhere; font-size: .85rem; max-height: 50vh; overflow: auto; }
|
|
383
|
+
|
|
384
|
+
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 20;
|
|
385
|
+
background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 10px; box-shadow: var(--shadow);
|
|
386
|
+
max-width: calc(100vw - 32px); }
|
|
387
|
+
.toast-error { background: var(--error); color: var(--error-text); }
|
|
388
|
+
|
|
389
|
+
body:not(.is-admin) .admin-only { display: none !important; }
|
|
390
|
+
/* the page of a box and the page of the library are one page */
|
|
391
|
+
body.is-library .box-only { display: none !important; }
|
|
392
|
+
body:not(.is-library) .library-only { display: none !important; }
|
|
393
|
+
.state-use { color: var(--ok); }
|
|
394
|
+
.state-manual { color: var(--warn); }
|
|
395
|
+
.state-dontuse { color: var(--error); }
|
|
396
|
+
|
|
397
|
+
@media (max-width: 640px) {
|
|
398
|
+
.topbar { flex-wrap: wrap; gap: .4rem .8rem; padding: .6rem 1rem; }
|
|
399
|
+
.tabs { order: 3; flex-basis: 100%; }
|
|
400
|
+
.tabs button { padding: .4rem .6rem; }
|
|
401
|
+
.user { margin-left: auto; }
|
|
402
|
+
main { padding: .8rem 1rem; }
|
|
403
|
+
.now { grid-template-columns: 1fr; gap: 1rem; }
|
|
404
|
+
.now .cover { max-width: 220px; width: 100%; margin: 0 auto; }
|
|
405
|
+
.controls { justify-content: center; }
|
|
406
|
+
.card { padding: 1rem; }
|
|
407
|
+
.log-entry { grid-template-columns: 4.5rem 1fr; }
|
|
408
|
+
.log-level, .log-logger { display: none; }
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/* a line to copy, e.g. the one that sets up a new box: one click selects all of it */
|
|
412
|
+
.selectable { user-select: all; overflow-wrap: anywhere; }
|