From 48219a3047240c3b77be1dbcee9c2a1bc809a660 Mon Sep 17 00:00:00 2001 From: taco Date: Wed, 17 Apr 2024 00:18:00 -0400 Subject: [PATCH] update list and css --- themes/corazon/assets/css/main.scss | 66 +++++++++++++++++++-- themes/corazon/layouts/_default/list.html | 3 +- themes/corazon/layouts/partials/header.html | 2 +- 3 files changed, 65 insertions(+), 6 deletions(-) diff --git a/themes/corazon/assets/css/main.scss b/themes/corazon/assets/css/main.scss index a59a05e..0b329ac 100644 --- a/themes/corazon/assets/css/main.scss +++ b/themes/corazon/assets/css/main.scss @@ -1,30 +1,83 @@ -body { - font-family: sans-serif; +@import url(https://fonts.bunny.net/css?family=averia-sans-libre:700|cabin:400,400i,500,500i,600,600i,700,700i); + +body { + font-family: 'Cabin', sans-serif; + font-size: 1.2rem; line-height: 1.5; margin: 1rem; + margin-left: auto; + margin-right: auto; max-width: 768px; } +h1, h2, h3, h4, h5, h6, nav { + font-family: 'Averia Sans Libre', display; + font-weight: 700; +} + +nav { + ul { + display: flex; + justify-content: space-between; + list-style-position: inside; + margin-left: 0; + padding-left: 0; + } + li { + font-size: 1.3rem; + margin: auto 3rem auto 3rem; + flex-direction: column; + list-style-type: none; + border-bottom: 1px solid #a6dc68; + } +} + header { - border-bottom: 1px solid #222; margin-bottom: 1rem; } +figure { + margin: none; + text-align: center; + img { + border-radius: 1rem; + max-height: 30rem; + max-width: 100%; + } + figcaption { + margin-top: -0.666rem; + font-size: 0.8rem; + opacity: 69%; + } +} + footer { border-top: 1px solid #222; margin-top: 1rem; + text-align: center; } a { - color: #a4c35b; + color: #a6dc68; text-decoration: none; } +code { +} + @media (prefers-color-scheme: light) { body { background: #eee; color: #291712; } + a { + color: #63843e; + } + h1 { + a { + color: #87a73d; + } + } } @media (prefers-color-scheme: dark) { @@ -32,4 +85,9 @@ a { background: #291712; color: #eee; } + h1 { + a { + color: #87a73d; + } + } } diff --git a/themes/corazon/layouts/_default/list.html b/themes/corazon/layouts/_default/list.html index 50fc92d..e101316 100644 --- a/themes/corazon/layouts/_default/list.html +++ b/themes/corazon/layouts/_default/list.html @@ -3,6 +3,7 @@ {{ .Content }} {{ range .Pages }}

{{ .LinkTitle }}

- {{ .Summary }} + {{ .Date.Format "january 2, 2006" }} +
{{ .Description }}
{{ end }} {{ end }} diff --git a/themes/corazon/layouts/partials/header.html b/themes/corazon/layouts/partials/header.html index 7980a00..1fe4e86 100644 --- a/themes/corazon/layouts/partials/header.html +++ b/themes/corazon/layouts/partials/header.html @@ -1,2 +1,2 @@ -

{{ site.Title }}

+

{{ site.Title }}

{{ partial "menu.html" (dict "menuID" "main" "page" .) }}