From ebb274853aac1efda6fdb6b903473d4efd1a4437 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Tue, 17 Aug 2021 11:07:05 +0200 Subject: [PATCH] Center main article and tables --- static/css/general.css | 17 ++++++++--------- templates/base.html | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/static/css/general.css b/static/css/general.css index fc3091b..607ef22 100644 --- a/static/css/general.css +++ b/static/css/general.css @@ -52,6 +52,12 @@ article { padding: 0.5rem; } +#mainarticle { + width: 95vw; + max-width: 80rem; + margin: 0 auto; +} + li, ul, ol { margin: 1rem; } @@ -68,7 +74,7 @@ table { border-right: none; border-bottom: none; border-collapse: collapse; - margin: 1rem 2.5vw; + margin: 1rem auto; } td, th { @@ -77,14 +83,7 @@ td, th { border-left: none; border-top: none; border-collapse: collapse; - padding: 0.5rem 1rem; -} - -@media (max-width: 30rem), (max-width: 1000px) { - table { - margin-right: 0; - margin-left: 0; - } + padding: 0.5rem; } @media (prefers-color-scheme: dark) { diff --git a/templates/base.html b/templates/base.html index a9f2d66..845fa63 100644 --- a/templates/base.html +++ b/templates/base.html @@ -24,7 +24,7 @@
-
+
{% block content %} {% endblock %}