From 67cacf788289688411d8c0800cb901a4abb78cc0 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Fri, 13 Dec 2024 12:04:19 -0600 Subject: [PATCH] Primary layout no longer uses table --- public/css/dk.css | 43 +++++++++++++++++++++++++++++++++++++++++++ templates/primary.php | 36 +++++++++++++++++++----------------- 2 files changed, 62 insertions(+), 17 deletions(-) diff --git a/public/css/dk.css b/public/css/dk.css index 5f6539c..8fe8704 100644 --- a/public/css/dk.css +++ b/public/css/dk.css @@ -11,6 +11,49 @@ body { background-image: url('/img/background.jpg'); } +div#game-container { + max-width: 1280px; + margin: 0 auto; + padding: 1rem; +} + +header { + display: flex; + justify-content: space-between; + align-items: center; + border-bottom: solid 2px black; + padding-bottom: 0.5rem; +} + +main { + width: 100%; + display: flex; + margin-bottom: 0.5rem; +} + +main section#left { + width: 180px; + border-right: solid 2px black; +} + +main section#middle { + flex-grow: 1; +} + +main section#right { + width: 180px; + border-left: solid 2px black; +} + +footer { + display: flex; + justify-content: space-around; + border: solid 1px black; + background-color: #eeeeee; + font-size: 0.8rem; + padding: 0.5rem; +} + table { border-style: none; padding: 0px; diff --git a/templates/primary.php b/templates/primary.php index 69413e9..f9dfad1 100644 --- a/templates/primary.php +++ b/templates/primary.php @@ -20,23 +20,25 @@ $template = << -
- - - - - - - - - -
-
{{dkgamename}}{{topnav}}
-
{{leftnav}}{{content}}{{rightnav}}

- - - -
+
+
+ + +
+ +
+
{{leftnav}}
+
{{content}}
+ +
+ + +
HTML;