aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-01-05 23:44:45 +0100
committerOscar Najera <hi@oscarnajera.com>2025-01-05 23:45:00 +0100
commit4b76a856b2841fb197acc982ed168bc52db6ea3d (patch)
treebb92327990d20b262dca7f597453c8ae7bfee16d /layouts/partials/header.html
parentf9e5452a0046e6e47425f0c58d438d0f573fece9 (diff)
downloadhugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.tar.gz
hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.tar.bz2
hugo-minimalist-theme-4b76a856b2841fb197acc982ed168bc52db6ea3d.zip
add tailwind and do some replacements
Diffstat (limited to 'layouts/partials/header.html')
-rw-r--r--layouts/partials/header.html20
1 files changed, 9 insertions, 11 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 5048eea..b18f748 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,6 +1,7 @@
-<nav class="header w-100 w3-theme-d3 w3-theme-border z-2 cf">
- <div class="mw7 center pl2">
- <a href="{{ site.BaseURL | relLangURL }}" class="db fl link">
+<nav class="header w-full w3-theme-d3 w3-theme-border cf ">
+ <div class="max-w-screen-md mx-auto pl-2">
+ <!-- <a href="{{ site.BaseURL | relLangURL }}" class="block fl"> -->
+ <a href="{{ site.BaseURL | relLangURL }}" class="block fl">
{{ with resources.Get .Site.Params.logo }}
<img
height="{{ site.Params.logo_height }}"
@@ -11,21 +12,18 @@
{{ end }}
- <span class="near-white pl2 pt0 f2 berkshire-swash">
+ <span class="pl-2 text-4xl leading-normal berkshire-swash">
{{ .Site.Title }}
</span>
</a>
<input class="menu-btn dn" type="checkbox" id="menu-btn" />
- <label class="fr dn-ns ma2 pa3 menu-icon" for="menu-btn">
+ <label class="fr dn-ns m-2 p-4 menu-icon" for="menu-btn">
<span class="navicon bg-near-white"></span>
</label>
- <ul class="ma0 pa0 list overflow-hidden avenir">
+ <ul class="m-0 p-0 list overflow-hidden font-sans leading-none">
{{ range .Site.Menus.main }}
<li class="fl-ns w3-hover-theme">
- <a
- class="db f6 pa3 link near-white"
- href="{{ .PageRef | relLangURL }}"
- >
+ <a class="block p-4 near-white" href="{{ .PageRef | relLangURL }}">
{{ .Pre }}
{{- T .Name | title -}}
</a>
@@ -35,7 +33,7 @@
{{ if .IsTranslated }}
<select
name="lang"
- class="mv2 pv1 tc ba b--black-20 br2 w3-theme-d3 mw3 "
+ class="my-2 py-1 tc ba b--black-20 br2 w3-theme-d3 mw3 "
onchange="self.location=options[selectedIndex].value"
>
<option value="{{ .Permalink }}">