commit 697963c5e4f56f871d4364043af450af6b6a2f9d
parent 43b4929f25a5bbdc2926a33c55104f1e96334928
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Wed, 30 Dec 2020 23:28:24 +0100
Fix dropdown position
Make sure it starts below the li's padding area, so that it lines up
with colored backgrounds.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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;