diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-12-28 16:36:55 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-12-28 16:36:55 +0100 |
| commit | 8c0874d2350188d88ff22d6fb569d027c1b221e3 (patch) | |
| tree | 69fd1779abe1d00340f1fe90fd31516aa8296c92 /commun.css | |
| parent | 138a5a12823541416399338370e9fd91f872ade5 (diff) | |
| download | quatuorbellefeuille.com-8c0874d2350188d88ff22d6fb569d027c1b221e3.tar.xz | |
Add dropdown menu with direct links to members
Diffstat (limited to 'commun.css')
| -rw-r--r-- | commun.css | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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; } |
