From 6f8edf1ffa88129a26eddf508e5d1833b86e486e Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 12 Feb 2021 10:48:04 +0530 Subject: [PATCH] change theme-switch from 'a' to 'button' and refactor --- assets/css/header.css | 8 +++----- assets/css/reset.css | 1 + layouts/partials/header.html | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/assets/css/header.css b/assets/css/header.css index 910e98ce..beaf5bd6 100644 --- a/assets/css/header.css +++ b/assets/css/header.css @@ -40,11 +40,9 @@ height: 18px; } -a#theme-toggle { - font-size: 24px; - user-select: none; - margin: auto 4px; - cursor: pointer +button#theme-toggle { + font-size: 26px; + margin: auto 4px } body.dark #moon { diff --git a/assets/css/reset.css b/assets/css/reset.css index 4b8e09f8..ee8e77bd 100644 --- a/assets/css/reset.css +++ b/assets/css/reset.css @@ -10,6 +10,7 @@ html { } a, +button, body, h1, h2, diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d91cc6fe..301367c4 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -61,7 +61,7 @@ {{- end }} {{- if (not .Site.Params.disableThemeToggle) }} - + {{- end}} {{ $lang := .Lang}} {{ $separator := or .Title (not .Site.Params.disableThemeToggle)}}