From 8a679ee7a9806b2f5d3a598a661fea3035eb0d93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 6 Jun 2021 15:26:42 +0200 Subject: [PATCH] add support for submenus (#53208) --- static/css/combo-style.css | 34 +++++++++++++++++++++++++++++- templates/combo/page_template.html | 2 +- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/static/css/combo-style.css b/static/css/combo-style.css index b8e63dc..ae3438e 100644 --- a/static/css/combo-style.css +++ b/static/css/combo-style.css @@ -100,7 +100,39 @@ ul li:before { } #menu ul li a:hover { - border-bottom: 1px dotted #ccf; + border-bottom: 1px dotted #008; +} + +#menu ul li ul { + display: none; + position: absolute; + z-index: 1000; + margin-left: -1rem; +} + +#menu ul li ul li { + display: block; + margin-right: 0; +} + +#menu ul li ul li:first-child { + padding-top: 1rem; +} + +#menu ul li ul li a { + display: block; + background: white; + padding: 0.5rem 1rem; + border-bottom: 1px solid white; +} + +#menu ul li ul li a:hover { + background: #eee; + border-bottom: 1px solid white; +} + +#menu ul li:hover ul { + display: block; } div.textcell.intro { diff --git a/templates/combo/page_template.html b/templates/combo/page_template.html index 23c9d29..0d094d5 100644 --- a/templates/combo/page_template.html +++ b/templates/combo/page_template.html @@ -21,7 +21,7 @@
- +
{% block combo-content %}