Introduce a new eBook reader with support for EPUB, MOBI, AZW3, and FB2 formats (#2258)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-15 20:39:52 -07:00
committed by GitHub
co-authored by acx10
parent 775887b55f
commit 8c35f2415c
107 changed files with 13351 additions and 1733 deletions
@@ -0,0 +1,120 @@
.reader {
width: 100vw;
height: 100dvh;
overflow: hidden;
position: fixed;
top: 0;
left: 0;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
.reader-content {
position: relative;
flex: 1;
overflow: hidden;
width: 100%;
height: 100%;
}
.navigation-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
cursor: pointer;
pointer-events: auto;
background: transparent;
}
#foliate-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
pointer-events: auto;
}
::ng-deep foliate-view {
width: 100% !important;
height: 100% !important;
display: block !important;
position: absolute !important;
top: 0 !important;
left: 0 !important;
}
.loader-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.loader-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.spinner {
width: 48px;
height: 48px;
border: 4px solid rgba(255, 255, 255, 0.2);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.loader-text {
color: #fff;
font-size: 1.1rem;
margin: 0;
font-weight: 500;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
foliate-view::part(head) {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
font-size: 0.875rem;
color: var(--text-secondary, #666);
border-bottom: 1px solid var(--border-color, #e0e0e0);
font-family: inherit;
min-height: 32px;
box-sizing: border-box;
}
foliate-view::part(foot) {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 16px;
font-size: 0.875rem;
color: var(--text-secondary, #666);
border-top: 1px solid var(--border-color, #e0e0e0);
font-family: inherit;
min-height: 32px;
box-sizing: border-box;
}