mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 05:11:10 +00:00
Adds book reading support with EPUB and PDF reader plugins
This commit is contained in:
1 parent
275fd83ff2
commit
f7ccdf3d1c
271 files changed
+11501
-361
No files matched your search
@@ -17,7 +17,7 @@ body {
|
||||
.no-underline {
|
||||
text-decoration: none !important;
|
||||
}
|
||||
/* Margins */
|
||||
/* Margins. */
|
||||
.mt-0 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ body {
|
||||
.ml-10 {
|
||||
margin-left: 10px;
|
||||
}
|
||||
/* Paddings */
|
||||
/* Paddings. */
|
||||
.pt-0 {
|
||||
padding-top: 0px;
|
||||
}
|
||||
@@ -369,7 +369,7 @@ body {
|
||||
.pl-10 {
|
||||
padding-left: 10px;
|
||||
}
|
||||
/* Widths (1 to 10, then 5 by 5 until 100) */
|
||||
/* Widths (1 to 10, then 5 by 5 until 100). */
|
||||
.w-0px {
|
||||
width: 0px;
|
||||
}
|
||||
@@ -550,7 +550,7 @@ body {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
/* Heights (1 to 10, then 5 by 5 until 100) */
|
||||
/* Heights (1 to 10, then 5 by 5 until 100). */
|
||||
.h-0px {
|
||||
height: 0px;
|
||||
}
|
||||
@@ -779,7 +779,7 @@ body {
|
||||
height: 250px;
|
||||
}
|
||||
|
||||
/* Widths percentage */
|
||||
/* Widths percentage. */
|
||||
.w-1 {
|
||||
width: 1%;
|
||||
}
|
||||
@@ -891,7 +891,7 @@ body {
|
||||
.w-100 {
|
||||
width: 100%;
|
||||
}
|
||||
/* Heights (1 to 10, then 5 by 5 until 100) */
|
||||
/* Heights (1 to 10, then 5 by 5 until 100). */
|
||||
.h-1 {
|
||||
height: 1%;
|
||||
}
|
||||
@@ -1122,3 +1122,69 @@ body {
|
||||
.h-align-r {
|
||||
margin-left: auto !important;
|
||||
}
|
||||
|
||||
/* Book reader. */
|
||||
.reader-root {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.reader-toolbar {
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid var(--color-border, #444);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.reader-toolbar #reader-title {
|
||||
margin-left: 10px;
|
||||
font-size: 1.1rem;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.reader-toc {
|
||||
flex: 0 0 auto;
|
||||
max-height: 40%;
|
||||
overflow: auto;
|
||||
padding: 10px 20px;
|
||||
border-bottom: 1px solid var(--color-border, #444);
|
||||
}
|
||||
|
||||
.reader-toc ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
.reader-toc > ul {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.reader-toc a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.reader-content {
|
||||
flex: 1 1 auto;
|
||||
overflow-y: auto;
|
||||
padding: 24px 32px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.reader-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.reader-content p {
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
Reference in new issue
Block a user