From 422d3b82e65b15f640dad035e109c2857b752ca3 Mon Sep 17 00:00:00 2001 From: Max Pozdeev Date: Tue, 22 Feb 2022 23:53:50 +0300 Subject: [PATCH] remove useless 'wrapper' and 'container' divs from html --- src/content/themes/default/index.php | 4 ---- src/content/themes/default/style.css | 13 ++++++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/content/themes/default/index.php b/src/content/themes/default/index.php index efb3e4b..eebccdb 100644 --- a/src/content/themes/default/index.php +++ b/src/content/themes/default/index.php @@ -34,8 +34,6 @@ $().ready(function(){ }); -
-
@@ -279,7 +277,6 @@ $().ready(function(){
-
- diff --git a/src/content/themes/default/style.css b/src/content/themes/default/style.css index b4d0884..71807da 100644 --- a/src/content/themes/default/style.css +++ b/src/content/themes/default/style.css @@ -103,14 +103,21 @@ body { height: 100%; background-color: var(--color-bg); color: var(--color-text-default); + display:flex; + flex-direction:column; + align-items:center; } body, td, th, input, textarea, select { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", /*Roboto,*/ Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 1rem; } -#wrapper { display:flex; flex-direction:column; align-items:center; height:100%; } -#container { flex: 1 0 auto; width:100%; max-width:1000px; } -#mtt_body { padding:8px; margin-bottom:8px; } /* TODO: can combine container and mtt_body */ +#mtt_body { + flex: 1 0 auto; + width:100%; + max-width:1000px; + padding:8px; + margin-bottom:8px; +} form { display: inline; } .topblock h2 {