From c33548e35d2a2b94fb5d49d5ccd150b24f7e20df Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Wed, 7 Jul 2021 18:43:21 +0530 Subject: [PATCH] Remove scrolling, change font family, size and weight --- themes/gokarna/layouts/partials/head.html | 2 +- themes/gokarna/static/css/dark.css | 12 ++++++ themes/gokarna/static/css/main.css | 51 ++++++++++++++--------- themes/gokarna/static/js/main.js | 12 ------ 4 files changed, 44 insertions(+), 33 deletions(-) diff --git a/themes/gokarna/layouts/partials/head.html b/themes/gokarna/layouts/partials/head.html index 5909e3b..b631aba 100644 --- a/themes/gokarna/layouts/partials/head.html +++ b/themes/gokarna/layouts/partials/head.html @@ -3,7 +3,7 @@ - + { - if (window.scrollY > 100) { - document.querySelectorAll('.header, .header-nav').forEach(function(item) { - item.classList.add('small') - }) - } else { - document.querySelectorAll('.header, .header-nav').forEach(function(item) { - item.classList.remove('small') - }) - } -}); - function setTheme(themeToSet) { localStorage.setItem(THEME_PREF_STORAGE_KEY, themeToSet); darkThemeCss.disabled = themeToSet === 'light';