From ab7c6df152fef7f0656a0dfadbfdb792cd7ffc02 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 27 Dec 2021 10:24:51 -0700 Subject: [PATCH] Move list styles to main.css --- content/posts/style.css | 33 --------------------------------- layouts/_default/list.html | 8 +++----- layouts/partials/head.html | 2 -- static/styles/main.css | 30 ++++++++++++++++++++++++++++++ 4 files changed, 33 insertions(+), 40 deletions(-) delete mode 100644 content/posts/style.css diff --git a/content/posts/style.css b/content/posts/style.css deleted file mode 100644 index 947bd0a..0000000 --- a/content/posts/style.css +++ /dev/null @@ -1,33 +0,0 @@ -/* posts/style.css - * Eryn Wells - */ - -.post-list h1, -.post-list h2, -.post-list h3, -.post-list h4, -.post-list h5, -.post-list h6 { - display: inline-block; - margin: 0; -} - -.post-list h2 { - font-size: 2.5rem; -} - -.post-list li + li { - margin-top: 2rem; -} - -.post-list time { - display: inline-block; - margin-left: 1rem; -} - -.post-list article { - color: gray; - font-style: oblique; - font-size: 1.8rem; - margin-top: 0.5rem; -} \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 9a20f63..9750343 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,8 +1,7 @@ -{{ define "main" }} - +{{ define "main" }} {{ if .Title }} -

{{ .Title }}

+

{{ .Title }}

{{ end }} {{ $pages := union .RegularPages .Sections }} @@ -41,6 +40,5 @@ {{ end }} -{{ end }} - +{{ end }} {{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 5f063a0..aeebfbc 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -40,10 +40,8 @@ - {{ hugo.Generator }} - {{ range .AlternativeOutputFormats }} {{ end }} diff --git a/static/styles/main.css b/static/styles/main.css index ca86bbe..068e4bb 100644 --- a/static/styles/main.css +++ b/static/styles/main.css @@ -240,6 +240,36 @@ p { margin-bottom: 0; } +.post-list h1, +.post-list h2, +.post-list h3, +.post-list h4, +.post-list h5, +.post-list h6 { + display: inline-block; + margin: 0; +} + +.post-list h2 { + font-size: 2.5rem; +} + +.post-list li + li { + margin-top: 2rem; +} + +.post-list time { + display: inline-block; + margin-left: 1rem; +} + +.post-list article { + color: gray; + font-style: oblique; + font-size: 1.8rem; + margin-top: 0.5rem; +} + .post-nav { align-items: baseline; display: flex;