diff options
author | Alexandre Negrel <negrel.dev@protonmail.com> | 2021-01-26 23:26:35 +0300 |
---|---|---|
committer | Alexandre Negrel <negrel.dev@protonmail.com> | 2021-01-26 23:26:35 +0300 |
commit | 8cdbcbb4883cc54f348fdd9dcdc7e9e927726e41 (patch) | |
tree | 7f302a565eb630040459113d3ddb9350df5d40ac | |
parent | 09b88b210b70917b55ce8101a02c24e7b47e5dde (diff) |
adding dark mode support for header
-rw-r--r-- | layouts/partials/header.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 9de2499..c04044b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,6 +1,6 @@ {{ $page := . }} -<header class="w-full flex items-center justify-between px-5 mx-auto md:mt-8 md:max-w-5xl pt-2 md:pt-0"> +<header class="w-full flex items-center justify-between px-5 mx-auto md:pt-8 md:max-w-5xl pt-5"> {{/* Pico responsive icon (square and text) */}} <div class="flex items-center"> <a href="{{ .Site.Home.Permalink }}" class="inline-block font-bold no-underline select-none"> @@ -27,7 +27,8 @@ <nav class=""> {{ range .Site.Menus.main }} - <a href="{{ .URL | relLangURL}}" class='mx-1 md:mx-2 hover:text-black no-underline'> + <a href="{{ .URL | relLangURL}}" + class='mx-1 md:mx-2 hover:text-primary-light dark:hover:text-primary-dark no-underline'> {{ .Pre }} {{ i18n .Identifier }} </a> {{ end }} |