1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-09-20 19:41:36 +02:00
crowbook/templates/template.css

140 lines
1.9 KiB
CSS
Raw Normal View History

2016-02-27 14:51:11 +01:00
/* The nav element corresponding to the navigation menu */
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-27 14:51:11 +01:00
#nav code {
background-color: transparent;
}
2016-02-27 14:51:11 +01:00
#nav a:link {
color: white;
text-decoration: none;
}
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;
}
#nav ul {
padding-right: 1em;
2016-02-27 14:51:11 +01:00
padding-left: 1.5em;
}
2016-02-27 14:51:11 +01:00
/* The menu containing the button to display the navigation bar */
#menu {
position: fixed;
top: 0em;
left: 1em;
transition: left 1s;
}
#menu img {
opacity: 0.5;
}
#menu img:hover {
opacity: 1.0;
cursor: pointer;
}
#menu-button {
height: 1.5em;
2016-02-25 05:57:30 +01:00
padding: 0.5em;
}
#book-button {
width: 1.5em;
padding: 0.5em;
}
2016-02-27 14:51:11 +01:00
/* Hide navigation bar */
#nav {
left: -20%;
transition: left 1s;
2016-02-27 14:51:11 +01:00
}
/* The main content of the book */
#content {
/* position: absolute;*/
2016-02-27 14:51:11 +01:00
overflow-y: auto;
margin-left: 10%;
margin-right: 10%;
transition: margin-left 1s;
}
/* Used for multifiles HTML */
.prev_chapter {
text-align: left;
text-indent: 0;
margin-bottom: 1em;
font-size: 120%;
font-variant: small-caps;
font-weight: bold;
}
.next_chapter {
text-align: right;
margin-top: 1em;
margin-bottom: 1em;
font-size: 120%;
font-variant: small-caps;
font-weight: bold;
}
/* Improving readability for the HTML format only */
p, blockquote, li {
2016-03-07 19:33:49 +01:00
margin-right: auto;
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;
}
#toolbar {
background: silver;
padding-top: 2px;
right: 0;
}
#toolbar img {
cursor: pointer;
}