From 5d394e581b108eaf1470d5d00b1699d6ade25b4c Mon Sep 17 00:00:00 2001 From: raven Date: Mon, 14 Jun 2021 17:08:03 +0000 Subject: flexboxification --- apioforum/static/style.css | 8 +++---- apioforum/templates/base.html | 50 +++++++++++++++++++++---------------------- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/apioforum/static/style.css b/apioforum/static/style.css index 4273de3..4efc1ec 100644 --- a/apioforum/static/style.css +++ b/apioforum/static/style.css @@ -50,11 +50,9 @@ body { font-family: sans-serif } img { max-width: 100% } -nav ul { list-style-type: none; margin: 0px; padding: 0px } -nav { width:max-content; padding: 5px; margin: 2px; border: 1px solid black } -nav li { margin-left: 15px; margin-bottom: 10px; margin-right: 10px } -nav li {display: inline } -nav li:first-of-type { margin-left:0.5em } +nav { width:max-content; padding: 5px; margin: 2px; border: 1px solid black; display:flex; align-items: center } +nav p { margin-left: 15px; margin-top: 0; margin-bottom: 0; margin-right: 10px; padding: 0 } +nav p:first-of-type { margin-left:0.5em } nav { float: right } nav a { color: blue; text-decoration: none } diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html index 37edcb8..6783862 100644 --- a/apioforum/templates/base.html +++ b/apioforum/templates/base.html @@ -8,32 +8,32 @@
-- cgit v1.2.3