From ad0b81b75b6d427e67d78cf65339c95050486348 Mon Sep 17 00:00:00 2001 From: eclipse Date: Fri, 7 Mar 2025 12:35:04 +0100 Subject: [PATCH] change text-decoration of most links to underline --- theme/static/css/custom.css | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/theme/static/css/custom.css b/theme/static/css/custom.css index 7f05ec4..9f4e543 100644 --- a/theme/static/css/custom.css +++ b/theme/static/css/custom.css @@ -32,10 +32,12 @@ --pico-font-size: 112.5%; } -/* don't underline links by default */ -a { +/* don't underline links in headings */ +h1, h2, h3, h4, h5, h6 { + a { --pico-text-decoration: none; -} + } +} @@ -200,6 +202,9 @@ a { /* Navbar */ #site-navbar { + a { + --pico-text-decoration: none; + } ul { margin-left: 0; margin-right: 0; @@ -324,7 +329,10 @@ figcaption { content: "\00a0\02192"; /* arrow to the right */ } - a { color: var(--pico-h1-color);} + a { + color: var(--pico-h1-color); + --pico-text-decoration: none; + } } @@ -405,9 +413,11 @@ figcaption { display: flex; flex-flow: column nowrap; justify-content: space-between; + } h2 { + margin-top: var(--pico-block-spacing-vertical); --pico-font-size: 1.25rem; } @@ -427,10 +437,10 @@ figcaption { margin: auto; } - h2:has(+ .article-stats) { +/* h2:has(+ .article-stats) { margin-top: var(--pico-block-spacing-vertical); } - + */ .article-stats { padding-left: 0; @@ -442,7 +452,7 @@ figcaption { .article-tags { padding-left: var(--pico-block-spacing-horizontal); margin-bottom: 0; - + li { list-style: disc; }