mirror of
https://github.com/lise-henry/crowbook
synced 2024-05-25 11:06:09 +02:00
Modify templates
This commit is contained in:
parent
158d765026
commit
bbe5ec2199
|
@ -396,7 +396,7 @@ impl<'a> HtmlRenderer<'a> {
|
|||
if content.is_empty() {
|
||||
content
|
||||
} else {
|
||||
format!("<footer><p>{}</p></footer>", content)
|
||||
format!("<footer id = \"footer\"><p>{}</p></footer>", content)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,9 @@ function toggle() {
|
|||
if(document.getElementById("top")) {
|
||||
document.getElementById("top").style.left = "0";
|
||||
}
|
||||
if(document.getElementById("footer")) {
|
||||
document.getElementById("footer").style.marginLeft = "0%";
|
||||
}
|
||||
} else {
|
||||
display_menu = true;
|
||||
document.getElementById("nav").style.left = "0";
|
||||
|
@ -16,5 +19,8 @@ function toggle() {
|
|||
if(document.getElementById("top")) {
|
||||
document.getElementById("top").style.left = "20%";
|
||||
}
|
||||
if(document.getElementById("footer")) {
|
||||
document.getElementById("footer").style.marginLeft = "20%";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ p.first-para:first-letter {
|
|||
/* The nav element corresponding to the navigation menu */
|
||||
nav {
|
||||
position: fixed;
|
||||
border-right: solid thin black;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
|
@ -188,8 +189,10 @@ blockquote {
|
|||
footer {
|
||||
background-color: #252525;
|
||||
margin-top: 2em;
|
||||
margin-left: 0;
|
||||
text-align: center;
|
||||
color: white;
|
||||
transition: margin-left 1s;
|
||||
}
|
||||
|
||||
footer a, #top a {
|
||||
|
@ -204,6 +207,8 @@ footer a:hover, #top a:hover {
|
|||
footer p {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-bottom: 0.5em;
|
||||
margin-top: 0.5em;
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue