diff options
| author | grm <grm@eyesin.space> | 2026-09-17 22:48:37 +0300 |
|---|---|---|
| committer | grm <grm@eyesin.space> | 2026-09-17 22:48:37 +0300 |
| commit | 9d3ab1b781a712b73311d2f2b0b822ae02de99ff (patch) | |
| tree | daf05aa696e3d2782fe34e07682ec33937109da7 | |
| parent | 51ca573ef0c1ce4bd2ef7b7525e5543800fd1988 (diff) | |
| download | blogspace-9d3ab1b781a712b73311d2f2b0b822ae02de99ff.tar.gz blogspace-9d3ab1b781a712b73311d2f2b0b822ae02de99ff.tar.bz2 blogspace-9d3ab1b781a712b73311d2f2b0b822ae02de99ff.zip | |
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A
| -rw-r--r-- | internal/web/theme.go | 8 |
1 files 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; |
