Repository navigation
Expand file tree
/
Copy pathpopup.css
More file actions
78 lines (78 loc) · 6.53 KB
/
Copy pathpopup.css
File metadata and controls
78 lines (78 loc) · 6.53 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
:root {
--bg: #15181e; --panel: #1d222b; --card: #232936; --line: #2e3646;
--fg: #e8ecf3; --mut: #9aa4b5; --acc: #5b8def; --on: #3ecf8e; --off: #f26d6d;
--mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; max-width: 100%; }
body {
width: 620px; height: 600px; display: flex; flex-direction: column; overflow: hidden;
background: var(--bg); color: var(--fg);
font: 13px/1.45 -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.fullpage { width: 100%; height: auto; max-width: 900px; margin: 0 auto; overflow: visible; }
body.fullpage .panel { overflow: visible; }
.topbar { display: flex; align-items: center; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.brand { display: flex; gap: 10px; align-items: center; }
.logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px;
background: linear-gradient(135deg, #5b8def, #9b5bf0); font-size: 18px; }
.brand h1 { font-size: 15px; margin: 0; }
.brand p { margin: 0; color: var(--mut); font-size: 11px; }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 8px; padding: 6px 10px; }
button:hover { border-color: var(--acc); }
button.primary { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
button.ghost { background: transparent; }
button.mini { font-size: 11px; padding: 3px 8px; }
button.danger { border-color: var(--off); color: var(--off); background: transparent; }
.stats { display: flex; gap: 12px; align-items: center; padding: 8px 12px; color: var(--mut); font-size: 12px; border-bottom: 1px solid var(--line); flex: none; }
.stats b { color: var(--fg); } .stats .on { color: var(--on); } .stats .off { color: var(--off); }
.spacer { flex: 1; }
.tabs { display: flex; gap: 4px; padding: 8px 12px 0; flex: none; }
.tab { flex: 1; padding: 8px; border-radius: 8px 8px 0 0; border-bottom: none; background: transparent; color: var(--mut); font-weight: 600; }
.tab.active { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-bottom: none; }
.toolbar { display: flex; gap: 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-left: none; border-right: none; flex: none; }
.toolbar input[type="search"] { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 7px 10px; }
.toolbar select { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px; max-width: 130px; }
.panel { padding: 10px 12px 12px; overflow-y: auto; overflow-x: hidden; flex: 1; background: var(--panel); min-width: 0; }
.list { display: grid; gap: 8px; min-width: 0; }
.card { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; align-items: flex-start; min-width: 0; max-width: 100%; }
.card img { width: 28px; height: 28px; border-radius: 6px; background: #0f1319; flex: none; }
.card .meta { flex: 1; min-width: 0; }
.card .name { font-weight: 650; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; min-width: 0; }
.card .name .v { color: var(--mut); font-weight: 400; font-size: 11px; }
.card .desc { color: var(--mut); font-size: 12px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card .id { color: var(--mut); font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; word-break: break-all; }
.badge { font-size: 10px; padding: 1px 6px; border-radius: 20px; border: 1px solid var(--line); color: var(--mut); }
.badge.app { color: #9b5bf0; border-color: #9b5bf0; } .badge.theme { color: #e0a63e; border-color: #e0a63e; }
.rowbtns { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.rowbtns button { font-size: 11px; padding: 3px 8px; }
.switch { position: relative; width: 36px; height: 20px; flex: none; margin-top: 4px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #39414f; border-radius: 20px; transition: .15s; }
.slider::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + .slider { background: var(--on); }
.switch input:checked + .slider::before { transform: translateX(16px); }
.empty { color: var(--mut); text-align: center; }
.note { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; color: var(--mut); font-size: 12px; margin-bottom: 10px; }
.note code { font-family: var(--mono); color: var(--fg); }
.note .row { display: flex; gap: 8px; margin-top: 8px; }
h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 12px 0 6px; }
.hint { color: var(--mut); font-size: 12px; margin: 0 0 8px; }
.cmds { display: grid; gap: 6px; }
.cmd { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; min-width: 0; max-width: 100%; }
.cmd .k { flex: 1; min-width: 0; overflow-wrap: anywhere; } .cmd .k b { display: block; } .cmd .k span { color: var(--mut); font-size: 11px; }
kbd { font-family: var(--mono); font-size: 11px; background: #0f1319; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
kbd.none { color: var(--mut); }
.slots select { max-width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.form { flex-direction: column; }
.form label { display: grid; gap: 4px; font-size: 12px; color: var(--mut); flex: 1; }
.form input, .form select { background: var(--bg); border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 7px 9px; width: 100%; }
.frow { display: flex; gap: 8px; align-items: end; margin-bottom: 8px; }
.frow2 { display: flex; gap: 8px; margin-bottom: 8px; }
.warn { color: var(--off); font-size: 12px; }
.foot { display: flex; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); color: var(--mut); font-size: 11px; flex: none; }
.status { min-height: 16px; }
.rec { animation: pulse 1s infinite; border-color: var(--off) !important; color: var(--off) !important; }
@keyframes pulse { 50% { opacity: .5; } }
@media (max-width: 480px) { body { width: 100%; } }