Enable reading from the ToC and single-page reading

This commit is contained in:
Alex Cabal 2020-10-11 13:39:32 -05:00
parent 8bb93e0d6b
commit 262e86c625
12 changed files with 226 additions and 35 deletions

View file

@ -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
View 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);
}
}