From 35562382461e947c0cd3c10df2ec042e317544f5 Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Sun, 12 Mar 2023 02:13:33 +0100 Subject: [PATCH] better css --- themes/default/static/css/main.css | 16 ++++++++++++---- themes/default/templates/base.html | 4 ++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/themes/default/static/css/main.css b/themes/default/static/css/main.css index 855d0d0..821b895 100644 --- a/themes/default/static/css/main.css +++ b/themes/default/static/css/main.css @@ -37,10 +37,20 @@ h2 { /* Menu */ +@media (max-width: 800px) { + nav { + position:relative; + } +} +@media (min-width: 800px) { + nav { + position:fixed; + } +} + nav { background-color: rgba(1, 1, 1, 0.7); color: white; - position: fixed; z-index: 999; width:100%; padding:0; @@ -49,13 +59,11 @@ nav { nav > ul { display: inline-block; margin: 0 auto; - height: 86px; } nav > ul > li { display: inline-block; padding: 0 20px; - height: 100%; - vertical-align:top; + height: 86px; } nav > ul > li a { display: block; diff --git a/themes/default/templates/base.html b/themes/default/templates/base.html index ed1012c..d2ce98c 100644 --- a/themes/default/templates/base.html +++ b/themes/default/templates/base.html @@ -46,8 +46,8 @@ format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate"