From 1c159a42072d80c8f47eefbfeb5dbea26a3f10d1 Mon Sep 17 00:00:00 2001 From: ondrej Date: Fri, 21 Oct 2022 11:10:41 +0200 Subject: [PATCH] WIP --- assets/main.css | 13 +++++++++++++ assets/style.css | 6 ++++-- layouts/shortcodes/homepage.html | 4 ++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/assets/main.css b/assets/main.css index fd84e16..be7e742 100644 --- a/assets/main.css +++ b/assets/main.css @@ -42,3 +42,16 @@ html { .prose p { @apply mb-4; } + +.link, +.prose a { + color: theme("colors.red.900"); + border-bottom: 4px solid theme("colors.red.100"); + transition: border-color 200ms; +} + +.link:hover, +.prose a:hover { + color: theme("colors.red.700"); + border-bottom: 4px solid theme("colors.red.200"); +} diff --git a/assets/style.css b/assets/style.css index 52cda3f..2115eac 100644 --- a/assets/style.css +++ b/assets/style.css @@ -764,13 +764,15 @@ html { margin-bottom: 1rem; } -.link { +.link, +.prose a { color: #7f1d1d; border-bottom: 4px solid #fee2e2; transition: border-color 200ms; } -.link:hover { +.link:hover, +.prose a:hover { color: #b91c1c; border-bottom: 4px solid #fecaca; } diff --git a/layouts/shortcodes/homepage.html b/layouts/shortcodes/homepage.html index 9693248..3ce7226 100644 --- a/layouts/shortcodes/homepage.html +++ b/layouts/shortcodes/homepage.html @@ -17,8 +17,8 @@ {{ end }}

{{ .Title }}

-
- {{ .Params.description }} → +
+ {{ .Params.description | safeHTML }} →