summaryrefslogtreecommitdiff
path: root/commun.css
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-12-28 16:36:55 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-12-28 16:36:55 +0100
commit8c0874d2350188d88ff22d6fb569d027c1b221e3 (patch)
tree69fd1779abe1d00340f1fe90fd31516aa8296c92 /commun.css
parent138a5a12823541416399338370e9fd91f872ade5 (diff)
downloadquatuorbellefeuille.com-8c0874d2350188d88ff22d6fb569d027c1b221e3.tar.xz
Add dropdown menu with direct links to members
Diffstat (limited to 'commun.css')
-rw-r--r--commun.css28
1 files changed, 28 insertions, 0 deletions
diff --git a/commun.css b/commun.css
index d26ac63..7eb648b 100644
--- a/commun.css
+++ b/commun.css
@@ -68,6 +68,34 @@ nav > ol > li {
padding: 0.5em 0.1em;
}
+/* TODO fix horizontal padding which misaligns white backgrounds on quatuor page */
+/* TODO highlight current quatuor member */
+nav li.dropdown {
+ position: relative;
+}
+nav li.dropdown ul {
+ display: none;
+ position: absolute;
+ padding-left: 0;
+ width: 100%;
+ background: white;
+ z-index: 1;
+}
+nav li.dropdown:hover ul {
+ display: block;
+ text-align: left;
+}
+nav li:hover ul li {
+ list-style-type: none;
+ padding-inline-start: 10%;
+}
+nav li.dropdown > ul > li:hover {
+ background: lightgrey;
+}
+nav li.dropdown > ul > li a {
+ display: block; /* Make link span whole containing block. */
+}
+
.current {
background-color: white;
}