Compare commits
2 commits
884a18e8ef
...
b8a68c63db
| Author | SHA1 | Date | |
|---|---|---|---|
| b8a68c63db | |||
| 33ca682709 |
5 changed files with 131 additions and 59 deletions
|
|
@ -1077,8 +1077,8 @@
|
|||
'#tab-feeds .fd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 14px; }',
|
||||
'#tab-feeds .fd-seg { display: flex; border: 1px solid var(--border, #2a2a2a); border-radius: 6px; overflow: hidden; }',
|
||||
'#tab-feeds .fd-seg button { background: none; border: none; color: inherit; font: inherit; padding: 9px 14px; cursor: pointer; }',
|
||||
'#tab-feeds .fd-seg button.on { background: var(--accent, #e63946); color: #fff; }',
|
||||
'#tab-feeds .fd-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,0.18); font-size: 11px; text-align: center; }',
|
||||
'#tab-feeds .fd-seg button.on { background: var(--accent, #e63946); color: var(--on-accent, #fff); }',
|
||||
'#tab-feeds .fd-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--raised, rgba(255,255,255,0.18)); font-size: 11px; text-align: center; }',
|
||||
'#tab-feeds .fd-actions { display: flex; gap: 4px; }',
|
||||
'.fd-icon { background: none; border: none; color: inherit; font: inherit; font-size: 20px; min-width: 40px; min-height: 40px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }',
|
||||
'.fd-icon.on { color: var(--accent, #e63946); }',
|
||||
|
|
@ -1089,7 +1089,7 @@
|
|||
'#tab-feeds .fd-empty { text-align: center; padding: 40px 0; }',
|
||||
'#tab-feeds h3 { margin: 18px 0 6px; font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--nui-muted, #9a9a9a); }',
|
||||
'#tab-feeds h3 small { font-size: 11px; }',
|
||||
'#tab-feeds .fd-brief { border: 1px solid var(--border, #2a2a2a); border-radius: 6px; padding: 12px 14px 14px; margin-bottom: 18px; background: #0b0b0b; }',
|
||||
'#tab-feeds .fd-brief { border: 1px solid var(--border, #2a2a2a); border-radius: 6px; padding: 12px 14px 14px; margin-bottom: 18px; background: var(--card, #0b0b0b); box-shadow: var(--shadow, none); }',
|
||||
'#tab-feeds .fd-brief-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }',
|
||||
'#tab-feeds .fd-brief-head h2 { margin: 0; font-size: 16px; color: var(--accent, #e63946); }',
|
||||
'#tab-feeds .fd-seen { width: 100%; margin-top: 14px; min-height: 42px; }',
|
||||
|
|
@ -1098,7 +1098,7 @@
|
|||
'#tab-feeds .fd-row-title { font-size: 14px; line-height: 1.35; }',
|
||||
'.fd-row-meta { font-size: 12px; font-weight: 400; color: var(--nui-muted, #9a9a9a); }',
|
||||
'#tab-feeds .fd-more-src { color: var(--accent, #e63946); }',
|
||||
'#tab-feeds .fd-badge { flex: none; min-width: 26px; height: 26px; border-radius: 13px; background: var(--accent, #e63946); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }',
|
||||
'#tab-feeds .fd-badge { flex: none; min-width: 26px; height: 26px; border-radius: 13px; background: var(--accent, #e63946); color: var(--on-accent, #fff); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }',
|
||||
'#tab-feeds .fd-link { background: none; border: none; color: var(--nui-muted, #9a9a9a); font: inherit; font-size: 12px; padding: 8px 0; cursor: pointer; }',
|
||||
'#tab-feeds .fd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; align-items: center; }',
|
||||
// The reports of a story: one row that scrolls sideways, however many there are.
|
||||
|
|
@ -1114,16 +1114,16 @@
|
|||
'.fd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #e63946); margin-right: 6px; vertical-align: middle; }',
|
||||
'#tab-feeds .fd-modes .fd-chip { font-size: 12px; padding: 5px 10px; }',
|
||||
'#tab-feeds .fd-blogbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }',
|
||||
'#tab-feeds .fd-new { display: inline-block; padding: 1px 5px; border-radius: 3px; background: var(--accent, #e63946); color: #fff; font-size: 10px; letter-spacing: 0.05em; vertical-align: 2px; }',
|
||||
'#tab-feeds .fd-new { display: inline-block; padding: 1px 5px; border-radius: 3px; background: var(--accent, #e63946); color: var(--on-accent, #fff); font-size: 10px; letter-spacing: 0.05em; vertical-align: 2px; }',
|
||||
'#tab-feeds .fd-hidden { opacity: 0.6; }',
|
||||
'#tab-feeds .fd-prog { display: block; height: 3px; margin-top: 4px; background: #2a2a2a; border-radius: 2px; overflow: hidden; }',
|
||||
'#tab-feeds .fd-prog { display: block; height: 3px; margin-top: 4px; background: var(--raised, #2a2a2a); border-radius: 2px; overflow: hidden; }',
|
||||
'#tab-feeds .fd-prog > span { display: block; height: 100%; background: var(--accent, #e63946); }',
|
||||
'#tab-feeds .fd-folders { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }',
|
||||
'#tab-feeds .fd-folders legend { font-size: 12px; color: var(--nui-muted, #9a9a9a); margin-bottom: 4px; }',
|
||||
'#tab-feeds .fd-folders input[name=newfolder] { flex-basis: 100%; }',
|
||||
'#tab-feeds .fd-folder-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border, #2a2a2a); flex-wrap: wrap; }',
|
||||
'#fd-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 995; background: rgba(0,0,0,0.5); display: flex; align-items: flex-end; justify-content: center; }',
|
||||
'#fd-sheet .fd-sheet-box { width: 100%; max-width: 480px; background: var(--bg, #000); border: 1px solid var(--border, #2a2a2a); border-bottom: none; border-radius: 10px 10px 0 0; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }',
|
||||
'#fd-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 995; background: var(--scrim, rgba(0,0,0,0.5)); display: flex; align-items: flex-end; justify-content: center; }',
|
||||
'#fd-sheet .fd-sheet-box { width: 100%; max-width: 480px; background: var(--panel, #000); border: 1px solid var(--border, #2a2a2a); border-bottom: none; border-radius: 10px 10px 0 0; padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); }',
|
||||
'#fd-sheet .fd-sheet-title { padding: 10px 18px; font-size: 13px; color: var(--nui-muted, #9a9a9a); }',
|
||||
'#fd-sheet button { display: block; width: 100%; padding: 14px 18px; background: none; border: none; color: var(--fg, #fff); font: inherit; text-align: left; cursor: pointer; }',
|
||||
'body.eink #tab-feeds .fd-prog > span { background: #000; }',
|
||||
|
|
@ -1132,7 +1132,7 @@
|
|||
'body.eink #tab-feeds .fd-new, body.eink .fd-dot { background: #000; }',
|
||||
'#tab-feeds .fd-day { margin-top: 16px; }',
|
||||
'#tab-feeds .fd-card { display: flex; gap: 12px; width: 100%; padding: 12px 0; background: none; border: none; border-bottom: 1px solid var(--border, #2a2a2a); color: inherit; font: inherit; text-align: left; cursor: pointer; }',
|
||||
'#tab-feeds .fd-thumb { width: 92px; height: 66px; flex: none; object-fit: cover; border-radius: 4px; background: #1a1a1a; order: 2; }',
|
||||
'#tab-feeds .fd-thumb { width: 92px; height: 66px; flex: none; object-fit: cover; border-radius: 4px; background: var(--raised, #1a1a1a); order: 2; }',
|
||||
'#tab-feeds .fd-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }',
|
||||
'#tab-feeds .fd-card-title { font-size: 15px; font-weight: 700; line-height: 1.35; }',
|
||||
'#tab-feeds .fd-card-sum { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--nui-muted, #bdbdbd); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }',
|
||||
|
|
@ -1172,14 +1172,14 @@
|
|||
'#fd-article .fd-art-body a { color: var(--accent, #e63946); }',
|
||||
'#fd-article .fd-art-body figure { margin: 12px 0; }',
|
||||
'#fd-article .fd-art-body figcaption { font-size: 0.8em; color: var(--nui-muted, #9a9a9a); }',
|
||||
'#fd-article .fd-art-body blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--border, #444); }',
|
||||
'#fd-article .fd-art-body blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--border-strong, #444); }',
|
||||
'#fd-article .fd-art-body pre { white-space: pre-wrap; font-size: 0.85em; }',
|
||||
'#fd-article .fd-art-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.85em; }',
|
||||
'#fd-article .fd-art-body td, #fd-article .fd-art-body th { border: 1px solid var(--border, #333); padding: 4px 6px; }',
|
||||
'#fd-article .fd-sources { font-family: var(--font); }',
|
||||
'#fd-article .fd-art-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 28px; font-family: var(--font); }',
|
||||
'html.fd-reading #nui-dock { display: none; }',
|
||||
'@media (hover: hover) { #tab-feeds .fd-card:hover, #tab-feeds .fd-row:hover, #tab-feeds .fd-post:hover, #tab-feeds .fd-src:hover { background: #111; } }',
|
||||
'@media (hover: hover) { #tab-feeds .fd-card:hover, #tab-feeds .fd-row:hover, #tab-feeds .fd-post:hover, #tab-feeds .fd-src:hover { background: var(--hover, #111); } }',
|
||||
// Bright pages and e-ink: black on white, no grey boxes, no thumbnails to flicker.
|
||||
'body.bright-bg #tab-feeds .fd-brief, body.eink #tab-feeds .fd-brief { background: #fff; }',
|
||||
'body.eink #tab-feeds .fd-thumb { display: none; }',
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* diora service worker — caches the app shell for offline use.
|
||||
*/
|
||||
|
||||
const CACHE = 'diora-v102';
|
||||
const CACHE = 'diora-v103';
|
||||
const SHELL = [
|
||||
'/static/css/app.css',
|
||||
'/static/js/app.js',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Copied from diora-android 5821dfa 2026-10-12: web-native/static/native-podcast.js
|
||||
// Copied from diora-android 6a02899 2026-10-14: web-native/static/native-podcast.js
|
||||
// by tools/sync_podcast_ui.py. Do not edit here: change it in diora-android
|
||||
// and copy again. The browser host is static/js/podcasts-web.js.
|
||||
|
||||
|
|
@ -198,7 +198,6 @@
|
|||
return d.getFullYear() === now.getFullYear() ? dm : dm + String(d.getFullYear() % 100).padStart(2, '0');
|
||||
}
|
||||
|
||||
let toastTimer = 0;
|
||||
function toast(text) {
|
||||
let t = $id('nui-radio-toast');
|
||||
if (!t) {
|
||||
|
|
@ -208,8 +207,9 @@
|
|||
}
|
||||
t.textContent = text;
|
||||
t.classList.add('nui-show');
|
||||
clearTimeout(toastTimer);
|
||||
toastTimer = setTimeout(() => t.classList.remove('nui-show'), 2600);
|
||||
// The element is shared (radio and podcasts): so is its timer, or one hides the other's text early.
|
||||
clearTimeout(t.nuiTimer);
|
||||
t.nuiTimer = setTimeout(() => t.classList.remove('nui-show'), 2600);
|
||||
}
|
||||
|
||||
// Feed titles sometimes arrive with HTML entities still in them (&).
|
||||
|
|
@ -2801,20 +2801,32 @@
|
|||
const text = el('button', 'nui-mini-text');
|
||||
text.type = 'button';
|
||||
text.append(el('span', 'nui-mini-station'), el('span', 'nui-mini-track'));
|
||||
text.addEventListener('click', () => (miniKind === 'ambient' ? showTab('ambient')
|
||||
text.addEventListener('click', () => (miniKind === 'tts' ? ttsShowBook()
|
||||
: miniKind === 'ambient' ? showTab('ambient')
|
||||
: miniKind === 'radio' ? openRadioPlayer() : openPlayer()));
|
||||
const devices = button('⇄', 'Wiedergabe auf …', deviceMenu, 'nui-mini-devices');
|
||||
const here = button('⇩', 'Hier abspielen', takeOver, 'nui-mini-here');
|
||||
devices.hidden = here.hidden = true;
|
||||
const tts = (sign, label, fn, cls) => {
|
||||
const b = button(sign, label, () => { const t = window.__dioraTts; if (t) fn(t); }, 'nui-tts-btn ' + cls);
|
||||
b.hidden = true;
|
||||
return b;
|
||||
};
|
||||
mini.append(art('', 'mini'), text,
|
||||
tts('⏮︎', 'Voriger Satz', t => t.prev(), 'nui-tts-prev'),
|
||||
button('↺', '15 s zurück', () => (miniKind === 'remote'
|
||||
? remoteCmd('skip', -(devicePrefs().skip_back || 15)) : N.podcastSkip(false)), 'nui-pod-skip'),
|
||||
button('☆', 'Sender speichern', () => window.__dioraRadioSave && window.__dioraRadioSave(), 'nui-mini-save'),
|
||||
devices, here,
|
||||
button('▶', 'Abspielen', () => (miniKind === 'remote' ? remoteToggle()
|
||||
: miniKind === 'tts' ? window.__dioraTts && window.__dioraTts.toggle()
|
||||
: miniKind === 'ambient' ? ambientToggle()
|
||||
: miniKind === 'radio' ? window.__dioraRadioToggle && window.__dioraRadioToggle() : N.podcastToggle()), 'nui-mini-toggle'));
|
||||
: miniKind === 'radio' ? window.__dioraRadioToggle && window.__dioraRadioToggle() : N.podcastToggle()), 'nui-mini-toggle'),
|
||||
tts('⏭︎', 'Nächster Satz', t => t.next(), 'nui-tts-next'),
|
||||
tts('■', 'Vorlesen beenden', t => t.stop(), 'nui-tts-stop'));
|
||||
dock.prepend(mini);
|
||||
// Read-aloud uses this bar; app.js leaves out its own (.tts-bar).
|
||||
window.__dioraTtsDock = true;
|
||||
// One player for podcasts and radio: the radio's own bar steps aside.
|
||||
document.documentElement.classList.add('nui-one-player');
|
||||
|
||||
|
|
@ -2881,11 +2893,57 @@
|
|||
t.title = a.playing ? 'Ambient stoppen' : 'Ambient abspielen';
|
||||
const box = mini.querySelector('.nui-pod-art');
|
||||
setArt(box, '');
|
||||
const ttsArt = box.querySelector('.nui-tts-art');
|
||||
if (ttsArt) ttsArt.remove();
|
||||
if (!box.querySelector('.nui-amb-art')) { box.textContent = ''; box.append(el('span', 'nui-pod-initial nui-amb-art', '∿')); }
|
||||
mini.querySelector('.nui-pod-mini-bar span').style.width = a.playing ? '100%' : '0';
|
||||
return true;
|
||||
}
|
||||
|
||||
// Read-aloud (app.js, window.__dioraTts; on Android with the device's voice) has the bar
|
||||
// while it runs: the book, the chapter, sentence back / pause / sentence on / stop.
|
||||
function ttsState() {
|
||||
try { return window.__dioraTts ? window.__dioraTts.state() : null; } catch (e) { return null; }
|
||||
}
|
||||
|
||||
function ttsButtons(on) {
|
||||
if (!mini) return;
|
||||
mini.querySelectorAll('.nui-tts-btn').forEach(b => { b.hidden = !on; });
|
||||
}
|
||||
|
||||
// A tap on the text: back to the book that's being read, if it isn't open.
|
||||
function ttsShowBook() {
|
||||
const s = ttsState();
|
||||
if (s && s.bookId && typeof openBook === 'function' && (typeof currentBookId === 'undefined' || currentBookId !== s.bookId)) openBook(s.bookId);
|
||||
}
|
||||
|
||||
function renderTtsMini() {
|
||||
const s = ttsState();
|
||||
document.documentElement.classList.toggle('nui-tts-on', !!(s && s.active));
|
||||
if (!mini || !s || !s.active) return false;
|
||||
miniKind = 'tts';
|
||||
document.documentElement.classList.remove('nui-pod-playing');
|
||||
document.documentElement.classList.add('nui-pod-mini-open');
|
||||
mini.hidden = false;
|
||||
mini.classList.add('nui-mini-radio');
|
||||
mini.classList.remove('nui-mini-remote');
|
||||
for (const c of ['.nui-pod-skip', '.nui-mini-save', '.nui-mini-devices', '.nui-mini-here']) mini.querySelector(c).hidden = true;
|
||||
ttsButtons(true);
|
||||
mini.querySelector('.nui-mini-station').textContent = s.title || 'Vorlesen';
|
||||
mini.querySelector('.nui-mini-track').textContent = (s.paused ? 'Angehalten' : 'Vorlesen') + (s.chapter ? ' · ' + s.chapter : '');
|
||||
const t = mini.querySelector('.nui-mini-toggle');
|
||||
t.textContent = s.paused ? '▶' : '❚❚';
|
||||
t.title = s.paused ? 'Weiterlesen' : 'Pause';
|
||||
const box = mini.querySelector('.nui-pod-art');
|
||||
setArt(box, '');
|
||||
const amb = box.querySelector('.nui-amb-art');
|
||||
if (amb) amb.remove();
|
||||
if (!box.querySelector('.nui-tts-art')) { box.textContent = ''; box.append(el('span', 'nui-pod-initial nui-tts-art', '❝')); }
|
||||
mini.querySelector('.nui-pod-mini-bar span').style.width = typeof s.progress === 'number' ? Math.min(100, s.progress * 100) + '%' : '0';
|
||||
return true;
|
||||
}
|
||||
window.addEventListener('diora-tts', () => renderMini());
|
||||
|
||||
// The bar names a running sleep timer: "… · ☾ 12 min".
|
||||
function sleepSuffix() {
|
||||
const l = sleepLabel();
|
||||
|
|
@ -2916,12 +2974,14 @@
|
|||
|
||||
function renderMini() {
|
||||
renderAmbientSleep();
|
||||
if (renderTtsMini()) return;
|
||||
ttsButtons(false);
|
||||
if (renderAmbientMini()) return;
|
||||
const r = remote();
|
||||
const isPod = player.kind === 'podcast';
|
||||
document.documentElement.classList.toggle('nui-pod-playing', isPod || !!r);
|
||||
if (!mini) return;
|
||||
const ambArt = mini.querySelector('.nui-amb-art');
|
||||
const ambArt = mini.querySelector('.nui-amb-art, .nui-tts-art');
|
||||
if (ambArt) ambArt.remove();
|
||||
const radio = isPod || r ? null : radioNow();
|
||||
miniKind = r ? 'remote' : isPod ? 'podcast' : radio ? 'radio' : '';
|
||||
|
|
@ -4453,9 +4513,11 @@
|
|||
if (closeDownloads()) return true;
|
||||
if (closeNotes()) return true;
|
||||
if (closePlayer()) return true;
|
||||
if (typeof _currentTopTab !== 'undefined' && _currentTopTab === 'podcasts' && stopSelecting()) return true;
|
||||
if (back && back()) return true;
|
||||
if (typeof _currentTopTab !== 'undefined' && _currentTopTab === 'podcasts') {
|
||||
const onPodcasts = typeof _currentTopTab !== 'undefined' && _currentTopTab === 'podcasts';
|
||||
if (onPodcasts && stopSelecting()) return true;
|
||||
// The tab's own pages go back one by one, before the next handler: that one would
|
||||
// leave the tab for Home (native-radio.js). A menu or dialog on top closes first.
|
||||
if (onPodcasts && !somethingOnTop()) {
|
||||
if (closePreview()) return true;
|
||||
if (feedView) { feedView = null; render(); return true; }
|
||||
// From the search back to the list it was opened from.
|
||||
|
|
@ -4465,12 +4527,22 @@
|
|||
render();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (back && back()) return true;
|
||||
if (onPodcasts) {
|
||||
showTab('books');
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
// A menu, dialog or note sheet over the page (native-ui.js, app.js's modal).
|
||||
function somethingOnTop() {
|
||||
if (document.querySelector('#nui-sheet, .nui-backdrop, .note-bottom-sheet')) return true;
|
||||
const modal = $id('modal-dialog');
|
||||
return !!modal && getComputedStyle(modal).display !== 'none';
|
||||
}
|
||||
|
||||
// A swipe waiting for „Rückgängig“ is done when the page goes away.
|
||||
document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'hidden') commitSwipe(); });
|
||||
window.addEventListener('pagehide', commitSwipe);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Copied from diora-android 5821dfa 2026-10-12: the podcast parts of web-native/static/native.css
|
||||
/* Copied from diora-android 88b4842 2026-10-14: the podcast parts of web-native/static/native.css
|
||||
(bottom sheet, podcasts) by tools/sync_podcast_ui.py. Do not edit here.
|
||||
The web's own additions are in podcasts-web.css. */
|
||||
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
.nui-backdrop {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
background: var(--scrim, rgba(0, 0, 0, 0.6));
|
||||
}
|
||||
|
||||
.nui-panel {
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
.nui-row:active,
|
||||
.nui-row-main:active {
|
||||
background: #1d1d1d;
|
||||
background: var(--hover, #1d1d1d);
|
||||
}
|
||||
|
||||
.nui-row-icon {
|
||||
|
|
@ -183,15 +183,15 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
min-width: 18px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 9px;
|
||||
background: #2a2a2a;
|
||||
color: #ddd;
|
||||
background: var(--raised, #2a2a2a);
|
||||
color: var(--fg, #ddd);
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
text-align: center;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.nui-pod-count-queue { background: var(--accent); color: #fff; }
|
||||
.nui-pod-count-queue { background: var(--accent); color: var(--on-accent, #fff); }
|
||||
|
||||
.nui-pod-summary { padding: 6px 2px 10px; font-size: 12px; color: var(--nui-muted); }
|
||||
.nui-pod-empty { padding: 32px 12px; color: var(--nui-muted); text-align: center; line-height: 1.5; font-family: var(--nui-sans); letter-spacing: normal; font-weight: 400; font-size: 14px; }
|
||||
|
|
@ -207,7 +207,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
background: var(--bg);
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
.nui-pod-row:active { background: #141414; }
|
||||
.nui-pod-row:active { background: var(--hover, #141414); }
|
||||
.nui-pod-row.nui-pod-played .nui-pod-title { color: var(--nui-muted); font-weight: 400; }
|
||||
.nui-pod-row.nui-pod-gone { display: none; }
|
||||
.nui-pod-row.nui-pod-current .nui-pod-title { color: var(--accent); }
|
||||
|
|
@ -219,13 +219,13 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
height: 46px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: #1c1c1c;
|
||||
background: var(--raised, #1c1c1c);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
/* No cover anywhere: the podcast's initial on a neutral tile. */
|
||||
.nui-pod-initial { font-size: 20px; font-weight: 700; color: #6a6a6a; line-height: 1; }
|
||||
.nui-pod-initial { font-size: 20px; font-weight: 700; color: var(--muted, #6a6a6a); line-height: 1; }
|
||||
.nui-pod-art-big .nui-pod-initial { font-size: 30px; }
|
||||
.nui-pod-art-player .nui-pod-initial { font-size: 96px; }
|
||||
.nui-pod-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
|
|
@ -257,7 +257,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.nui-pod-progress { height: 3px; margin-top: 2px; border-radius: 2px; background: #2a2a2a; overflow: hidden; max-width: 160px; }
|
||||
.nui-pod-progress { height: 3px; margin-top: 2px; border-radius: 2px; background: var(--raised, #2a2a2a); overflow: hidden; max-width: 160px; }
|
||||
.nui-pod-progress > span { display: block; height: 100%; background: var(--accent); }
|
||||
.nui-pod-badge {
|
||||
flex: none;
|
||||
|
|
@ -289,7 +289,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
transition: none;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
background: #1a1a1a;
|
||||
background: var(--raised, #1a1a1a);
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
|
||||
|
|
@ -314,7 +314,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
}
|
||||
#nui-pod-mini[hidden] { display: none; }
|
||||
#nui-pod-mini [hidden] { display: none !important; }
|
||||
.nui-pod-mini-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #2a2a2a; }
|
||||
.nui-pod-mini-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--raised, #2a2a2a); }
|
||||
.nui-pod-mini-bar span { display: block; height: 100%; background: var(--accent); }
|
||||
.nui-pod-skip { font-size: 20px; }
|
||||
|
||||
|
|
@ -323,7 +323,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 880;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
background: var(--scrim, rgba(0, 0, 0, 0.6));
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
|
@ -331,7 +331,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
width: 100%;
|
||||
max-height: 100%;
|
||||
overflow-y: auto;
|
||||
background: #0b0b0b;
|
||||
background: var(--panel, #0b0b0b);
|
||||
border-top: 1px solid var(--border);
|
||||
border-radius: 14px 14px 0 0;
|
||||
padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
|
||||
|
|
@ -354,7 +354,7 @@ html.nui-one-player #nui-mini { display: none !important; }
|
|||
height: 72px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent) !important;
|
||||
color: #fff !important;
|
||||
color: var(--on-accent, #fff) !important;
|
||||
font-size: 26px !important;
|
||||
}
|
||||
.nui-pod-extra { display: flex; justify-content: space-around; }
|
||||
|
|
@ -431,7 +431,7 @@ body.eink .nui-pod-selbar { background: #fff; }
|
|||
font-size: 13px;
|
||||
}
|
||||
.nui-pod-chip strong { color: inherit; font-weight: 700; }
|
||||
.nui-pod-chip.on { border-color: #8a8a8a; color: var(--fg, #fff); font-weight: 700; }
|
||||
.nui-pod-chip.on { border-color: var(--border-strong, #8a8a8a); color: var(--fg, #fff); font-weight: 700; }
|
||||
.nui-pod-sleep { font-size: 15px !important; white-space: nowrap; }
|
||||
.nui-pod-sleep.on { color: var(--accent) !important; font-weight: 700; }
|
||||
body.eink .nui-pod-chip.on { border-color: #000; }
|
||||
|
|
@ -470,7 +470,7 @@ body.eink .nui-pod-sleep.on { color: #000 !important; }
|
|||
.nui-pod-chapter.current .nui-pod-chapter-t { color: var(--accent); }
|
||||
.nui-pod-notes { font-family: var(--nui-sans); font-size: 14.5px; font-weight: 400; letter-spacing: normal; line-height: 1.55; overflow-wrap: anywhere; }
|
||||
.nui-pod-notes img { max-width: 100%; height: auto; }
|
||||
.nui-pod-notes a { color: inherit; text-decoration: underline; text-decoration-color: #777; }
|
||||
.nui-pod-notes a { color: inherit; text-decoration: underline; text-decoration-color: var(--muted, #777); }
|
||||
.nui-pod-notes .nui-pod-stamp { font-weight: 700; text-decoration: none; border-bottom: 1px dotted currentColor; }
|
||||
.nui-pod-notes table { display: block; overflow-x: auto; }
|
||||
.nui-pod-notes-sheet .nui-pod-player-panel { max-height: 88%; }
|
||||
|
|
@ -480,7 +480,7 @@ body.eink .nui-pod-sleep.on { color: #000 !important; }
|
|||
.nui-pod-ephead { display: flex; align-items: flex-start; gap: 12px; }
|
||||
.nui-pod-ephead .nui-pod-art-big { width: 88px; height: 88px; border-radius: 6px; flex: none; }
|
||||
.nui-pod-ephead .nui-pod-player-title { text-align: left; font-size: 17px; }
|
||||
.nui-pod-eplink { align-self: flex-start; border: none; background: none; padding: 4px 0; color: var(--nui-muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #555; }
|
||||
.nui-pod-eplink { align-self: flex-start; border: none; background: none; padding: 4px 0; color: var(--nui-muted); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong, #555); }
|
||||
.nui-pod-epplay { align-self: stretch; font-size: 16px; font-weight: 700; }
|
||||
.nui-pod-epactions { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
|
||||
.nui-pod-epact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 4px; border: 1px solid var(--border); border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 12.5px; line-height: 1.2; text-align: center; cursor: pointer; }
|
||||
|
|
@ -527,7 +527,7 @@ body.eink .nui-pod-subtab.active { border-bottom-color: #000; color: #000; }
|
|||
color: var(--nui-muted);
|
||||
background:
|
||||
radial-gradient(closest-side, var(--bg) 78%, transparent 80% 100%),
|
||||
conic-gradient(#d0d0d0 var(--p, 0%), #2a2a2a 0);
|
||||
conic-gradient(var(--muted, #d0d0d0) var(--p, 0%), var(--raised, #2a2a2a) 0);
|
||||
}
|
||||
body.eink .nui-pod-dl-done { color: #000; }
|
||||
body.eink .nui-pod-dl-done::after { border-color: #000; }
|
||||
|
|
@ -548,7 +548,7 @@ body.eink .nui-pod-dl-ring > span {
|
|||
.nui-pod-dls-head .btn { min-width: 0 !important; padding: 0 14px; font-size: 15px !important; }
|
||||
.nui-pod-dls-sec { margin-top: 10px; padding: 4px 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nui-muted); border-bottom: 1px solid var(--border); }
|
||||
.nui-pod-dlrow { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--border); -webkit-tap-highlight-color: transparent; }
|
||||
.nui-pod-dlrow:active { background: #141414; }
|
||||
.nui-pod-dlrow:active { background: var(--hover, #141414); }
|
||||
.nui-pod-dlrow .nui-pod-title { font-size: 14px; -webkit-line-clamp: 1; }
|
||||
.nui-pod-dlrow .nui-icon { font-size: 18px; color: var(--nui-muted); }
|
||||
.nui-pod-dlrow-failed .nui-pod-dlstatus { color: var(--yellow); }
|
||||
|
|
@ -584,7 +584,7 @@ body.eink .nui-pod-star, body.eink .nui-pod-fav.on { color: #000 !important; }
|
|||
.nui-pod-feederr-box { padding: 8px 10px; margin: 4px 0 8px; border: 1px solid var(--yellow); border-radius: 6px; line-height: 1.4; }
|
||||
.nui-pod-transcript { max-height: 60vh; overflow-y: auto; padding-right: 4px; }
|
||||
.nui-pod-seg { margin: 0; padding: 6px 4px; font-family: var(--nui-sans); letter-spacing: normal; font-weight: 400; font-size: 14.5px; line-height: 1.5; color: var(--nui-muted); border-radius: 4px; cursor: pointer; }
|
||||
.nui-pod-seg.current { color: inherit; background: #1a1a1a; }
|
||||
.nui-pod-seg.current { color: inherit; background: var(--raised, #1a1a1a); }
|
||||
.nui-pod-speaker { color: inherit; }
|
||||
body.eink .nui-pod-feederr { color: #000; }
|
||||
body.eink .nui-pod-feederr-box { border-color: #000; }
|
||||
|
|
@ -602,7 +602,7 @@ body.eink .nui-pod-seg.current { color: #000; background: #e6e6e6; }
|
|||
.nui-pod-facts { font-weight: 400; display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 10px 0 4px; font-size: 14px; }
|
||||
.nui-pod-facts dt { color: var(--nui-muted); }
|
||||
.nui-pod-facts dd { margin: 0; min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
|
||||
.nui-pod-facts a { color: inherit; text-decoration: underline; text-decoration-color: #777; }
|
||||
.nui-pod-facts a { color: inherit; text-decoration: underline; text-decoration-color: var(--muted, #777); }
|
||||
.nui-pod-info-url { display: block; font-size: 12px; color: var(--nui-muted); }
|
||||
.nui-pod-info-actions { display: flex; gap: 8px; margin-top: 6px; }
|
||||
.nui-pod-info-actions .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
|
||||
|
|
@ -625,20 +625,20 @@ body.eink .nui-pod-facts a { color: #000; text-decoration: underline; }
|
|||
margin-right: 5px;
|
||||
vertical-align: -2px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #8a8a8a;
|
||||
border: 1px solid var(--border-strong, #8a8a8a);
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
color: #cfcfcf;
|
||||
color: var(--muted, #cfcfcf);
|
||||
}
|
||||
.nui-pod-dlmark-done { background: #3a3a3a; border-color: #3a3a3a; color: #fff; }
|
||||
.nui-pod-dlmark-done { background: var(--raised, #3a3a3a); border-color: var(--raised, #3a3a3a); color: var(--fg, #fff); }
|
||||
.nui-pod-dlmark-failed { border-color: var(--yellow); color: var(--yellow); }
|
||||
.nui-pod-dlmark-queued,
|
||||
.nui-pod-dlmark-downloading {
|
||||
border: none;
|
||||
background:
|
||||
radial-gradient(closest-side, var(--bg) 62%, transparent 66% 100%),
|
||||
conic-gradient(#d0d0d0 var(--p, 0%), #3a3a3a 0);
|
||||
conic-gradient(var(--muted, #d0d0d0) var(--p, 0%), var(--raised, #3a3a3a) 0);
|
||||
}
|
||||
.nui-pod-queued { font-size: 18px !important; }
|
||||
|
||||
|
|
@ -655,13 +655,13 @@ body.eink .nui-pod-facts a { color: #000; text-decoration: underline; }
|
|||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 14px;
|
||||
background: #161616;
|
||||
background: var(--hover, #161616);
|
||||
color: var(--nui-muted);
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
.nui-pod-swipebg.armed { background: #2c2c2c; color: var(--fg, #fff); }
|
||||
.nui-pod-swipebg.armed { background: var(--raised, #2c2c2c); color: var(--fg, #fff); }
|
||||
/* Behind the row: the icon, under it the action in bold and what it means for this episode
|
||||
(narrow, so it shows whole by the time the swipe is armed). */
|
||||
.nui-pod-swipe-l, .nui-pod-swipe-r { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
|
||||
|
|
@ -814,7 +814,7 @@ body.eink .nui-pod-facts a { text-decoration-color: #000; }
|
|||
.nui-usage-table th { text-align: right; font-weight: 400; color: var(--nui-muted, #9a9a9a); padding: 2px 0 6px; }
|
||||
.nui-usage-table td { padding: 7px 0; border-top: 1px solid var(--border, #2a2a2a); vertical-align: top; }
|
||||
.nui-usage-table td + td { text-align: right; white-space: nowrap; padding-left: 10px; }
|
||||
.nui-usage-bar { display: block; height: 3px; margin-top: 4px; background: #2a2a2a; border-radius: 2px; overflow: hidden; }
|
||||
.nui-usage-bar { display: block; height: 3px; margin-top: 4px; background: var(--raised, #2a2a2a); border-radius: 2px; overflow: hidden; }
|
||||
.nui-usage-bar > span { display: block; height: 100%; background: var(--accent, #e63946); }
|
||||
.nui-usage-note { font-size: 12px; color: var(--nui-muted, #9a9a9a); margin: 10px 0 0; }
|
||||
body.eink .nui-usage-bar > span { background: #000; }
|
||||
|
|
@ -837,7 +837,7 @@ html.nui-sidebar #nui-tabbar {
|
|||
width: var(--nui-rail-w);
|
||||
flex-direction: column;
|
||||
padding: 18px 0 12px;
|
||||
background: #0b0b0b;
|
||||
background: var(--panel, #0b0b0b);
|
||||
border-right: 1px solid var(--border);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
|
@ -852,7 +852,7 @@ html.nui-sidebar #nui-tabbar button {
|
|||
text-align: left;
|
||||
}
|
||||
html.nui-sidebar #nui-tabbar .nui-tab-icon { width: 22px; text-align: center; font-size: 19px; }
|
||||
html.nui-sidebar #nui-tabbar button.nui-active { background: #181818; box-shadow: inset 3px 0 0 var(--accent); }
|
||||
html.nui-sidebar #nui-tabbar button.nui-active { background: var(--hover, #181818); box-shadow: inset 3px 0 0 var(--accent); }
|
||||
html.nui-sidebar .nui-rail-brand {
|
||||
display: block;
|
||||
padding: 0 22px 18px;
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@
|
|||
|
||||
html.dpw {
|
||||
--nui-tap: 44px;
|
||||
--nui-muted: #9a9a9a;
|
||||
--nui-panel: #111;
|
||||
--dpw-surface: #0b0b0b;
|
||||
--dpw-hover: #111;
|
||||
--nui-muted: var(--muted, #9a9a9a);
|
||||
--nui-panel: var(--panel, #111);
|
||||
--dpw-surface: var(--card, #0b0b0b);
|
||||
--dpw-hover: var(--hover, #111);
|
||||
--dpw-col: 760px;
|
||||
}
|
||||
|
||||
|
|
@ -170,12 +170,12 @@ html.dpw.nui-pod-mini-open:not(.dpw-in-bar) #nui-pod-undo { bottom: calc(var(--d
|
|||
@media (hover: hover) {
|
||||
html.dpw #nui-pod .nui-pod-row { cursor: pointer; }
|
||||
html.dpw #nui-pod .nui-pod-row:hover { background: var(--dpw-hover); }
|
||||
html.dpw .nui-row:hover { background: #1a1a1a; }
|
||||
html.dpw .nui-row:hover { background: var(--hover, #1a1a1a); }
|
||||
html.dpw .nui-pod-chip:hover,
|
||||
html.dpw .nui-pod-tab:hover,
|
||||
html.dpw .nui-pod-subtab:hover { color: var(--fg); }
|
||||
html.dpw .nui-pod-chapter:hover,
|
||||
html.dpw .nui-pod-seg:hover { background: #141414; }
|
||||
html.dpw .nui-pod-seg:hover { background: var(--hover, #141414); }
|
||||
}
|
||||
html.dpw .nui-row,
|
||||
html.dpw .nui-pod-tab,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue