From c1094898b7651f79b33039fe16be4cf8d5e1beb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Poljan=C5=A1ek?= Date: Thu, 4 Sep 2025 16:14:35 +0200 Subject: [PATCH] Popravljen mobilni meni --- code_export.txt | 44 ++++----- css/base/_base.css | 4 +- css/layout/_header.css | 92 ++++++++++++------- en/about-us/index.html | 2 +- en/about-us/index.html.bak | 6 +- en/index.html | 1 - en/projects/index.html | 2 - en/projects/index.html.bak | 6 +- .../index.html | 2 +- .../index.html.bak | 2 +- en/projects/testproject/index.html | 2 +- en/projects/testproject/index.html.bak | 2 +- main.js | 41 ++++++--- mk/projects/index.html | 2 +- mk/projects/index.html.bak | 6 +- si/projects/index.html | 2 +- si/projects/index.html.bak | 6 +- si/projects/testproject/index.html | 2 +- si/projects/testproject/index.html.bak | 2 +- 19 files changed, 130 insertions(+), 96 deletions(-) diff --git a/code_export.txt b/code_export.txt index 5ef8039..3b53c35 100644 --- a/code_export.txt +++ b/code_export.txt @@ -3157,11 +3157,11 @@ footer hr { - + - + """ @@ -3538,11 +3538,11 @@ footer hr { - + - + """ @@ -5783,12 +5783,12 @@ footer hr { - + - + """ @@ -6120,12 +6120,12 @@ footer hr { - + - + """ @@ -7159,7 +7159,7 @@ footer hr { - + """ @@ -7503,7 +7503,7 @@ footer hr { - + """ @@ -9959,7 +9959,7 @@ footer hr { - + """ @@ -10303,7 +10303,7 @@ footer hr { - + """ @@ -11534,12 +11534,12 @@ document.addEventListener('DOMContentLoaded', function() { - + - + """ @@ -11791,12 +11791,12 @@ document.addEventListener('DOMContentLoaded', function() { - + - + """ @@ -15293,12 +15293,12 @@ msos spletna stran - + - + """ @@ -15550,12 +15550,12 @@ msos spletna stran - + - + """ @@ -17703,7 +17703,7 @@ msos spletna stran - + """ @@ -17913,7 +17913,7 @@ msos spletna stran - + """ diff --git a/css/base/_base.css b/css/base/_base.css index 886dd80..1f09a8f 100644 --- a/css/base/_base.css +++ b/css/base/_base.css @@ -21,8 +21,8 @@ body { color: #101828; } -/* Prepreči drsenje strani, ko je mobilni meni odprt */ -body.nav-open { +/* NOVO (zamenjaj znotraj _base.css): */ +html.nav-open, html.nav-open body { overflow: hidden; } diff --git a/css/layout/_header.css b/css/layout/_header.css index 20abd23..1bf92b6 100644 --- a/css/layout/_header.css +++ b/css/layout/_header.css @@ -35,7 +35,6 @@ gap: 48px; } -/* KLJUČNA SPREMEMBA: Navigacijskemu ovoju damo možnost rasti, da zapolni prostor */ .header-content > nav { flex-grow: 1; display: flex; @@ -55,10 +54,9 @@ display: flex; align-items: center; height: 100%; - width: 100%; /* Dovolimo, da seznam zasede celotno širino