From 24435e57b0cff011a6493a6ef49fa6303d3e0b46 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Fri, 8 Nov 2024 08:44:47 +0000 Subject: [PATCH] rework the style --- static/styles.css | 23 +++++---- templates/add_account.html | 8 +-- templates/home.html | 98 ++++++++++++++++++------------------ templates/index.html | 8 +-- templates/urls.html | 8 +-- templates/user_accounts.html | 6 ++- 6 files changed, 81 insertions(+), 70 deletions(-) diff --git a/static/styles.css b/static/styles.css index c3f7a7b..ad5bb13 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,8 +1,13 @@ /* Base styles */ +html, body { + height: 100%; /* Ensure the body and html elements fill the viewport height */ + margin: 0; /* Remove default margin */ + display: flex; + flex-direction: column; +} + body { font-family: Arial, sans-serif; - margin: 0; - padding: 0; } header { @@ -13,15 +18,13 @@ header { } main { + flex: 1; /* Make the main content area grow to fill the available space */ padding: 1em; } -/* Mobile styles */ -@media (max-width: 600px) { - header { - font-size: 1.5em; - } - main { - padding: 0.5em; - } +footer { + background-color: #333; + color: white; + text-align: center; + padding: 1em; } diff --git a/templates/add_account.html b/templates/add_account.html index cf2f6d8..271f27f 100644 --- a/templates/add_account.html +++ b/templates/add_account.html @@ -6,6 +6,7 @@ Add Account - KTVManager +