summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-12-30 23:28:24 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-12-30 23:28:24 +0100
commit697963c5e4f56f871d4364043af450af6b6a2f9d (patch)
tree1374402327fbfffceeb95fedd8ba8ae8206114c1
parent43b4929f25a5bbdc2926a33c55104f1e96334928 (diff)
downloadquatuorbellefeuille.com-697963c5e4f56f871d4364043af450af6b6a2f9d.tar.xz
Fix dropdown position
Make sure it starts below the li's padding area, so that it lines up with colored backgrounds.
-rw-r--r--commun.css5
1 files changed, 4 insertions, 1 deletions
diff --git a/commun.css b/commun.css
index c9b8242..9556292 100644
--- a/commun.css
+++ b/commun.css
@@ -65,6 +65,10 @@ nav > ol {
nav > ol > li {
flex: 1;
+}
+
+nav > ol > li > a {
+ display: block;
padding: 0.5em 0.1em;
}
@@ -74,7 +78,6 @@ nav li.dropdown {
nav li.dropdown ul {
display: none;
position: absolute;
- left: 0; /* Offset nav > ol > li padding. */
padding-left: 0;
width: 100%;
text-align: left;