Files
simply-dvb/web/css/40-pages.css
T
Mateusz Gruszczyński c30064b531
build / test (push) Canceled after 0s
build / deb (amd64) (push) Canceled after 0s
build / deb (arm64) (push) Canceled after 0s
build / deb (armhf) (push) Canceled after 0s
first commit
2026-11-16 16:19:21 +01:00

142 lines
12 KiB
CSS

/* ---------------------------------------------------------------- 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); }