From e75a0bea94ffd31f7dd7cb086dc3557f4e6ada94 Mon Sep 17 00:00:00 2001 From: Sk3pper <13051136+Sk3pper@users.noreply.github.com> Date: Mon, 19 Aug 2024 12:53:18 +0200 Subject: [PATCH] add padding to maldevacademy for small devices, --- assets/styles/override.scss | 4 ++++ data/en/sections/pubblications.yaml | 2 +- hugo.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/styles/override.scss b/assets/styles/override.scss index c0903ce..27a2735 100644 --- a/assets/styles/override.scss +++ b/assets/styles/override.scss @@ -62,6 +62,10 @@ html[data-theme='dark'] { width: 100%; /* Ensure the image fits within the container */ transform: scale(1.9); /* Adjust the scale value to zoom in */ transform-origin: center; /* Set the origin of the zoom to the center of the image */ + @include media('<=small') { + padding-top: 80px; + padding-bottom: 90px; + } } // trick to disable menu icons diff --git a/data/en/sections/pubblications.yaml b/data/en/sections/pubblications.yaml index 733fb4d..410e0f4 100644 --- a/data/en/sections/pubblications.yaml +++ b/data/en/sections/pubblications.yaml @@ -3,7 +3,7 @@ section: name: Publications id: publications enable: true - weight: 4 + weight: 5 showOnNavbar: true # Can optionally hide the title in sections # hideTitle: true diff --git a/hugo.yaml b/hugo.yaml index 476f1da..f119213 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -56,7 +56,7 @@ enableEmoji: true params: # Configure the number of section title visible in the top navbar topNavbar: - maxVisibleSections: 7 + maxVisibleSections: 6 # Provide logos for your site. The inverted logo will be used in the initial # transparent navbar and the main logo will be used in the non-transparent navbar.