Fixed some CSS bugs and a build-site sitemap bug.
parent
858b74621d
commit
67212ebd17
|
@ -1,3 +1,4 @@
|
||||||
cd templates/
|
cd templates/
|
||||||
stack exec html-generator -- --sitemap $(find .. -type f -name "*.hs" | grep -v "./templates")
|
stack exec html-generator -- --sitemap $(find .. -type f -name "*.hs" | grep -v "./templates")
|
||||||
|
mv sitemap.xml ..
|
||||||
cd ..
|
cd ..
|
||||||
|
|
131
res/common.css
131
res/common.css
|
@ -1,47 +1,57 @@
|
||||||
body {
|
body {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 25px;
|
font-size: 25px;
|
||||||
letter-spacing: 2px;
|
letter-spacing: 2px;
|
||||||
color: #404040;
|
color: #404040;
|
||||||
|
margin: auto;
|
||||||
|
padding: 0;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navbrand {
|
#navbrand {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
color: black;
|
color: black;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav li {
|
nav li {
|
||||||
text-indent: 0;
|
text-indent: 0;
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
margin: 0;
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav ul {
|
nav ul {
|
||||||
list-style: none;
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
article {
|
article {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
letter-spacing: .05em;
|
letter-spacing: .05em;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #303030;
|
color: #303030;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
/* text-align: justify;
|
text-indent: 2em;
|
||||||
text-justify: distribute;*/
|
|
||||||
text-indent: 2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
article h1 {
|
article h1 {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
article h2 {
|
article h2 {
|
||||||
|
@ -53,32 +63,28 @@ article h3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
text-indent: 1em;
|
text-indent: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #5050B0;
|
color: #5050B0;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #8080A0;
|
color: #8080A0;
|
||||||
}
|
|
||||||
|
|
||||||
nav a {
|
|
||||||
color: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.quote-content::before {
|
.quote-content::before {
|
||||||
content: url("/res/icon/double-quote-serif-left.svg");
|
content: url("/res/icon/double-quote-serif-left.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.quote-content {
|
.quote-content {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quote-content::after {
|
.quote-content::after {
|
||||||
content: url("/res/icon/double-quote-serif-right.svg");
|
content: url("/res/icon/double-quote-serif-right.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
.metadata {
|
.metadata {
|
||||||
|
@ -90,54 +96,39 @@ nav a {
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.license img {
|
.license img {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: initial;
|
width: initial;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
article {
|
article {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
nav {
|
|
||||||
margin: auto;
|
|
||||||
padding: 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav ul {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
nav li {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: inline-block;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 700px) {
|
@media screen and (min-width: 700px) {
|
||||||
article {
|
article {
|
||||||
padding: 0 80px;
|
padding: 0 80px;
|
||||||
min-width: 25em;
|
min-width: 25em;
|
||||||
max-width: 33em;
|
max-width: 33em;
|
||||||
}
|
}
|
||||||
|
|
||||||
article h1 {
|
article h1 {
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue