From 9d3ab1b781a712b73311d2f2b0b822ae02de99ff Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 17 Sep 2026 22:48:37 +0300 Subject: Make the blog text a little smaller and tighter Normal is 16px on 1.5 lines (was 17px on 1.55), small 14px and large 18px, matching the owner's reference site. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/theme.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/web/theme.go b/internal/web/theme.go index d686c4e..53e48c5 100644 --- a/internal/web/theme.go +++ b/internal/web/theme.go @@ -443,11 +443,11 @@ func (t Theme) HeadingFontSet() bool { return t.HeadingFont != "same" || t.Custo func (t Theme) FontSizePx() string { switch t.FontSize { case "small": - return "15px" + return "14px" case "large": - return "19px" + return "18px" } - return "17px" + return "16px" } // ContentPaddingCSS returns desktop and phone paddings; "normal" is left to blog.css. @@ -522,7 +522,7 @@ var themeCSS = template.Must(template.New("theme").Funcs(template.FuncMap{"sub": {{- if .CustomHeadingFont}} @font-face { font-family:"BlogHeadingFont"; src:url(/media/{{.CustomHeadingFont}}); font-display:swap; } {{- end}} -body { margin:0; background-color:{{.BgColor}}; color:{{.TextColor}}; font-family:{{.FontFamily}}; font-size:{{.FontSizePx}}; line-height:1.55; +body { margin:0; background-color:{{.BgColor}}; color:{{.TextColor}}; font-family:{{.FontFamily}}; font-size:{{.FontSizePx}}; line-height:1.5; {{- if .BgImage}} background-image:url(/media/{{.BgImage}}); {{- if eq .BgMode "cover"}} background-size:cover; background-position:center top; background-repeat:no-repeat; {{- else if eq .BgMode "fixed"}} background-size:cover; background-position:center; background-attachment:fixed; background-repeat:no-repeat; -- cgit v1.2.3