Repository navigation
Expand file tree
/
Copy pathsettings.css
More file actions
87 lines (74 loc) · 5.84 KB
/
Copy pathsettings.css
File metadata and controls
87 lines (74 loc) · 5.84 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
/* SPDX-License-Identifier: GPL-3.0-or-later */
:root {
--bg: #1f1f1f;
--panel: #282828;
--line: #3a3a3a;
--fg: #eaeaea;
--dim: #a3a3a3;
--plex: #e5a00d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font: 14px "Segoe UI", system-ui, sans-serif; color: var(--fg); background: transparent; forced-color-adjust: none; }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); }
.panel {
position: absolute; inset: 0; margin: auto;
width: min(900px, calc(100% - 48px)); height: min(640px, calc(100% - 48px));
display: flex; flex-direction: column;
background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
overflow: hidden;
}
header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
h1 { margin: 0; flex: 1; font-size: 20px; font-weight: 600; }
.close { background: none; border: 0; color: var(--dim); font-size: 18px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.close:hover { background: var(--panel); color: var(--fg); }
.body { flex: 1; display: flex; min-height: 0; }
nav { width: 200px; flex: none; padding: 12px 8px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
nav button { text-align: left; background: none; border: 0; color: var(--dim); font: inherit; padding: 10px 14px; border-radius: 6px; cursor: pointer; border-left: 3px solid transparent; }
nav button:hover { background: var(--panel); color: var(--fg); }
nav button.active { color: var(--fg); background: var(--panel); border-left-color: var(--plex); }
.panes { flex: 1; overflow-y: auto; padding: 8px 28px 24px; }
.pane { display: none; }
.pane.active { display: block; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--plex); margin: 20px 0 8px; font-weight: 600; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #2c2c2c; cursor: pointer; }
.row.radio { justify-content: flex-start; align-items: flex-start; }
.row.radio input { margin-top: 3px; }
.note { color: var(--dim); font-size: 13px; line-height: 1.5; margin: 10px 0; }
.note b { color: var(--fg); font-weight: 600; }
input[type="checkbox"] { appearance: none; width: 40px; height: 22px; border-radius: 11px; background: #4a4a4a; position: relative; cursor: pointer; flex: none; transition: background .15s; }
input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #ddd; transition: left .15s; }
input[type="checkbox"]:checked { background: var(--plex); }
input[type="checkbox"]:checked::after { left: 21px; background: #fff; }
input[type="radio"] { accent-color: var(--plex); width: 16px; height: 16px; flex: none; }
.slider { display: flex; align-items: center; gap: 10px; }
input[type="range"] { width: 200px; accent-color: var(--plex); }
output { min-width: 56px; text-align: right; color: var(--fg); font-variant-numeric: tabular-nums; }
select, input[type="text"] { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font: inherit; min-width: 240px; }
select:focus, input[type="text"]:focus, button:focus-visible, input:focus-visible { outline: 2px solid var(--plex); outline-offset: 2px; }
.secondary { margin-top: 6px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 16px; font: inherit; cursor: pointer; }
.secondary:hover { border-color: var(--plex); }
.row small { color: var(--dim); font-size: 12px; margin-left: 6px; }
/* Theme swatches: a mini window (title bar, page, accent bar) per theme. */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin: 6px 0 4px; }
.swatch { background: none; border: 2px solid transparent; border-radius: 10px; padding: 6px; cursor: pointer; color: var(--dim); font: inherit; font-size: 12px; text-align: center; }
.swatch:hover { background: var(--panel); color: var(--fg); }
.swatch.active { border-color: var(--plex); color: var(--fg); }
.swatch .mini { height: 62px; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #00000066; margin-bottom: 6px; }
.swatch .mini i { display: block; height: 12px; }
.swatch .mini b { flex: 1; display: flex; align-items: flex-end; padding: 6px; }
.swatch .mini b::after { content: ""; height: 6px; width: 60%; border-radius: 3px; background: var(--acc); }
.padtest { background: #141414; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: 12.5px Consolas, monospace; color: var(--dim); white-space: pre-wrap; line-height: 1.6; user-select: text; }
.padtest b { color: var(--plex); font-weight: 600; }
.keys { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.keys td { padding: 6px 0; border-bottom: 1px solid #2c2c2c; color: var(--dim); }
.keys td:first-child { color: var(--fg); width: 40%; }
.backup { display: flex; gap: 10px; }
/* Key bindings (TV mode): a key as a chip (× takes it away), + adds one, ↺ puts back the defaults */
.keys.bind td { vertical-align: middle; }
.keys.bind td small { display: block; color: var(--dim); font-size: 12px; }
.kchip { display: inline-flex; align-items: center; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 2px 2px 2px 8px; margin: 2px 6px 2px 0; color: var(--fg); }
.kchip button, .kbtn { background: none; border: 0; color: var(--dim); cursor: pointer; font: inherit; padding: 0 6px; border-radius: 4px; }
.kchip button:hover, .kbtn:hover { color: var(--fg); background: #ffffff14; }
.kbtn { border: 1px solid var(--line); padding: 2px 9px; margin: 2px 4px 2px 0; }
.kbtn.wait { border-color: var(--plex); color: var(--plex); }