From 829f54bc236ecd15d3c75d7a94941e3f31cd7eed Mon Sep 17 00:00:00 2001 From: Jonas Havelka Date: Thu, 16 Sep 2021 22:15:21 +0200 Subject: [PATCH] =?UTF-8?q?Opraveno=20zv=C3=BDraz=C5=88ov=C3=A1n=C3=AD=20?= =?UTF-8?q?=C3=BAvod=C5=AF=20v=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mamweb/static/css/mamweb.css | 2 +- mamweb/templates/menu.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mamweb/static/css/mamweb.css b/mamweb/static/css/mamweb.css index 3d42be41..8b19fb80 100644 --- a/mamweb/static/css/mamweb.css +++ b/mamweb/static/css/mamweb.css @@ -323,7 +323,7 @@ ul.menu li.active>a { color: #f9d59e; } -ul.submenu li.active>a { +ul.submenu li.active>a, .parentactive ul li:first-child>a { color: black; } diff --git a/mamweb/templates/menu.html b/mamweb/templates/menu.html index 760d9959..829e550b 100644 --- a/mamweb/templates/menu.html +++ b/mamweb/templates/menu.html @@ -16,7 +16,10 @@ {% endfor %} + {# Jelikož položka hlavního menu a první položka submenu ukazují na totéž, může se stát, že bude aktivní je položka hlavního menu. Ale chceme zvíraznit i tu první submenu. for + if = any() #} +