Files
deskhub/chrome-erweiterung/popup.css
T
2026-10-25 20:21:12 +00:00

51 lines
4.3 KiB
CSS

:root {
--bg: #f3f6f8; --card: #ffffff; --ink: #162033; --muted: #5d6b82; --line: #e2e8f0;
--brand: #0f766e; --brand-ink: #ffffff; --brand-soft: #e0f5f2; --bad: #b91c1c; --bad-bg: #fee2e2; --ok: #15803d; --ok-bg: #dcfce7;
}
@media (prefers-color-scheme: dark) {
:root { --bg: #0b121b; --card: #131e2c; --ink: #e6ecf3; --muted: #93a2b8; --line: #243245; --brand: #2dd4bf; --brand-ink: #04201d; --brand-soft: #0f2a2b; --bad: #f87171; --bad-bg: #3a1618; --ok: #4ade80; --ok-bg: #12301f; }
}
* { box-sizing: border-box; }
body { margin: 0; width: 380px; min-height: 240px; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.window { width: auto; }
#app { display: flex; flex-direction: column; min-height: 240px; }
header.top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0f1b2b; color: #fff; }
header.top img { width: 22px; height: 22px; border-radius: 6px; }
header.top .name { font-weight: 700; flex: 1; }
header.top button { background: transparent; color: #cbd5e1; border: 0; padding: 2px 6px; font: inherit; font-size: 12px; cursor: pointer; border-radius: 6px; }
header.top button:hover { background: rgba(255,255,255,.1); color: #fff; }
nav.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); }
nav.tabs button { flex: 1; padding: 9px 4px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
nav.tabs button.on { color: var(--brand); border-color: var(--brand); }
main { padding: 12px 14px; display: grid; gap: 10px; align-content: start; flex: 1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
h1 { font-size: 16px; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 12.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.stat .v { font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat .k { color: var(--muted); font-size: 11.5px; }
.stat.warn .v { color: var(--bad); }
ul.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
ul.tickets li button { width: 100%; text-align: left; display: grid; grid-template-columns: 10px 1fr; gap: 4px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: inherit; font: inherit; cursor: pointer; }
ul.tickets li button:hover { border-color: var(--brand); }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--muted); }
.t-sub { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-meta { grid-column: 2; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-meta .over { color: var(--bad); font-weight: 600; }
form { display: grid; gap: 8px; }
label { display: grid; gap: 3px; font-size: 12.5px; font-weight: 600; }
label.inline { display: flex; align-items: center; gap: 6px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
button.primary { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer; }
button.primary:disabled { opacity: .6; cursor: default; }
button.link { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msg { padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 18px 0; }
footer.bar { padding: 8px 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }