From 873de558fefba01c05a7cdac7d96d7a85a90875b Mon Sep 17 00:00:00 2001 From: bramjanssen Date: Mon, 13 Jan 2025 10:43:21 +0100 Subject: [PATCH] apex: updated styling to use latest menu structure --- themes/apex/public/index.html | 19 +++++++++++-------- themes/apex/src/theme/components/_header.scss | 16 ++++++---------- themes/apex/src/theme/components/_page.scss | 9 +++++++++ .../apex/src/theme/components/_sub-menu.scss | 11 +++-------- themes/apex/src/theme/variables.scss | 4 +++- themes/apex/version.txt | 2 +- 6 files changed, 33 insertions(+), 28 deletions(-) diff --git a/themes/apex/public/index.html b/themes/apex/public/index.html index e8d116b..433312a 100644 --- a/themes/apex/public/index.html +++ b/themes/apex/public/index.html @@ -38,7 +38,7 @@
- ESA + ESA
@@ -77,8 +77,8 @@
Main navig
  • - Project Tools + Project Environments
    @@ -244,7 +244,6 @@
    -
  • - Project - Tools + Project + Environments
  • Resources @@ -415,6 +414,10 @@ Privacy Policy
  • +
  • + Cookie + Policy +
  • Terms & Conditions diff --git a/themes/apex/src/theme/components/_header.scss b/themes/apex/src/theme/components/_header.scss index 43bd790..476a41c 100644 --- a/themes/apex/src/theme/components/_header.scss +++ b/themes/apex/src/theme/components/_header.scss @@ -116,11 +116,6 @@ @include media-breakpoint-up(lg) { padding-block: 0; } - - a:hover { - text-decoration: none; - color: var(--white); - } } .c-header__logo { @@ -135,6 +130,11 @@ @include media-breakpoint-up(lg) { font-size: var(--text-3xl); } + + &:hover { + text-decoration: none; + color: var(--white); + } } .c-header__logo span { @@ -161,7 +161,7 @@ margin: 0; } - a { + a.menu-link { position: relative; display: block; padding-inline: 1rem; @@ -172,10 +172,6 @@ text-decoration: none; } - li { - opacity: 1 !important; - } - li.has-children > a { position: relative; padding-inline-end: 1.25rem; diff --git a/themes/apex/src/theme/components/_page.scss b/themes/apex/src/theme/components/_page.scss index 11002f8..9a6a0e9 100644 --- a/themes/apex/src/theme/components/_page.scss +++ b/themes/apex/src/theme/components/_page.scss @@ -1,6 +1,10 @@ body { background-color: var(--darkblue); + padding-top: 16px !important; + padding-left: 12px !important; + padding-right: 12px !important; + line-height: var(--bs-body-line-height) !important; } body, h1, h2, h3, h4, h5, h6 { @@ -47,3 +51,8 @@ body, h1, h2, h3, h4, h5, h6 { .visually-hidden { display: none; } + +div.container { + padding-left: 0 !important; + padding-right: 0 !important; +} diff --git a/themes/apex/src/theme/components/_sub-menu.scss b/themes/apex/src/theme/components/_sub-menu.scss index 4df9508..ba6a738 100644 --- a/themes/apex/src/theme/components/_sub-menu.scss +++ b/themes/apex/src/theme/components/_sub-menu.scss @@ -14,11 +14,7 @@ color: var(--darkblue); box-shadow: .15rem .15rem 1.6rem .5rem rgba(0, 0, 0, 0.15); overflow: hidden; - z-index: 999; - - h1, h2, h3, h4, h5, h6 { - color: var(--darkblue) !important; - } + z-index: 99; li.has-children:hover > & { transform: none; @@ -108,8 +104,6 @@ li.has-children:hover > .c-sub-menu.c-sub-menu--basic { .c-sub-menu__all a { color: var(--darkblue) !important; text-decoration-color: var(--lightblue); - padding: 0 !important; - text-decoration: underline; } .c-sub-menu__topics { @@ -132,6 +126,7 @@ li.has-children:hover > .c-sub-menu.c-sub-menu--basic { display: grid; background-color: var(--white); padding: 4.5rem 2.5rem; + width:100%; } .c-sub-menu__content { @@ -199,8 +194,8 @@ li.has-children:hover > .c-sub-menu.c-sub-menu--basic { text-decoration:none; position: static; padding: 0; - color: inherit; font-size: 1.125rem; + font-weight: 100; } p { diff --git a/themes/apex/src/theme/variables.scss b/themes/apex/src/theme/variables.scss index c6b1d7e..bb608b6 100644 --- a/themes/apex/src/theme/variables.scss +++ b/themes/apex/src/theme/variables.scss @@ -42,12 +42,14 @@ $logo-image-height: 100px; --text-2xl: 1.75rem; --text-xl: 1.5rem; --text-lg: 1.25rem; - --text-base: 1rem; + --text-base: 1.1rem; --text-sm: 0.875rem; --text-xs: 0.75rem; --font-family: 'ESANotes', Arial, sans-serif; --bs-heading-color: #003247 !important; + --bs-body-line-height: 1.25 !important; + } diff --git a/themes/apex/version.txt b/themes/apex/version.txt index e8f41f0..50aea0e 100644 --- a/themes/apex/version.txt +++ b/themes/apex/version.txt @@ -1 +1 @@ -2.0.8 \ No newline at end of file +2.1.0 \ No newline at end of file