first commit
This commit is contained in:
commit
c30064b531
93 files changed
+26367
No files matched your search
@@ -0,0 +1,82 @@
|
||||
/* simply-dvb – "control room" style panel (inspired by RustProxy) */
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #131615;
|
||||
--panel: #1b1f1d;
|
||||
--panel2: #202622;
|
||||
--line: #323a34;
|
||||
--row-line: #2b332c;
|
||||
--muted: #a0aaa0;
|
||||
--subtle: #879082;
|
||||
--text: #edf0e9;
|
||||
--accent: #f69b74;
|
||||
--accent-hover: #ffb090;
|
||||
--accent-ink: #221810;
|
||||
--green: #bdd293;
|
||||
--red: #ffaaa2;
|
||||
--blue: #8ebcff;
|
||||
--yellow: #e7c76d;
|
||||
--sidebar-bg: #101310;
|
||||
--nav-active-bg: #242b23;
|
||||
--field-bg: #131813;
|
||||
--field-line: #47523f;
|
||||
--danger-line: #644a47;
|
||||
--notice-bg: #29251c;
|
||||
--notice-line: #554833;
|
||||
--mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace;
|
||||
--sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
||||
--radius: 3px;
|
||||
}
|
||||
html[data-theme=light] {
|
||||
color-scheme: light;
|
||||
--bg: #f4f6f2;
|
||||
--panel: #fff;
|
||||
--panel2: #edf1eb;
|
||||
--line: #cbd3c7;
|
||||
--row-line: #dde3d9;
|
||||
--muted: #5e685f;
|
||||
--subtle: #6f786c;
|
||||
--text: #1d241f;
|
||||
--accent: #b85b38;
|
||||
--accent-hover: #9c4729;
|
||||
--accent-ink: #fff;
|
||||
--green: #5f783f;
|
||||
--red: #b64a43;
|
||||
--blue: #2d6bc4;
|
||||
--yellow: #8c6a12;
|
||||
--sidebar-bg: #eef2ec;
|
||||
--nav-active-bg: #dfe7da;
|
||||
--field-bg: #fff;
|
||||
--field-line: #b9c3b3;
|
||||
--danger-line: #e3b8b3;
|
||||
--notice-bg: #fbf5e6;
|
||||
--notice-line: #e2d2a8;
|
||||
}
|
||||
html[data-theme=midnight] {
|
||||
--bg: #050605;
|
||||
--panel: #0c0e0d;
|
||||
--panel2: #121513;
|
||||
--line: #222823;
|
||||
--row-line: #1a1f1b;
|
||||
--sidebar-bg: #000;
|
||||
--nav-active-bg: #151a15;
|
||||
--field-bg: #070907;
|
||||
--field-line: #333c30;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.45 var(--sans); }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { color: var(--accent-hover); }
|
||||
.hidden { display: none !important; }
|
||||
.mono { font-family: var(--mono); }
|
||||
.muted { color: var(--muted); }
|
||||
.small { font-size: 11px; }
|
||||
.error-text { color: var(--red); min-height: 1.2em; }
|
||||
.ok-text { color: var(--green); }
|
||||
.warn-text { color: var(--yellow); }
|
||||
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.01em; }
|
||||
code, .code { font-family: var(--mono); font-size: 12px; background: var(--field-bg); border: 1px solid var(--line); padding: 1px 5px; border-radius: var(--radius); word-break: break-all; }
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg); }
|
||||
::-webkit-scrollbar-thumb { background: #4f5d50; border-radius: 6px; border: 2px solid var(--bg); }
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* ---------------------------------------------------------------- shell */
|
||||
.shell { display: flex; min-height: 100vh; }
|
||||
.sidebar { position: fixed; inset: 0 auto 0 0; width: 52px; background: var(--sidebar-bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: stretch; padding: 10px 0; gap: 4px; z-index: 20; transition: width .15s; overflow: hidden; }
|
||||
.sidebar:hover { width: 190px; box-shadow: 4px 0 18px #0006; }
|
||||
.sidebar a { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 15px; color: var(--muted); border-left: 2px solid transparent; white-space: nowrap; }
|
||||
.sidebar a span { display: none; font-size: 13px; }
|
||||
.sidebar:hover a span { display: inline; }
|
||||
.sidebar a:hover { color: var(--text); background: var(--nav-active-bg); }
|
||||
.sidebar a.active { color: var(--green); background: var(--nav-active-bg); border-left-color: var(--green); }
|
||||
.sidebar svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.sidebar svg .fill { fill: currentColor; }
|
||||
.brand-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; box-sizing: border-box; width: 34px; height: 34px; border: 2px solid var(--accent); color: var(--accent); font: 700 13px/1 var(--mono); letter-spacing: -.02em; border-radius: 4px; white-space: nowrap; }
|
||||
.brand-mark.big { width: 54px; height: 54px; font-size: 20px; margin: 0 0 18px; }
|
||||
/* Sidebar brand link: its own box, not styled like the nav items (no left border/padding/hover). */
|
||||
.sidebar a.brand { height: 48px; padding: 0 0 0 9px; margin-bottom: 8px; border-left: 0; background: none; }
|
||||
.sidebar a.brand:hover { background: none; }
|
||||
.sidebar a.brand .brand-mark { display: inline-flex; }
|
||||
.sidebar-foot { margin-top: auto; display: flex; justify-content: center; padding: 10px; }
|
||||
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); display: inline-block; }
|
||||
.live-dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
|
||||
.live-dot.off { background: var(--red); }
|
||||
.main { flex: 1; margin-left: 52px; min-width: 0; }
|
||||
.topbar { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 10; }
|
||||
.crumbs { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; }
|
||||
.crumbs #crumb { color: var(--text); text-transform: none; letter-spacing: .04em; }
|
||||
.crumbs .sep { color: var(--subtle); }
|
||||
.top-actions { display: flex; gap: 8px; align-items: center; }
|
||||
.who { font: 11px var(--mono); color: var(--muted); padding: 0 6px; }
|
||||
.view { padding: 18px 18px 40px; }
|
||||
|
||||
/* ---------------------------------------------------------------- page header */
|
||||
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
|
||||
.eyebrow { font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--green); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
|
||||
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
||||
.page-head h1 { font-size: 26px; }
|
||||
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
|
||||
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
/* ---------------------------------------------------------------- panels */
|
||||
.grid { display: grid; gap: 10px; }
|
||||
.g1 { grid-template-columns: minmax(0, 1fr); }
|
||||
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
|
||||
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
|
||||
.panel > header h2 { font-size: 14px; }
|
||||
.panel + .panel, .grid + .panel, .panel + .grid, .grid + .grid { margin-top: 10px; }
|
||||
.grid > .panel + .panel { margin-top: 0; }
|
||||
.stat .label, .label { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
|
||||
.stat .value { font: 500 26px var(--mono); margin-top: 8px; }
|
||||
.stat .sub { font: 11px var(--mono); color: var(--muted); margin-top: 4px; }
|
||||
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 12px; }
|
||||
.kv > :nth-child(odd) { color: var(--muted); font: 11px var(--mono); padding-top: 1px; }
|
||||
.pill { display: inline-block; font: 10px var(--mono); letter-spacing: .06em; padding: 2px 7px; border: 1px solid var(--field-line); border-radius: 2px; color: var(--muted); white-space: nowrap; }
|
||||
.pill.ok { color: var(--green); border-color: #576847; }
|
||||
.pill.warn { color: var(--yellow); border-color: var(--notice-line); }
|
||||
.pill.err { color: var(--red); border-color: var(--danger-line); }
|
||||
.pill.acc { color: var(--accent); border-color: #6d5a45; }
|
||||
.pill.blue { color: var(--blue); border-color: #3b5272; }
|
||||
.notice { background: var(--notice-bg); border: 1px solid var(--notice-line); color: var(--text); padding: 10px 12px; border-radius: var(--radius); font-size: 12px; margin-bottom: 10px; }
|
||||
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
|
||||
|
||||
/* meters */
|
||||
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
|
||||
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }
|
||||
.meter.good > i { background: var(--green); }
|
||||
.meter.bad > i { background: var(--red); }
|
||||
.meter.blue > i { background: var(--blue); }
|
||||
.spark { width: 100%; height: 46px; display: block; }
|
||||
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.6; }
|
||||
.spark .area { fill: var(--accent); opacity: .12; stroke: none; }
|
||||
|
||||
/* ---------------------------------------------------------------- tables */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 12px; }
|
||||
th { text-align: left; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
|
||||
td { padding: 6px 8px; border-bottom: 1px solid var(--row-line); vertical-align: middle; }
|
||||
tr:hover td { background: var(--panel2); }
|
||||
td.num, th.num { text-align: right; font-family: var(--mono); }
|
||||
td.actions-cell { text-align: right; white-space: nowrap; }
|
||||
tr.dragging td { opacity: .4; }
|
||||
tr.drop-target td { border-top: 2px solid var(--accent); }
|
||||
.drag { cursor: grab; color: var(--subtle); user-select: none; font-size: 14px; padding: 0 4px; }
|
||||
.logo { width: 46px; height: 28px; object-fit: contain; display: block; }
|
||||
.logo-ph { width: 46px; height: 28px; display: flex; align-items: center; justify-content: center; font: 600 10px var(--mono); color: var(--subtle); border: 1px dashed var(--line); border-radius: 2px; }
|
||||
|
||||
/* ---------------------------------------------------------------- forms */
|
||||
input, select, textarea { font: 12px var(--sans); color: var(--text); background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius); padding: 6px 8px; min-height: 28px; max-width: 100%; }
|
||||
input:focus, select:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
|
||||
textarea { width: 100%; min-height: 70px; font-family: var(--mono); resize: vertical; }
|
||||
input[type=checkbox] { min-height: 0; width: 15px; height: 15px; accent-color: var(--accent); vertical-align: middle; }
|
||||
label { display: flex; flex-direction: column; gap: 4px; font: 11px var(--mono); color: var(--muted); letter-spacing: .02em; }
|
||||
label.check { flex-direction: row; align-items: center; gap: 8px; font: 12px var(--sans); color: var(--text); }
|
||||
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
|
||||
.form-grid .full { grid-column: 1 / -1; }
|
||||
.hint { font: 11px var(--sans); color: var(--subtle); }
|
||||
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
||||
.btn { font: 12px var(--sans); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; min-height: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); cursor: pointer; white-space: nowrap; }
|
||||
.btn:hover { border-color: #89917c; }
|
||||
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
|
||||
.btn.primary:hover { background: var(--accent-hover); }
|
||||
.btn.danger { color: var(--red); border-color: var(--danger-line); }
|
||||
.btn.ghost { background: transparent; }
|
||||
.btn.small { padding: 2px 8px; min-height: 22px; font-size: 11px; }
|
||||
.btn.icon { padding: 2px 8px; }
|
||||
.btn.wide { width: 100%; justify-content: center; }
|
||||
.btn:disabled { opacity: .5; cursor: default; }
|
||||
.switch { position: relative; width: 30px; height: 16px; display: inline-block; }
|
||||
.switch input { opacity: 0; width: 0; height: 0; }
|
||||
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 10px; cursor: pointer; transition: .15s; }
|
||||
.switch span::before { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; background: var(--muted); border-radius: 50%; transition: .15s; }
|
||||
.switch input:checked + span { background: #4d6136; }
|
||||
.switch input:checked + span::before { transform: translateX(14px); background: var(--green); }
|
||||
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
|
||||
.tabs button { background: none; border: none; color: var(--muted); padding: 7px 12px; cursor: pointer; font: 12px var(--sans); border-bottom: 2px solid transparent; }
|
||||
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
|
||||
|
||||
/* ---------------------------------------------------------------- modal & toasts */
|
||||
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .68); display: flex; align-items: flex-start; justify-content: center; z-index: 50; padding: 6vh 16px; overflow-y: auto; }
|
||||
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; width: min(720px, 100%); padding: 16px 18px; box-shadow: 0 12px 40px #0009; }
|
||||
.modal-card.wide { width: min(1100px, 100%); }
|
||||
.modal-card > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
|
||||
.modal-card > header h2 { font-size: 16px; }
|
||||
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
|
||||
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
|
||||
.toast { background: #d0dfb4; color: #1c2818; border: 1px solid #ebf2de; padding: 9px 14px; border-radius: 3px; font-size: 12px; max-width: 420px; box-shadow: 0 6px 20px #0007; animation: slide .2s; white-space: pre-wrap; }
|
||||
.toast.err { background: #ffd2bd; color: #42241b; border-color: #ff9f7a; }
|
||||
@keyframes slide { from { transform: translateY(10px); opacity: 0; } }
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
/* ---------------------------------------------------------------- login */
|
||||
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
|
||||
.login-card { width: 340px; background: var(--panel); border: 1px solid var(--line); padding: 28px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; }
|
||||
.login-card h1 { font-size: 24px; margin-bottom: 6px; }
|
||||
.login-card input { padding: 9px 10px; font-size: 13px; }
|
||||
|
||||
/* ---------------------------------------------------------------- tuner cards */
|
||||
.tuner { display: grid; grid-template-columns: 1fr; gap: 8px; }
|
||||
.tuner .t-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
|
||||
.tuner h3 { font-size: 14px; }
|
||||
.tuner .t-meta { font: 11px var(--mono); color: var(--muted); }
|
||||
.sig { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
|
||||
.sig .value { font: 500 18px var(--mono); margin-top: 4px; }
|
||||
|
||||
/* ---------------------------------------------------------------- TV */
|
||||
.tv { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 10px; align-items: start; }
|
||||
.tv-list { max-height: calc(100vh - 150px); overflow-y: auto; padding: 0; }
|
||||
.tv-list .search { padding: 8px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; display: flex; gap: 6px; }
|
||||
.tv-list .search input { flex: 1; }
|
||||
.ch-item { display: grid; grid-template-columns: 28px 50px 1fr; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--row-line); cursor: pointer; }
|
||||
.ch-item:hover { background: var(--panel2); }
|
||||
.ch-item.active { background: var(--nav-active-bg); box-shadow: inset 2px 0 0 var(--accent); }
|
||||
.ch-item .n { font: 11px var(--mono); color: var(--muted); text-align: right; }
|
||||
.ch-item .t { min-width: 0; }
|
||||
.ch-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.ch-item .now { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.ch-item .meter { height: 3px; margin: 3px 0 0; }
|
||||
.player { position: relative; background: #000; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
|
||||
.player video { width: 100%; height: 100%; display: block; background: #000; }
|
||||
.player .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #ddd; font: 12px var(--mono); pointer-events: none; text-align: center; padding: 20px; background: radial-gradient(circle, #0008, #000c); }
|
||||
.player .overlay.err { color: #ffaaa2; }
|
||||
.player .badge { position: absolute; top: 10px; left: 10px; font: 10px var(--mono); letter-spacing: .1em; color: #fff; background: #c43c2acc; padding: 2px 7px; border-radius: 2px; pointer-events: none; }
|
||||
.spinner { width: 28px; height: 28px; border: 3px solid #fff3; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
.np { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
|
||||
.np h2 { font-size: 18px; }
|
||||
.np .time { font: 11px var(--mono); color: var(--muted); }
|
||||
.np .desc { color: var(--muted); font-size: 12px; margin-top: 6px; max-height: 7.5em; overflow: auto; white-space: pre-line; }
|
||||
.day-list .ev { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--row-line); align-items: center; }
|
||||
.day-list .ev.cur { color: var(--accent); }
|
||||
.day-list .ev.past { color: var(--subtle); }
|
||||
.day-list .ev .tm { font: 11px var(--mono); }
|
||||
|
||||
/* ---------------------------------------------------------------- EPG grid */
|
||||
.epg { position: relative; overflow: auto; max-height: calc(100vh - 170px); border: 1px solid var(--line); background: var(--panel); }
|
||||
.epg-inner { position: relative; }
|
||||
.epg-row { display: flex; height: 52px; border-bottom: 1px solid var(--row-line); }
|
||||
.epg-ch { position: sticky; left: 0; z-index: 3; width: 170px; flex: 0 0 170px; background: var(--panel); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 12px; cursor: pointer; }
|
||||
.epg-ch .n { font: 10px var(--mono); color: var(--muted); width: 22px; text-align: right; }
|
||||
.epg-ch .logo, .epg-ch .logo-ph { width: 40px; height: 24px; }
|
||||
.epg-ch .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
|
||||
.epg-track { position: relative; flex: 1; }
|
||||
.epg-ev { position: absolute; top: 4px; bottom: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 2px; padding: 4px 7px; overflow: hidden; cursor: pointer; font-size: 11px; white-space: nowrap; }
|
||||
.epg-ev:hover { border-color: var(--accent); z-index: 2; }
|
||||
.epg-ev .tt { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
|
||||
.epg-ev .tm { font: 10px var(--mono); color: var(--muted); }
|
||||
.epg-ev.cur { border-color: #6d5a45; background: #2a2620; }
|
||||
html[data-theme=light] .epg-ev.cur { background: #fbeee6; }
|
||||
.epg-ev.rec::after { content: "●"; color: #e25b45; position: absolute; right: 5px; top: 3px; font-size: 10px; }
|
||||
.epg-head { display: flex; position: sticky; top: 0; z-index: 4; background: var(--panel); border-bottom: 1px solid var(--line); height: 26px; }
|
||||
.epg-head .corner { position: sticky; left: 0; width: 170px; flex: 0 0 170px; background: var(--panel); border-right: 1px solid var(--line); z-index: 5; }
|
||||
.epg-head .hours { position: relative; flex: 1; }
|
||||
.epg-head .h { position: absolute; top: 0; height: 26px; border-left: 1px solid var(--line); font: 10px var(--mono); color: var(--muted); padding: 6px 6px; }
|
||||
.epg-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); z-index: 2; pointer-events: none; }
|
||||
|
||||
/* ---------------------------------------------------------------- scan log */
|
||||
.log { font: 11px/1.6 var(--mono); background: var(--field-bg); border: 1px solid var(--line); padding: 8px 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; border-radius: var(--radius); }
|
||||
.copy-row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
|
||||
.copy-row code { flex: 1; padding: 5px 8px; }
|
||||
|
||||
/* ---------------------------------------------------------------- bare pages (watch, message) */
|
||||
body.bare { min-height: 100vh; }
|
||||
.message { max-width: 520px; margin: 18vh auto; padding: 20px; text-align: center; }
|
||||
.message .brand-mark { margin: 0 auto 16px; }
|
||||
.watch-head { display: flex; gap: 14px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
|
||||
.watch-head .brand-mark { margin: 0; }
|
||||
.watch-head h1 { font-size: 20px; }
|
||||
.watch-main { max-width: 1200px; margin: 18px auto; padding: 0 16px; }
|
||||
|
||||
|
||||
.player .osd { position: absolute; top: 12px; right: 14px; font: 600 22px var(--mono); color: #fff; background: #000a; padding: 6px 12px; border-radius: 3px; opacity: 0; transition: opacity .25s; pointer-events: none; text-shadow: 0 1px 2px #000; }
|
||||
.player .osd.show { opacity: 1; }
|
||||
.player:fullscreen { border: 0; border-radius: 0; }
|
||||
|
||||
/* ---------------------------------------------------------------- live charts */
|
||||
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
|
||||
.section-head h2 { font-size: 14px; }
|
||||
.chart-card { position: relative; padding: 12px 14px 10px; }
|
||||
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
|
||||
.chart-vals { display: flex; gap: 12px; flex-wrap: wrap; font: 11px var(--mono); color: var(--muted); }
|
||||
.chart-vals b { color: var(--text); font-weight: 600; }
|
||||
.chart-vals .cv i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
|
||||
.chart { width: 100%; height: 92px; display: block; overflow: visible; }
|
||||
.chart .g { stroke: var(--row-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
|
||||
.chart .ln { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
|
||||
.chart .area { opacity: .12; stroke: none; }
|
||||
.chart rect { opacity: .85; }
|
||||
.chart .cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
|
||||
.chart-scale { position: absolute; right: 16px; top: 36px; bottom: 26px; display: flex; flex-direction: column; justify-content: space-between; font: 9px var(--mono); color: var(--subtle); pointer-events: none; text-align: right; }
|
||||
.chart-hover { min-height: 14px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.tuner-charts { margin-top: 4px; }
|
||||
.tuner-charts .chart-card { background: var(--panel2); }
|
||||
.player .overlay .hint { max-width: 560px; margin-top: 8px; font-size: 12px; color: #ddd; text-align: center; line-height: 1.45; }
|
||||
.player .overlay .btn { margin-top: 10px; }
|
||||
|
||||
/* ---------------------------------------------------------------- channel filters */
|
||||
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 0 12px; border-bottom: 1px solid var(--row-line); margin-bottom: 8px; }
|
||||
.filters input:not([type]) { width: 200px; }
|
||||
.filters select { width: auto; }
|
||||
.filters .check { font-size: 12px; white-space: nowrap; }
|
||||
.filters .spacer { flex: 1; }
|
||||
tr.off td { opacity: .55; }
|
||||
tr.off td:last-child, tr.off td:nth-last-child(2), tr.off td:nth-last-child(3) { opacity: 1; }
|
||||
|
||||
/* ---------------------------------------------------------------- logs */
|
||||
.log-view { max-height: calc(100vh - 300px); min-height: 320px; white-space: normal; padding: 4px 0; }
|
||||
.log-line { display: grid; grid-template-columns: 150px 46px 120px 1fr auto; gap: 10px; padding: 2px 10px; border-bottom: 1px solid var(--row-line); align-items: baseline; }
|
||||
.log-line:hover { background: var(--panel2); }
|
||||
.log-ts { color: var(--subtle); white-space: nowrap; }
|
||||
.log-lv { font-weight: 600; color: var(--muted); }
|
||||
.log-cat { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.log-msg { white-space: pre-wrap; word-break: break-word; color: var(--text); }
|
||||
.log-target { color: var(--subtle); font-size: 10px; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
|
||||
.lv-warn .log-lv { color: var(--yellow); }
|
||||
.lv-error .log-lv, .lv-error .log-msg { color: var(--red); }
|
||||
.lv-debug .log-msg { color: var(--muted); }
|
||||
#log-cats button .pill { margin-left: 2px; padding: 0 5px; }
|
||||
@media (max-width: 900px) { .log-line { grid-template-columns: 1fr; gap: 0; } .log-target { display: none; } }
|
||||
|
||||
/* ---------------------------------------------------------------- recording schedule */
|
||||
.sched-day { margin: 14px 0; }
|
||||
.sched-head { font-size: 13px; margin-bottom: 4px; }
|
||||
.sched-grid { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2);
|
||||
background-image: repeating-linear-gradient(90deg, var(--row-line) 0 1px, transparent 1px calc(100% / 24)); }
|
||||
.sched-tick { position: absolute; top: 1px; font: 9px var(--mono); color: var(--subtle); transform: translateX(3px); }
|
||||
.sched-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
|
||||
.sched-bar { position: absolute; height: 22px; line-height: 22px; padding: 0 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
||||
border-radius: 3px; background: color-mix(in srgb, var(--c) 28%, transparent); border-left: 3px solid var(--c); color: var(--text); }
|
||||
.sched-bar.live { box-shadow: 0 0 0 1px var(--red) inset; }
|
||||
.sched-bar.conflict { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--red) 35%, transparent) 0 6px, color-mix(in srgb, var(--red) 15%, transparent) 6px 12px); border-left-color: var(--red); }
|
||||
tr.row-warn td { background: color-mix(in srgb, var(--red) 8%, transparent); }
|
||||
@@ -0,0 +1,40 @@
|
||||
/* ---------------------------------------------------------------- personalizacja */
|
||||
html[data-density=compact] .view { padding: 12px 12px 30px; }
|
||||
html[data-density=compact] .panel { padding: 8px 10px; }
|
||||
html[data-density=compact] td { padding: 4px 6px; }
|
||||
html[data-density=compact] .btn { min-height: 24px; padding: 3px 9px; }
|
||||
html[data-density=compact] .ch-item { padding: 4px 8px; }
|
||||
html[data-density=compact] .page-head { margin-bottom: 10px; }
|
||||
html[data-density=compact] .page-head h1 { font-size: 22px; }
|
||||
html[data-density=compact] .stat .value { font-size: 22px; margin-top: 4px; }
|
||||
html[data-density=compact] .grid { gap: 8px; }
|
||||
html[data-sidebar=pinned] .sidebar { width: 190px; }
|
||||
html[data-sidebar=pinned] .sidebar a span { display: inline; }
|
||||
html[data-sidebar=pinned] .main { margin-left: 190px; }
|
||||
html[data-sidebar=pinned] .sidebar:hover { box-shadow: none; }
|
||||
html[data-motion=off] *:not(.spinner) { transition: none !important; animation: none !important; }
|
||||
.hide-logos .ch-item { grid-template-columns: 28px 1fr; }
|
||||
.hide-logos .ch-item .logo, .hide-logos .ch-item .logo-ph { display: none; }
|
||||
.hide-progress .ch-item .meter { display: none; }
|
||||
.clock { font: 12px var(--mono); color: var(--text); padding: 0 8px; letter-spacing: .04em; }
|
||||
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
|
||||
.seg button { background: var(--panel); color: var(--muted); border: 0; border-right: 1px solid var(--line); padding: 4px 9px; font: 11px var(--mono); cursor: pointer; min-height: 26px; }
|
||||
.seg button:last-child { border-right: 0; }
|
||||
.seg button.on { background: var(--nav-active-bg); color: var(--accent); }
|
||||
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
|
||||
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
|
||||
.pref-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--row-line); }
|
||||
.pref-row:last-child { border-bottom: 0; }
|
||||
.pref-row > span { color: var(--muted); font: 11px var(--mono); letter-spacing: .03em; }
|
||||
@media (max-width: 860px) {
|
||||
html[data-sidebar=pinned] .main { margin-left: 52px; }
|
||||
html[data-sidebar=pinned] .sidebar { width: 52px; }
|
||||
html[data-sidebar=pinned] .sidebar a span { display: none; }
|
||||
.pref-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* language picker (one option per langs/*.json pack) */
|
||||
.lang-select { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); font: 11px var(--mono); min-height: 28px; padding: 3px 6px; cursor: pointer; max-width: 220px; }
|
||||
.lang-select:hover, .lang-select:focus { color: var(--text); border-color: var(--accent); outline: none; }
|
||||
#lang-switch .lang-select { width: auto; }
|
||||
@@ -0,0 +1,12 @@
|
||||
/* ---------------------------------------------------------------- responsive */
|
||||
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
|
||||
@media (max-width: 860px) {
|
||||
.tv { grid-template-columns: 1fr; }
|
||||
.tv-list { max-height: 40vh; order: 2; }
|
||||
.g2, .g3, .g4 { grid-template-columns: 1fr; }
|
||||
.view { padding: 12px; }
|
||||
.who { display: none; }
|
||||
.epg-ch, .epg-head .corner { width: 110px; flex-basis: 110px; }
|
||||
.epg-ch .logo, .epg-ch .logo-ph { display: none; }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user