From b03b96082d05cdadd5259d5f91c4515dd47f3ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 12 Feb 2025 10:09:27 +0100 Subject: [PATCH] theme: Misc style adjustments * Indent the toc level 2 a little * Adjust code shortcode file bacground and make it unselectable Closes #2882 --- layouts/partials/layouts/toc.html | 2 +- layouts/shortcodes/code.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/partials/layouts/toc.html b/layouts/partials/layouts/toc.html index b486e61ff..06946d885 100644 --- a/layouts/partials/layouts/toc.html +++ b/layouts/partials/layouts/toc.html @@ -24,7 +24,7 @@ x-ref="{{ .ID }}" @click.stop="setActive('{{ .ID }}')" class="block pb-1 text-blue-600 hover:text-blue-500{{ if gt .Level 2 }} - ml-1 text-sm + ml-2 lg:ml-3 text-sm {{ else }} text-sm {{ end }}" diff --git a/layouts/shortcodes/code.html b/layouts/shortcodes/code.html index f64cda224..1ccb44b7d 100644 --- a/layouts/shortcodes/code.html +++ b/layouts/shortcodes/code.html @@ -15,7 +15,8 @@ {{- $codeLang = cond (eq $ext "html") "go-html-template" $ext }} {{- end }}
+ class="san-serif text-sm inline-block leading-none pl-2 py-3 bg-gray-300 dark:bg-slate-700 dark: w-full select-none +"> {{ . }}
{{- end -}}