From 86c3edbcaf55f80a1eb8005be0f446ceec77cf50 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 14 Jul 2020 13:20:24 +0100
Subject: [PATCH] Adjust page widths

---
 .../opdavies/templates/layout/page.html.twig     | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/web/themes/custom/opdavies/templates/layout/page.html.twig b/web/themes/custom/opdavies/templates/layout/page.html.twig
index f8687eb..7abc1c4 100644
--- a/web/themes/custom/opdavies/templates/layout/page.html.twig
+++ b/web/themes/custom/opdavies/templates/layout/page.html.twig
@@ -78,13 +78,7 @@
         </div>
       </div>
     </div>
-    <div
-      class="
-        w-full mx-auto p-4 space-y-8
-        {{ is_front ? 'max-w-5xl' : 'max-w-3xl' }}
-      "
-    >
-
+    <div class="w-full mx-auto p-4 space-y-8 max-w-5xl">
       {{ page.secondary_menu }}
 
       {{ page.breadcrumb }}
@@ -96,15 +90,15 @@
       <main role="main">
         <a id="main-content" tabindex="-1"></a>{# link is in html.html.twig #}
 
-        <div class="grid lg:grid-cols-4 gap-8">
-          <div class="{{ not page.sidebar_second ? 'lg:col-span-4' : 'lg:col-span-3' }}">
-            <div class="max-w-3xl">
+        <div class="grid gap-8 grid-cols-12">
+          <div class="{{ page.sidebar_second ? 'col-span-8' : 'col-span-12' }}">
+            <div>
               {{ page.content }}
             </div>
           </div>{# /.layout-content #}
 
           {% if page.sidebar_second %}
-            <aside role="complementary">
+            <aside role="complementary" class="col-span-4">
               {{ page.sidebar_second }}
             </aside>
           {% endif %}