diff options
| author | Jakob L. Kreuze | 2023-12-24 08:08:16 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2023-12-24 08:09:15 -0500 |
| commit | 069e0c146d13495be33e09988a6e6b09acf4a06d (patch) | |
| tree | b09df93872168d04fec78406abbb8031e575e06d /haunt/static | |
| parent | 153d5cd502b52d90ef5cdffcfbee401b065f4270 (diff) | |
[theme] Drop-down for supplementary pages
Diffstat (limited to 'haunt/static')
| -rw-r--r-- | haunt/static/css/style.css | 27 |
1 files changed, 25 insertions, 2 deletions
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. */ |