summaryrefslogtreecommitdiff
path: root/layouts/_partials/header.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-17 11:25:10 +0800
committerEltrac <hi@guhub.cn>2025-07-17 11:25:10 +0800
commitec41236bc88a0762656413c38044ffa256bd93cb (patch)
tree2d6f685fbe9ebb998e29dfcc9d1db9289238c1fe /layouts/_partials/header.html
parent1160eda3a7de8ffaf1562e65187cec783081d491 (diff)
refactor: avoid using straight value in UnoCSS
Diffstat (limited to 'layouts/_partials/header.html')
-rw-r--r--layouts/_partials/header.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html
index 04ea6695..f379711c 100644
--- a/layouts/_partials/header.html
+++ b/layouts/_partials/header.html
@@ -1,18 +1,18 @@
<header id="site-header">
<!-- Header Title -->
- <div class="flex flex-col items-center gap-[0.5rem]">
+ <div class="flex flex-col items-center gap-2">
{{ partial "components/logo" (dict "imageClass" "w-[10rem]") }}
- <a class="text-[2rem] font-900 text-center tracking-[.15rem]
+ <a class="text-8 font-900 text-center tracking-widest
xerox underline-offset-10 underline-3"
href="{{ .Site.LanguagePrefix }}/"
>{{ .Site.Title }}</a
>
</div>
<!-- Navigation -->
- <div class="flex justify-center items-center gap-[0.75rem] pl-[1rem]">
- <nav class="my-[1rem] flex justify-center items-center w-fit rounded-[1rem] overflow-hidden">
+ <div class="flex justify-center items-center gap-3 pl-4">
+ <nav class="my-4 flex justify-center items-center w-fit rounded-4 overflow-hidden">
{{ range .Site.Params.nav }}
- <a class="inline-block py-[0.25rem] px-[0.5rem] first:pl-[0.75rem] last:pr-[0.75rem]
+ <a class="inline-block py-1 px-2 first:pl-3 last:pr-3
block hover:no-underline
{{ if strings.Contains $.Page.RelPermalink .link }}
text-[var(--text-color)] bg-[var(--block-background-color)]