Files
adminandClaude Opus 5.5 a2ac4b18cb Restore dejaview from the copy installed in ReaderJS
The GitHub repository (github.com/Alpaq92/dejaview) is gone with the suspended
account. These are the files npm installed for ReaderJS from commit
ae7aed28a7e9f1ef9658d421471ffb66336ada09, so this is that commit's packaged content, without its history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 16:26:50 +01:00

200 lines
6.4 KiB
CSS

:root {
--bg: #525659;
--panel: #3a3a3a;
--panel2: #2e3033;
--fg: #f0f1f2;
--muted: #adb1b5;
--accent: #1e88e5;
--accent-soft: #90caf9;
--page-area: #525659;
--hl: rgba(255, 214, 0, 0.45);
--hl-active: rgba(255, 145, 0, 0.6);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
background: var(--bg);
color: var(--fg);
font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
overflow: hidden;
}
#toolbar {
display: flex;
align-items: center;
gap: 4px;
padding: 8px 12px;
background: var(--panel);
border-bottom: 1px solid #0006;
flex-wrap: wrap;
}
.group { display: flex; align-items: center; gap: 4px; }
.group.grow { flex: 1; min-width: 220px; }
.group:not(:first-child) { padding-left: 8px; border-left: 1px solid #565a5e; }
button {
background: transparent;
color: var(--fg);
border: none;
border-radius: 3px;
padding: 6px 9px;
min-height: 30px;
cursor: pointer;
font: inherit;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.1s;
user-select: none;
}
button:hover:not(:disabled) { background: #666; }
button:active:not(:disabled) { background: #555; }
button:disabled { opacity: 0.35; cursor: default; }
input[type="number"], input[type="search"] {
background: var(--panel2);
color: var(--fg);
border: 1px solid #565a5e;
border-radius: 3px;
padding: 5px 8px;
font: inherit;
}
input[type="number"]:focus, input[type="search"]:focus { outline: none; border-color: var(--accent); }
input::placeholder { color: var(--muted); }
input[type="number"] { width: 52px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type="search"] { flex: 1; }
#zoomLabel, #pageCount { color: var(--muted); min-width: 38px; text-align: center; }
#searchInfo { color: var(--muted); white-space: nowrap; }
#body { display: flex; height: calc(100% - 49px); }
#thumbs {
width: 180px;
background: var(--panel);
overflow-y: auto;
padding: 10px;
display: flex;
flex-direction: column;
gap: 10px;
border-right: 1px solid #00000040;
}
#thumbs.hidden { display: none; }
.thumb {
background: #fff;
border: 2px solid transparent;
border-radius: 3px;
cursor: pointer;
width: 100%;
display: block;
}
.thumb.active { border-color: var(--accent); }
.thumb-wrap { text-align: center; color: var(--muted); font-size: 12px; }
/* Thin, theme-matching scrollbars instead of the chunky stepper-arrow OS bars. */
#viewport, #thumbs { scrollbar-width: thin; scrollbar-color: #707682 transparent; }
#viewport::-webkit-scrollbar, #thumbs::-webkit-scrollbar { width: 12px; height: 12px; }
#viewport::-webkit-scrollbar-track, #thumbs::-webkit-scrollbar-track { background: transparent; }
#viewport::-webkit-scrollbar-thumb, #thumbs::-webkit-scrollbar-thumb {
background: #707682; background-clip: content-box;
border: 3px solid transparent; border-radius: 7px;
}
#viewport::-webkit-scrollbar-thumb:hover, #thumbs::-webkit-scrollbar-thumb:hover {
background: #8c939d; background-clip: content-box;
}
#viewport::-webkit-scrollbar-button, #thumbs::-webkit-scrollbar-button { width: 0; height: 0; display: none; }
#viewport::-webkit-scrollbar-corner, #thumbs::-webkit-scrollbar-corner { background: transparent; }
#viewport {
flex: 1;
overflow: auto;
background: var(--page-area);
display: flex;
padding: 24px;
}
/* margin:auto centres the page on both axes (equal top/bottom & left/right
margins) yet collapses to 0 when the page is larger than the viewport, so the
top stays reachable when zoomed in — unlike align-items:center, which clips. */
#stage { position: relative; line-height: 0; box-shadow: 0 4px 24px #00000060; margin: auto; }
#viewport:not(.has-doc) #stage { display: none; }
#page { display: block; background: #fff; }
#textLayer {
position: absolute;
inset: 0;
overflow: hidden;
line-height: 1;
}
#textLayer span {
position: absolute;
color: transparent;
white-space: pre;
cursor: text;
transform-origin: 0 0;
user-select: text;
}
#textLayer span::selection { background: rgba(30, 136, 229, 0.4); }
#highlights { position: absolute; inset: 0; pointer-events: none; }
#highlights div { position: absolute; background: var(--hl); border-radius: 2px; }
#highlights div.active { background: var(--hl-active); }
#dropHint {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--muted);
padding: 24px;
}
#openZone {
width: min(640px, 100%);
border: 2px dashed #6b7078;
border-radius: 14px;
padding: 44px 32px;
background: #ffffff05;
transition: border-color 0.15s, background 0.15s;
}
.cloud-icon { width: 60px; height: 60px; color: var(--accent-soft); }
#dropHint h1 { color: var(--fg); margin: 14px 0 4px; font-size: 23px; font-weight: 600; }
#dropHint .sub { font-size: 14px; margin: 0 0 22px; }
#dropHint .sub code { background: #00000040; padding: 1px 6px; border-radius: 4px; color: var(--fg); }
.linkbtn {
background: none; border: none; color: var(--accent-soft); cursor: pointer;
font: inherit; padding: 0; min-height: 0; text-decoration: underline;
}
.linkbtn:hover:not(:disabled) { background: none; color: #fff; }
.formats { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 0 auto 22px; max-width: 460px; }
.fmt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; color: #fff; padding: 4px 11px; border-radius: 6px; }
.fmt.b1 { background: #1e88e5; } .fmt.b2 { background: #7e57c2; } .fmt.b3 { background: #f4511e; }
.fmt.b4 { background: #e53935; } .fmt.b5 { background: #43a047; } .fmt.b6 { background: #00897b; }
.fmt.b7 { background: #fb8c00; } .fmt.b8 { background: #d81b60; }
#dropHint .powered { font-size: 12px; color: var(--muted); margin: 0; }
#viewport.has-doc #dropHint { display: none; }
#viewport.drag-over #openZone { border-color: var(--accent); background: rgba(30, 136, 229, 0.08); }
body:not(.has-doc) #toolbar { display: none; }
body:not(.has-doc) #body { height: 100%; }
#status {
position: fixed;
bottom: 12px;
left: 50%;
transform: translateX(-50%);
background: #000000c0;
color: #fff;
padding: 8px 16px;
border-radius: 8px;
font-size: 13px;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
}
#status.show { opacity: 1; }