aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorgrm <grm@eyesin.space>2026-09-18 12:03:42 +0300
committergrm <grm@eyesin.space>2026-09-18 12:03:42 +0300
commite3114ba866a555e49f6f0f8321ed6106a9f135bf (patch)
tree35aeae2eda840eea340d52c1c026866737ba3862 /internal
parentfa67ce6346fa1c49bf4c981317193b3e14653d60 (diff)
downloadblogspace-e3114ba866a555e49f6f0f8321ed6106a9f135bf.tar.gz
blogspace-e3114ba866a555e49f6f0f8321ed6106a9f135bf.tar.bz2
blogspace-e3114ba866a555e49f6f0f8321ed6106a9f135bf.zip
Give the rule under titles more room above and below
The rule sat 0.25em under the title text with the date or body starting 0.1em beneath it. Titles with a rule now keep 0.4em above it and 0.7em below; the stripes, being the ::after, get their gap from its margin instead of the padding so they sit as evenly as the borders. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
Diffstat (limited to 'internal')
-rw-r--r--internal/web/static/blog.css5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/web/static/blog.css b/internal/web/static/blog.css
index 273cf7e..81a5940 100644
--- a/internal/web/static/blog.css
+++ b/internal/web/static/blog.css
@@ -39,10 +39,11 @@ img { max-width: 100%; height: auto; }
.post-title { margin: 0 0 0.1em; font-size: 1.5em; line-height: 1.25; }
/* title rule (body.titles-*): a line under page and post titles, coloured by the
theme CSS. overflow:hidden ends it at a floated thumbnail instead of under it. */
-.titles-line .page-title, .titles-line .post-title, .titles-dots .page-title, .titles-dots .post-title, .titles-dots2 .page-title, .titles-dots2 .post-title, .titles-stripes .page-title, .titles-stripes .post-title { overflow: hidden; padding-bottom: 0.25em; }
+.titles-line .page-title, .titles-line .post-title, .titles-dots .page-title, .titles-dots .post-title, .titles-dots2 .page-title, .titles-dots2 .post-title, .titles-stripes .page-title, .titles-stripes .post-title { overflow: hidden; padding-bottom: 0.4em; margin-bottom: 0.7em; }
.titles-line .page-title, .titles-line .post-title { border-bottom-width: 1px; border-bottom-style: solid; } /* the colour is the theme's, so no shorthand */
.titles-dots .page-title, .titles-dots .post-title { border-bottom-width: 3px; border-bottom-style: dotted; }
-.titles-stripes .page-title::after, .titles-stripes .post-title::after { content: ""; display: block; height: 0.4em; margin-top: 0.35em; background: repeating-linear-gradient(90deg, currentColor, currentColor 2px, transparent 2px, transparent 10px); }
+.titles-stripes .page-title, .titles-stripes .post-title { padding-bottom: 0; } /* the stripes are the ::after, so its margin is the gap */
+.titles-stripes .page-title::after, .titles-stripes .post-title::after { content: ""; display: block; height: 0.4em; margin-top: 0.5em; background: repeating-linear-gradient(90deg, currentColor, currentColor 2px, transparent 2px, transparent 10px); }
/* double dots: a second dotted row 2px above the border, like the reference site */
.titles-dots2 .page-title, .titles-dots2 .post-title { position: relative; border-bottom-width: 3px; border-bottom-style: dotted; }
.titles-dots2 .page-title::after, .titles-dots2 .post-title::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; border-bottom-width: 3px; border-bottom-style: dotted; }