From 069e0c146d13495be33e09988a6e6b09acf4a06d Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 24 Dec 2023 08:08:16 -0500 Subject: [theme] Drop-down for supplementary pages --- haunt/static/css/style.css | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'haunt/static') diff --git a/haunt/static/css/style.css b/haunt/static/css/style.css index 3ee08fc..1ee1b2f 100644 --- a/haunt/static/css/style.css +++ b/haunt/static/css/style.css @@ -56,7 +56,7 @@ body > header > a > img { } } -body > header > nav > ul { +body > header > nav ul { list-style-type: none; padding-left: 0; } @@ -64,15 +64,38 @@ body > header > nav > ul { @media screen and (min-width: 480px) { body > header > nav > ul > li { display: inline-block; + } + + body > header > nav > ul li { padding: 1rem 2rem; border-bottom: 2px solid #d2d6dd; text-align: center; } - body > header > nav > ul > li > a { + body > header > nav > ul li > a { color: #000; text-decoration: none; } + + body > header > nav > ul .drop-menu { + display: none; + position: absolute; + } + + body > header > nav > ul .drop-menu > li { + background: #fff; + } + + body > header > nav > ul > li:hover .drop-menu { + display: block; + } +} + +@media screen and (max-width: 480px) { + body > header > nav > ul .drop-menu { + list-style-type: circle; + padding-left: 1em; + } } /* Horizontal lists. */ -- cgit v1.3