File size: 16,461 Bytes
4d7e26e
 
 
 
 
 
8644ef8
 
 
4d7e26e
 
 
 
 
 
 
 
 
8554abc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f0913ee
 
 
 
8f72ba1
8554abc
8f72ba1
 
 
 
8554abc
 
 
 
f0913ee
8554abc
 
 
 
 
 
 
 
4d7e26e
 
 
 
 
8554abc
 
 
 
 
8f72ba1
 
 
8554abc
 
 
4d7e26e
 
3e4fad5
dffc0ca
 
 
4d7e26e
3e4fad5
4d7e26e
 
 
8554abc
3e4fad5
dbfea4d
 
 
3e4fad5
 
4d7e26e
 
 
aad704f
cd245c2
aad704f
3e4fad5
aac63b8
aad704f
 
 
 
8554abc
 
 
 
 
 
 
 
 
8f72ba1
 
8554abc
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #111315; color: #eceff1; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.reader-toolbar { min-height: 44px; flex: none; display: flex; align-items: center; gap: 7px; padding: 3px 10px; background: #1b1e21; border-bottom: 1px solid #34383d; }
.reader-heading { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.reader-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 18px; }
.reader-heading span, .reader-path { color: #9ba3aa; font-size: 12px; line-height: 16px; }
.reader-path { min-width: 0; max-width: 100%; padding: 0; border: 0; background: transparent; font-family: inherit; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.reader-path:hover, .reader-path:focus-visible { color: #d5d9dc; text-decoration: underline; outline: none; }
.reader-actions { display: flex; align-items: center; gap: 4px; }
.control-group { display: inline-flex; align-items: center; gap: 2px; }
.control-group[hidden] { display: none; }
.compact-input { height: 32px; display: inline-flex; align-items: center; border: 1px solid #3b4147; background: #25292d; border-radius: 4px; padding-right: 4px; color: #c6ccd1; font-size: 12px; }
.compact-input input { width: 34px; height: 28px; border: 0; background: transparent; color: inherit; text-align: right; font: inherit; outline: none; }
.icon-button { width: 32px; height: 32px; border: 0; background: transparent; color: inherit; display: inline-grid; place-items: center; text-decoration: none; cursor: pointer; border-radius: 4px; font-size: 18px; }
.text-button { height: 32px; padding: 0 8px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; text-decoration: none; border-radius: 4px; font-size: 12px; }
.text-button[hidden] { display: none; }
.icon-button:hover, .text-button:hover { background: #292d31; }
.reader-panel { position: fixed; top: 44px; right: 0; bottom: 0; width: min(400px, 94vw); z-index: 20; display: flex; flex-direction: column; background: #1b1e21; border-left: 1px solid #34383d; box-shadow: -5px 0 20px #0008; opacity: 0; visibility: hidden; transform: translateX(100%); transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 180ms ease, visibility 0s linear 240ms; }
.reader-panel.is-open { opacity: 1; visibility: visible; transform: translateX(0); transition-delay: 0s; }
.reader-panel[hidden], .reader-panel-view[hidden], .panel-search[hidden], .panel-item[hidden] { display: none; }
.reader-panel > header { height: 48px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 12px; border-bottom: 1px solid #34383d; }
.reader-panel > header > strong { min-width: 0; flex: 1; font-size: 14px; }
.reader-panel-tabs { flex: none; display: flex; border-bottom: 1px solid #34383d; }
.reader-panel-tabs button { flex: 1; min-height: 38px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #aeb5ba; cursor: pointer; }
.reader-panel-tabs button[aria-selected="true"] { color: #e7e9eb; border-bottom-color: #8ab4f8; }
.reader-panel-view { min-height: 0; flex: 1; overflow: auto; }
.panel-view-header { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; }
.panel-view-header > span { display: flex; align-items: center; gap: 3px; }
#history-view .panel-view-header > span .text-action, #bookmarks-panel .panel-view-header > span .text-action { min-height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 2px; line-height: 1; transform: none; }
.panel-search-toggle { width: auto; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 2px; font-size: 12px; line-height: 1; transform: translateY(-1px); }
.panel-search-toggle::after { content: none; }
.panel-search { width: calc(100% - 24px); height: 34px; max-height: 0; margin: 0 12px; padding: 0 9px; border: 1px solid #464c52; border-radius: 4px; background: #25292d; color: #e7e9eb; opacity: 0; transform: translateY(-6px); transition: max-height 180ms ease, margin-bottom 180ms ease, opacity 140ms ease, transform 180ms ease; }
.panel-search.is-open { max-height: 34px; margin-bottom: 8px; opacity: 1; transform: translateY(0); }
.panel-list { padding-bottom: 12px; }
.panel-empty { padding: 28px 12px; color: #929aa1; text-align: center; }
.media-panel-content { display: grid; gap: 14px; padding: 24px 16px; text-align: center; }
.media-panel-time { font-variant-numeric: tabular-nums; font-size: 24px; }
.media-panel-content { display: grid; gap: 14px; padding: 24px 16px; text-align: center; }
.media-panel-time { font-variant-numeric: tabular-nums; font-size: 24px; }
.panel-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 8px; width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-bottom: 1px solid #2d3237; background: transparent; color: inherit; text-align: left; }
.panel-item-main { min-width: 0; border: 0; padding: 0; background: transparent; color: #e5e9ec; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.panel-item > .panel-item-main { grid-column: 1; grid-row: 1; }
.panel-item > .panel-item-edit { grid-column: 2; grid-row: 1; }
.panel-item > .panel-item-remove { grid-column: 3; grid-row: 1; }
.panel-item > small { grid-column: 1 / -1; }
.panel-item small { color: #929aa1; }
.bookmark-excerpt { grid-column: 1 / -1; margin: 2px 0 0; color: #b8bec3; font-size: 12px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.search-match { padding: 0; background: #f0c75e; color: #1d2023; }
.panel-item-remove, .text-action { border: 0; background: transparent; color: #aeb5ba; cursor: pointer; }
.panel-item-edit { border: 0; background: transparent; color: #aeb5ba; cursor: pointer; }
.toc-item { padding-left: calc(12px + var(--toc-depth, 0) * 16px); }
.toc-item .panel-item-main { user-select: text; }
.reader-panel > footer { flex: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid #34383d; }
.theme-toggle { min-height: 34px; padding: 0 10px; border: 1px solid #464c52; border-radius: 4px; background: #25292d; color: inherit; cursor: pointer; }
.reader-theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reader-theme-toggle.is-changing svg { animation: reader-theme-icon 260ms cubic-bezier(.2, .8, .2, 1); }
@keyframes reader-theme-icon { from { opacity: 0; transform: rotate(-35deg) scale(.72); } to { opacity: 1; transform: rotate(0) scale(1); } }
#history-close { font-family: Arial, sans-serif; font-size: 22px; line-height: 1; transform: translateY(-1px); }
.history-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px; border-bottom: 1px solid #2d3237; }
.history-item a { color: #e5e9ec; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item small { color: #929aa1; }
.history-item button { grid-row: 1 / 3; grid-column: 2; border: 0; background: transparent; color: #b5bbc0; cursor: pointer; }
.reader-viewport { min-height: 0; flex: 1; overflow: auto; background: #121416; }
:root.bookmark-dialog-open .reader-viewport { overflow: hidden; }
.bookmark-ribbon { position: fixed; z-index: 12; top: 44px; left: max(10px, calc((100vw - min(100vw, 1100px)) / 2 + 2px)); width: 28px; height: 42px; padding: 0; border: 0; background: #b64b50; box-shadow: 0 2px 8px #0006; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
.bookmark-ribbon:hover, .bookmark-ribbon:focus-visible { background: #d35b61; outline: 2px solid #8ab4f8; outline-offset: 2px; }
.bookmark-popover { position: fixed; z-index: 22; top: 92px; left: 10px; width: min(300px, calc(100vw - 20px)); padding: 12px; border: 1px solid #464c52; border-radius: 6px; background: #25292d; box-shadow: 0 6px 20px #0009; }
.bookmark-popover #bookmark-prompt { display: block; line-height: 1.5; }
.bookmark-edit-fields { display: grid; gap: 8px; max-width: 100%; margin-top: 10px; }
.bookmark-edit-fields label { display: grid; gap: 4px; min-width: 0; color: #b8bec3; font-size: 12px; }
.bookmark-edit-fields input, .bookmark-edit-fields textarea { display: block; width: 100%; max-width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid #464c52; border-radius: 4px; background: #1b1e21; color: inherit; font: inherit; resize: vertical; }
.bookmark-popover #bookmark-prompt small { display: -webkit-box; margin-top: 8px; overflow: hidden; color: #b8bec3; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bookmark-popover > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.bookmark-popover button { min-height: 32px; padding: 0 10px; border: 1px solid #555c63; border-radius: 4px; background: #30353a; color: inherit; cursor: pointer; }
.loading-status { display: none; color: #aeb5ba; font-size: 13px; text-align: center; padding: 12px; }
.loading-status[hidden] { display: none; }
.reader-content { --reader-zoom: 1; width: min(100%, 1100px); margin: 0 auto; padding: 20px; }
.reader-loading-indicator { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #9ba3aa; font-size: 13px; }
.reader-loading-spinner { width: 24px; height: 24px; border: 2px solid #3b4147; border-top-color: #8ab4f8; border-radius: 50%; animation: reader-loading-spin 800ms linear infinite; }
@keyframes reader-loading-spin { to { transform: rotate(360deg); } }
.reader-page { position: relative; margin: 0 auto 18px; background: white; box-shadow: 0 2px 14px #0008; min-height: 160px; }
.reader-content[data-mode="pdf"] .reader-page { width: calc(100% * var(--reader-zoom)); }
.reader-page canvas { display: block; width: 100%; height: auto; }
.reader-page canvas { position: relative; opacity: 0; transition: opacity 120ms ease; }
.reader-page canvas.ready { opacity: 1; }
.reader-pdf-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: pre-wrap; border: 0; }
.reader-image { display: block; width: calc(100% * var(--reader-zoom)); max-width: none; height: auto; margin: 0 auto; background: #fff; }
.reader-content[data-mode="audio"], .reader-content[data-mode="video"] { width: 100%; height: 100%; padding: 0; display: grid; place-items: center; }
.reader-audio { display: block; width: min(720px, calc(100% - 32px)); }
.reader-video { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 44px); object-fit: contain; background: #000; }
.reader-text { margin: 0 auto; max-width: 76ch; white-space: pre-wrap; overflow-wrap: anywhere; font: calc(17px * var(--reader-zoom))/1.8 ui-monospace, monospace; color: #e7e9eb; }
.reader-markdown { margin: 0 auto; max-width: 76ch; font-size: calc(17px * var(--reader-zoom)); line-height: 1.75; }
.reader-markdown img { max-width: 100%; }
.reader-markdown a { color: #72a7df; }
.reader-error { margin: 20vh auto; max-width: 560px; color: #d7dadd; text-align: center; line-height: 1.6; }
.epub-frame { width: 100%; height: calc(100vh - 96px); background: #181b1e; }
.html-frame { display: block; width: 100%; height: calc(100vh - 96px); border: 0; background: white; color-scheme: only light; }
.docx-body { overflow-x: auto; color: #e7e9eb; }
.docx-body .reader-docx-wrapper { background: transparent; padding: 0; zoom: var(--reader-zoom); }
.docx-body .reader-docx-wrapper > section.reader-docx { margin: 0 auto 18px; box-shadow: 0 2px 14px #0008; }
.docx-body.reader-document-dark .reader-docx { background: #181b1e !important; color: #e7e9eb !important; }
.docx-body.reader-document-dark .reader-docx :is(p, div, span, li, td, th, blockquote, pre, code, h1, h2, h3, h4, h5, h6) { color: inherit !important; border-color: #4a5056 !important; }
.docx-body.reader-document-dark .reader-docx :is(table, pre, code, blockquote) { background-color: #202428 !important; }
.docx-body.reader-document-dark .reader-docx a { color: #8ab4e8 !important; }
:root[data-theme="light"] { color-scheme: light; background: #f4f5f6; color: #202124; }
:root[data-theme="light"] .reader-toolbar, :root[data-theme="light"] .reader-panel { background: #fff; border-color: #d7dadd; }
:root[data-theme="light"] .reader-viewport { background: #e9ecef; }
:root[data-theme="light"] .reader-toolbar, :root[data-theme="light"] .reader-panel-tabs, :root[data-theme="light"] .reader-panel > header, :root[data-theme="light"] .reader-panel > footer { border-color: #d7dadd; }
:root[data-theme="light"] .reader-panel-tabs button, :root[data-theme="light"] .panel-item small { color: #5f666c; }
:root[data-theme="light"] .reader-panel-tabs button[aria-selected="true"], :root[data-theme="light"] .panel-item-main { color: #202124; }
:root[data-theme="light"] .panel-item { border-color: #e0e3e5; }
:root[data-theme="light"] .bookmark-excerpt { color: #535a60; }
:root[data-theme="light"] .bookmark-popover #bookmark-prompt small { color: #535a60; }
:root[data-theme="light"] .bookmark-edit-fields label { color: #535a60; }
:root[data-theme="light"] .bookmark-edit-fields input, :root[data-theme="light"] .bookmark-edit-fields textarea { background: #f3f5f6; border-color: #c7ccd0; color: #202124; }
:root[data-theme="light"] .panel-search, :root[data-theme="light"] .theme-toggle, :root[data-theme="light"] .bookmark-popover { background: #fff; border-color: #c7ccd0; color: #202124; }
:root[data-theme="light"] .compact-input { background: #f3f5f6; border-color: #c7ccd0; color: #202124; }
:root[data-theme="light"] .icon-button:hover, :root[data-theme="light"] .text-button:hover { background: #e7eaed; }
:root[data-theme="light"] .icon-button:active, :root[data-theme="light"] .text-button:active { background: #dce1e5; }
:root[data-theme="light"] .bookmark-popover button { background: #f3f5f6; border-color: #c7ccd0; color: #202124; }
:root[data-theme="light"] .reader-text, :root[data-theme="light"] .reader-markdown, :root[data-theme="light"] .docx-body { color: #202124; }
:root[data-theme="light"] .docx-body .reader-docx { background: #fff !important; color: #202124 !important; }
:root.theme-transition, :root.theme-transition body, :root.theme-transition .reader-toolbar, :root.theme-transition .reader-panel, :root.theme-transition .reader-viewport, :root.theme-transition .compact-input, :root.theme-transition .panel-search, :root.theme-transition .bookmark-popover, :root.theme-transition .bookmark-popover button, :root.theme-transition .reader-text, :root.theme-transition .reader-markdown, :root.theme-transition .docx-body, :root.theme-transition .docx-body .reader-docx { transition: background-color 260ms ease, color 260ms ease, border-color 260ms ease; }
@media (prefers-reduced-motion: reduce) { .reader-panel, .panel-search, .reader-page canvas, :root.theme-transition, :root.theme-transition *, .reader-theme-toggle.is-changing svg { transition-duration: 0s !important; animation-duration: 0s !important; } .reader-loading-spinner { animation: none; border-top-color: #3b4147; } }
@media (max-width: 600px) { .zoom-controls .compact-input input { width: 38px; } .panel-search-toggle { width: auto; min-width: 42px; } }
@media (max-width: 600px) { .reader-toolbar { min-height: 36px; gap: 1px; padding: 2px 5px; } .reader-content { padding: 10px; } .reader-heading { display: none; } .reader-actions { flex: 1; justify-content: flex-end; gap: 1px; min-width: 0; } .reader-actions .control-group { gap: 0; } .reader-actions .icon-button { width: 26px; } .reader-actions .text-button { height: 30px; padding: 0 3px; } .loading-status { display: block; padding: 10px 6px 0; } .icon-button { width: 26px; height: 30px; flex: none; } .compact-input { height: 30px; padding-right: 3px; font-size: 11px; } .compact-input input { width: 24px; height: 28px; } .zoom-controls .compact-input input { width: 32px; } .reader-panel { top: 36px; } .bookmark-ribbon { top: 36px; left: 4px; width: 24px; height: 36px; } .bookmark-popover { top: 78px; } }