2016-02-27 14:51:11 +01:00
|
|
|
/* The nav element corresponding to the navigation menu */
|
2016-02-25 02:23:34 +01:00
|
|
|
nav {
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 20%;
|
|
|
|
overflow-y: auto;
|
|
|
|
font-size: 80%;
|
|
|
|
margin-left: 0;
|
2016-02-27 14:51:11 +01:00
|
|
|
background: black;
|
|
|
|
color: white;
|
2016-02-25 02:23:34 +01:00
|
|
|
}
|
2016-02-27 14:51:11 +01:00
|
|
|
|
|
|
|
#nav code {
|
|
|
|
background-color: transparent;
|
2016-02-25 02:23:34 +01:00
|
|
|
}
|
2016-03-07 15:19:09 +01:00
|
|
|
|
2016-02-27 14:51:11 +01:00
|
|
|
#nav a:link {
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
2016-02-25 02:23:34 +01:00
|
|
|
}
|
2016-02-25 15:29:35 +01:00
|
|
|
|
2016-02-27 14:51:11 +01:00
|
|
|
#nav a:visited {
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav h2 {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav li {
|
|
|
|
list-style-type: none;
|
|
|
|
text-indent: -1em;
|
2016-02-25 15:29:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#nav li:before {
|
|
|
|
content: none;
|
|
|
|
}
|
2016-03-07 15:19:09 +01:00
|
|
|
|
2016-02-25 02:23:34 +01:00
|
|
|
#nav ul {
|
|
|
|
padding-right: 1em;
|
2016-02-27 14:51:11 +01:00
|
|
|
padding-left: 1.5em;
|
2016-02-25 02:23:34 +01:00
|
|
|
}
|
2016-02-27 14:51:11 +01:00
|
|
|
|
|
|
|
/* The menu containing the button to display the navigation bar */
|
2016-02-25 02:23:34 +01:00
|
|
|
#menu {
|
|
|
|
position: fixed;
|
|
|
|
top: 0em;
|
|
|
|
left: 1em;
|
|
|
|
transition: left 1s;
|
|
|
|
}
|
2016-03-15 17:02:07 +01:00
|
|
|
|
2016-03-15 20:46:14 +01:00
|
|
|
#menu img {
|
2016-03-22 17:20:59 +01:00
|
|
|
opacity: 0.5;
|
2016-03-15 20:46:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#menu img:hover {
|
|
|
|
opacity: 1.0;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2016-02-25 02:23:34 +01:00
|
|
|
#menu-button {
|
2016-03-15 20:46:14 +01:00
|
|
|
height: 1.5em;
|
2016-02-25 05:57:30 +01:00
|
|
|
padding: 0.5em;
|
2016-02-25 02:23:34 +01:00
|
|
|
}
|
|
|
|
|
2016-03-15 17:02:07 +01:00
|
|
|
#book-button {
|
|
|
|
width: 1.5em;
|
|
|
|
padding: 0.5em;
|
|
|
|
}
|
|
|
|
|
2016-02-27 14:51:11 +01:00
|
|
|
/* Hide navigation bar */
|
2016-02-25 02:23:34 +01:00
|
|
|
#nav {
|
|
|
|
left: -20%;
|
|
|
|
transition: left 1s;
|
2016-02-27 14:51:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* The main content of the book */
|
|
|
|
#content {
|
2016-03-06 02:35:11 +01:00
|
|
|
/* position: absolute;*/
|
2016-02-27 14:51:11 +01:00
|
|
|
overflow-y: auto;
|
|
|
|
margin-left: 10%;
|
|
|
|
margin-right: 10%;
|
|
|
|
transition: margin-left 1s;
|
2016-03-05 23:10:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Used for multifiles HTML */
|
2016-03-12 15:14:45 +01:00
|
|
|
.prev_chapter {
|
2016-03-05 23:10:06 +01:00
|
|
|
text-align: left;
|
|
|
|
text-indent: 0;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
font-size: 120%;
|
|
|
|
font-variant: small-caps;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2016-03-12 15:14:45 +01:00
|
|
|
.next_chapter {
|
2016-03-05 23:10:06 +01:00
|
|
|
text-align: right;
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
font-size: 120%;
|
|
|
|
font-variant: small-caps;
|
|
|
|
font-weight: bold;
|
2016-03-07 15:19:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Improving readability for the HTML format only */
|
2016-03-07 23:28:34 +01:00
|
|
|
p, blockquote, li {
|
2016-03-07 19:33:49 +01:00
|
|
|
margin-right: auto;
|
2016-03-07 15:19:09 +01:00
|
|
|
max-width: 33em;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
padding: 1em;
|
|
|
|
}
|
2016-03-07 19:33:49 +01:00
|
|
|
|
|
|
|
#content {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#page {
|
|
|
|
display: inline-block;
|
|
|
|
text-align: justify;
|
2016-03-15 13:18:14 +01:00
|
|
|
}
|
|
|
|
|
2016-03-22 17:20:59 +01:00
|
|
|
|
|
|
|
#toolbar {
|
|
|
|
background: silver;
|
|
|
|
padding-top: 2px;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#toolbar img {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|