From 67212ebd1773c98a0a608e7a5f20f074dbcdbccc Mon Sep 17 00:00:00 2001 From: LijeroM Date: Sat, 5 May 2018 14:10:54 -0700 Subject: [PATCH] Fixed some CSS bugs and a build-site sitemap bug. --- build-site.sh | 1 + res/common.css | 131 +++++++++++++++++++++++-------------------------- 2 files changed, 62 insertions(+), 70 deletions(-) diff --git a/build-site.sh b/build-site.sh index 5d49c79..279f58b 100755 --- a/build-site.sh +++ b/build-site.sh @@ -1,3 +1,4 @@ cd templates/ stack exec html-generator -- --sitemap $(find .. -type f -name "*.hs" | grep -v "./templates") +mv sitemap.xml .. cd .. diff --git a/res/common.css b/res/common.css index 1f47795..bdeaf4f 100644 --- a/res/common.css +++ b/res/common.css @@ -1,47 +1,57 @@ body { - display: block; - margin: 0; - font-family: sans-serif; + display: block; + margin: 0; + font-family: sans-serif; } nav { - font-weight: 400; - font-size: 25px; - letter-spacing: 2px; - color: #404040; + font-weight: 400; + font-size: 25px; + letter-spacing: 2px; + color: #404040; + margin: auto; + padding: 0; + text-align: center; } #navbrand { - font-weight: bold; - font-size: 50px; - color: black; - font-style: italic; + font-weight: bold; + font-size: 50px; + color: black; + font-style: italic; } nav li { - text-indent: 0; + text-indent: 0; + padding-left: 8px; + padding-right: 8px; + margin: 0; + display: inline-block; } nav ul { - list-style: none; + padding: 0; + list-style: none; +} + +nav a { + color: inherit; } article { - margin: auto; - line-height: 1.5em; - letter-spacing: .05em; - font-size: 18px; - color: #303030; + margin: auto; + line-height: 1.5em; + letter-spacing: .05em; + font-size: 18px; + color: #303030; } p { -/* text-align: justify; - text-justify: distribute;*/ - text-indent: 2em; + text-indent: 2em; } article h1 { - font-size: 30px; + font-size: 30px; } article h2 { @@ -53,32 +63,28 @@ article h3 { } li { - text-indent: 1em; + text-indent: 1em; } a { - text-decoration: none; - color: #5050B0; + text-decoration: none; + color: #5050B0; } a:hover { - color: #8080A0; -} - -nav a { - color: inherit; + color: #8080A0; } .quote-content::before { - content: url("/res/icon/double-quote-serif-left.svg"); + content: url("/res/icon/double-quote-serif-left.svg"); } .quote-content { - font-style: italic; + font-style: italic; } .quote-content::after { - content: url("/res/icon/double-quote-serif-right.svg"); + content: url("/res/icon/double-quote-serif-right.svg"); } .metadata { @@ -90,54 +96,39 @@ nav a { } footer { - padding: 10px; - font-size: 10px; - position: relative; - bottom: 0; - text-align: center; + padding: 10px; + font-size: 10px; + position: relative; + bottom: 0; + text-align: center; } .license img { - display: inline-block; - width: initial; - vertical-align: bottom; + display: inline-block; + width: initial; + vertical-align: bottom; } @media screen and (max-width: 600px) { - article { - padding: 5px; - margin: 0; - } -} - -nav { - margin: auto; - padding: 0; - text-align: center; -} - -nav ul { - padding: 0; -} - -nav li { + article { + padding: 5px; margin: 0; - display: inline-block; + } } @media screen and (min-width: 700px) { - article { - padding: 0 80px; - min-width: 25em; - max-width: 33em; - } - - article h1 { - margin-left: -20px; - } + article { + padding: 0 80px; + min-width: 25em; + max-width: 33em; + } + + article h1 { + margin-left: -20px; + } } pre { - font-size: 16px; - padding-left: 2em; + font-size: 16px; + padding-left: 2em; }