From bf3d6275d4aa9a0609f3f613ab7443328efa3eb9 Mon Sep 17 00:00:00 2001 From: adisposkofh Date: Fri, 8 May 2026 16:31:55 +0200 Subject: [PATCH] header rework: single fixed element, ordering, small screen cutoff --- public/css/Cis4/Cis.css | 33 +++---- public/js/apps/Cis/Menu.js | 2 +- public/js/components/Cis/Menu.js | 99 +++++++++++---------- public/js/components/searchbar/searchbar.js | 32 +++---- 4 files changed, 78 insertions(+), 88 deletions(-) diff --git a/public/css/Cis4/Cis.css b/public/css/Cis4/Cis.css index bb9655cb9..f055faf9c 100644 --- a/public/css/Cis4/Cis.css +++ b/public/css/Cis4/Cis.css @@ -388,12 +388,6 @@ html { #nav-search > .input-group > * { border-radius: 0 !important; } -#nav-search .searchbar_results { - top: 100% !important; - left: 0; - right: 0 !important; - width: 100% !important; -} /* frame */ .in-frame { @@ -467,7 +461,15 @@ html { /* overflow: visible !important; */ } #cis-header { - z-index: 10; + z-index: 10; + } + #cis-header-bar { + position: fixed; + top: 0; + height: var(--fhc-cis-header-height); + width: 100%; + /* padding: var(--fhc-cis-header-py) var(--fhc-cis-header-px); */ + background-color: var(--fhc-primary); } #cis-header nav { position: initial; @@ -483,12 +485,7 @@ html { display: none; } #nav-logo { - position: fixed; - top: 0; - left: 0; - height: var(--fhc-cis-header-height); width: var(--fhc-cis-menu-width); - background-color: var(--fhc-primary); padding: var(--fhc-cis-header-py) var(--fhc-cis-header-px); z-index: 2; } @@ -523,17 +520,7 @@ html { color: var(--fhc-black-40); } #nav-search { - position: fixed; - top: 0; - left: var(--fhc-cis-menu-width); - height: var(--fhc-cis-header-height); - right: calc(var(--fhc-cis-header-height) + 2 * var(--fhc-cis-header-px) - 2 * var(--fhc-cis-header-py)); - width: auto !important; - } - #nav-user { - position: fixed; - top: 0; - right: 0; + position: relative; } #nav-user-btn { border-width: 0; diff --git a/public/js/apps/Cis/Menu.js b/public/js/apps/Cis/Menu.js index ce24489bf..f4fc4cefd 100644 --- a/public/js/apps/Cis/Menu.js +++ b/public/js/apps/Cis/Menu.js @@ -140,7 +140,7 @@ const app = Vue.createApp({ }, provide() { return { - isMobile: Vue.computed(() => this.windowWidth < 767), + isNarrow: Vue.computed(() => this.windowWidth < 992), } }, methods: { diff --git a/public/js/components/Cis/Menu.js b/public/js/components/Cis/Menu.js index 86ecccaf4..60719062b 100644 --- a/public/js/components/Cis/Menu.js +++ b/public/js/components/Cis/Menu.js @@ -30,7 +30,7 @@ export default { menuOpen:true, }; }, - inject: ["isMobile"], + inject: ["isNarrow"], provide(){ return{ setActiveEntry: this.setActiveEntry, @@ -113,57 +113,60 @@ export default { }); }, template: /*html*/` -
-
- - - - +
+ -
- - -
+ + + +
+
+ + + + +
diff --git a/public/js/components/searchbar/searchbar.js b/public/js/components/searchbar/searchbar.js index de125bd16..2f1667692 100644 --- a/public/js/components/searchbar/searchbar.js +++ b/public/js/components/searchbar/searchbar.js @@ -39,7 +39,7 @@ export default { query: Vue.computed(() => this.lastQuery), }; }, - inject: ["isMobile"], + inject: ["isNarrow"], data: function () { return { searchtimer: null, @@ -56,7 +56,7 @@ export default { abortController: null, settingsDropdown: null, lastQuery: "", - isSearchShownInMobileView: false, + isSearchShownInNarrowView: false, }; }, computed: { @@ -95,30 +95,30 @@ export default { @focusout="searchfocusout" >