mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 21:04:49 -04:00
Enable reading from the ToC and single-page reading
This commit is contained in:
parent
8bb93e0d6b
commit
262e86c625
12 changed files with 226 additions and 35 deletions
|
@ -889,6 +889,14 @@ time{
|
|||
background-image: url("/images/distributed-proofreaders.svg");
|
||||
}
|
||||
|
||||
.list::before{
|
||||
background-image: url("/images/list.svg");
|
||||
}
|
||||
|
||||
.page::before{
|
||||
background-image: url("/images/page.svg");
|
||||
}
|
||||
|
||||
article.ebook h1{
|
||||
border: none;
|
||||
margin: 0;
|
||||
|
|
42
www/css/web.css
Normal file
42
www/css/web.css
Normal file
|
@ -0,0 +1,42 @@
|
|||
@namespace epub "http://www.idpf.org/2007/ops";
|
||||
|
||||
body{
|
||||
padding: 0 3em;
|
||||
margin: 3em auto;
|
||||
max-width: 60ch;
|
||||
}
|
||||
|
||||
section + section,
|
||||
section + article,
|
||||
article + section,
|
||||
article + article{
|
||||
margin-top: 6em;
|
||||
}
|
||||
|
||||
nav[epub|type~="toc"] ol{
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@media(prefers-color-scheme: dark){
|
||||
body{
|
||||
background: #222222;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* These three link colors provide WCAG AAA compliance at 16px */
|
||||
a:link{
|
||||
color: #6bb9f0;
|
||||
}
|
||||
|
||||
a:active{
|
||||
color: #e6cc22;
|
||||
}
|
||||
|
||||
a:visited{
|
||||
color: #dda0dd;
|
||||
}
|
||||
|
||||
img[epub|type~="se:color-depth.black-on-transparent"]{
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue