theme: Misc style adjustments

* Indent the toc level 2 a little
* Adjust code shortcode file bacground and make it unselectable

Closes #2882
This commit is contained in:
Bjørn Erik Pedersen 2025-02-12 10:09:27 +01:00
parent ecad978216
commit b03b96082d
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@
x-ref="{{ .ID }}" x-ref="{{ .ID }}"
@click.stop="setActive('{{ .ID }}')" @click.stop="setActive('{{ .ID }}')"
class="block pb-1 text-blue-600 hover:text-blue-500{{ if gt .Level 2 }} 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 }} {{ else }}
text-sm text-sm
{{ end }}" {{ end }}"

View File

@ -15,7 +15,8 @@
{{- $codeLang = cond (eq $ext "html") "go-html-template" $ext }} {{- $codeLang = cond (eq $ext "html") "go-html-template" $ext }}
{{- end }} {{- end }}
<div <div
class="san-serif text-sm inline-block leading-none pl-2 py-3 bg-slate-700 dark: w-full"> 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
">
{{ . }} {{ . }}
</div> </div>
{{- end -}} {{- end -}}