From b06759412d4089b620a1ab3a5d0b85098e4cc571 Mon Sep 17 00:00:00 2001 From: amdomanska Date: Mon, 2 Dec 2024 22:58:12 +0000 Subject: [PATCH] fix the burger menu icon --- assets/less/site/collections/menu.overrides | 64 ++++++++++++++++----- assets/less/site/elements/header.overrides | 18 +----- assets/less/site/globals/site.overrides | 55 ------------------ 3 files changed, 52 insertions(+), 85 deletions(-) diff --git a/assets/less/site/collections/menu.overrides b/assets/less/site/collections/menu.overrides index 2722c7a..c86e9c4 100644 --- a/assets/less/site/collections/menu.overrides +++ b/assets/less/site/collections/menu.overrides @@ -39,21 +39,59 @@ } } -#rdm-burger-toggle { - font-size: 20px; - position: absolute; - right: -1.5rem; - top: calc(50%); - border: none; - - #rdm-burger-menu-icon { - .navicon { - background: @primaryColor; - color: @primaryColor; - &:hover { - color: @black; +.outer-navbar { + background-image: None; + background-color: transparent; + border-color: transparent; + + #invenio-nav { + background: @white; + border-top: 2px solid @brandColor; + border-bottom: 2px solid @brandColor; + margin: 1rem 0; + } + + a { + color: @primaryColor; + } + + .header__nav-open#rdm-burger-menu-icon { + color: @navyBlue; + margin-inline-start: 1rem; + border-style: unset !important; + border-width: 0 !important; + + span { + top: 1px; + + &::before { + top: clamp(0.4375rem, 0.4016rem + 0.1795vw, 0.5625rem); // 7px -> 9px + transition: unset; } + + &::after { + top: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px + transition: uset; + } + } + + span, + span::before, + span::after { + background-color: @navyBlue; } + + &:hover { + + span, + span::before, + span::after { + left: 0px; + transform: none; + width: clamp(0.875rem, 1.1623rem, 1.125rem); + background-color: @darkGray; + } + } } } diff --git a/assets/less/site/elements/header.overrides b/assets/less/site/elements/header.overrides index 0c9b51d..3035a02 100644 --- a/assets/less/site/elements/header.overrides +++ b/assets/less/site/elements/header.overrides @@ -34,20 +34,4 @@ aside.sidebar { h3.hidden { display: none; } -} - -.ui.header { - word-break: break-word; - - &.text-muted { - color: @mutedTextColor; - } - - .doi.sub.header { - display: inline-block; - } - - &.highlight{ - background-color: @highlightBackgroundColor; - } -} +} \ No newline at end of file diff --git a/assets/less/site/globals/site.overrides b/assets/less/site/globals/site.overrides index a086572..9fdf8ee 100644 --- a/assets/less/site/globals/site.overrides +++ b/assets/less/site/globals/site.overrides @@ -154,61 +154,6 @@ html.cover-page { background-color: @white; } -.outer-navbar { - background-image: None; - background-color: transparent; - border-color: transparent; - - #invenio-nav { - background: @white; - border-top: 2px solid @brandColor; - border-bottom: 2px solid @brandColor; - margin: 1rem 0; - } - - a { - color: @primaryColor; - } - -.header__nav-open { - color: var(--header-overlay-open-color); - margin-inline-start: $space-m; - - span { - top: 1px; - - &::before { - top: clamp(0.4375rem, 0.4016rem + 0.1795vw, 0.5625rem); // 7px -> 9px - transition: transform 0.2s; - } - - &::after { - top: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px - transition: none; - } - } - - span, - span::before, - span::after { - background-color: var(--header-overlay-open-color); - } - - &:hover { - --header-overlay-open-color: #{$base-color}; - - .header__inner--inverse & { - --header-overlay-open-color: #{$base-light}; - } - - span::before { - left: 1px; - transform: rotate(90deg); - width: clamp(0.875rem, 0.8032rem + 0.3591vw, 1.125rem); // 14px -> 18px - } - } -} - .theme.header { box-shadow: None; }