aboutsummaryrefslogtreecommitdiffstats
path: root/extension/src/ui.css
blob: 26c183b33d1a155b61609ec38edb3deb2d026e39 (plain) (blame)
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
@font-face { font-family: "Public Sans"; font-weight: 100 900; font-display: swap; src: url("PublicSans.woff2") format("woff2"); }
:root {
  --bg: #eef0f3; --paper: #fff; --ink: #15171a; --muted: #6b7280; --line: #e6e8ec; --line-strong: #d4d8de;
  --fill: #15171a; --fill-fg: #fff; --soft: #f7f8fa; --green: #14935a; --red: #c43b3b;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171a; --paper: #1d2024; --ink: #eceef1; --muted: #9aa1ac; --line: #2a2e34; --line-strong: #3a3f47; --fill: #34383f; --fill-fg: #fff; --soft: #24272c; --green: #3ecf8e; --red: #ef6b6b; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); }
body { width: 360px; padding: 14px; }
body.prompt { width: auto; }
body.tab { width: auto; max-width: 440px; margin: 0 auto; padding: 32px 14px; }
h1 { font-size: 15px; font-weight: 650; margin: 0; }
h2 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: none; }
.head .who { min-width: 0; flex: 1; }
.head .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mono { font-family: var(--mono); font-size: 12px; }
button { font: inherit; font-weight: 600; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); padding: 9px 12px; cursor: pointer; }
button:hover { background: var(--soft); }
button.primary { background: var(--fill); border-color: var(--fill); color: var(--fill-fg); }
button.primary:hover { filter: brightness(1.15); }
button.link { border: 0; background: none; padding: 0; font-weight: 500; color: var(--muted); text-decoration: underline; }
button.link:hover { color: var(--ink); background: none; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
textarea { width: 100%; font: 13px/1.4 var(--mono); color: var(--ink); background: var(--soft); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; resize: vertical; min-height: 68px; margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; }
.balance span { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
ul { list-style: none; margin: 0; padding: 0; }
li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
li:first-child { border-top: 0; }
.in { color: var(--green); }
.err { color: var(--red); font-size: 12px; min-height: 16px; margin: 0 0 6px; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 7px; }
.buttons { display: flex; gap: 8px; }
.buttons button { flex: 1; }
.origin { font-weight: 650; font-size: 16px; word-break: break-all; margin: 0 0 8px; }
[hidden] { display: none !important; }