From 5f01ffbef10af2e6168b49046d2a943fe82bf933 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 8 Nov 2025 15:41:45 +0000 Subject: [PATCH] Move inline CSS to stylesheet - Moved all theme-related inline styles to CSS rules - Created proper selectors for labels, inputs, and buttons - Added utility-belt class to mobile menu for consistent styling - Removed redundant inline style attributes --- templates/base.html | 75 ++++++++++++++++++++++++++++++++++++++------- templates/chat.html | 18 +++++------ 2 files changed, 73 insertions(+), 20 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5550ebd..d82fecb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -515,6 +515,59 @@ transition: background-color 0.3s ease, border-color 0.3s ease; } + /* Labels styling */ + .utility-belt label { + color: var(--text-primary); + transition: color 0.3s ease; + } + + /* Username input styling */ + #username-input, #username-input-mobile { + width: 100%; + padding: 4px; + margin-top: 2px; + border: 1px solid var(--border-color); + border-radius: 3px; + background-color: var(--bg-secondary); + color: var(--text-primary); + transition: background-color 0.3s ease, border-color 0.3s ease; + } + + /* Search input styling */ + #search-keywords { + width: 100%; + text-align: center; + background-color: var(--bg-secondary); + color: var(--text-primary); + border: 1px solid var(--border-color); + padding: 8px; + border-radius: 5px; + transition: background-color 0.3s ease, border-color 0.3s ease; + } + + /* Theme toggle button styling */ + #theme-toggle-btn, #theme-toggle-btn-mobile { + width: 100%; + margin-top: 10px; + background-color: #6c757d; + color: white; + border: none; + padding: 8px; + border-radius: 4px; + cursor: pointer; + transition: background-color 0.3s ease; + } + + #theme-toggle-btn:hover, #theme-toggle-btn-mobile:hover { + background-color: #5a6268; + } + + /* User lists styling */ + #user-lists h3, #user-lists-mobile h3 { + color: var(--text-primary); + transition: color 0.3s ease; + } + /* Media query for mobile devices */ @media (max-width: 768px) { .main-container { @@ -536,7 +589,7 @@
- +
@@ -548,19 +601,19 @@
-
+
- - + +
- +
- +
-
@@ -581,9 +634,9 @@
-

Activities

+

Activities

@@ -599,13 +652,13 @@
-

Active Users

+

Active Users

-

Inactive Users

+

Inactive Users

diff --git a/templates/chat.html b/templates/chat.html index c1c87b1..e70b455 100644 --- a/templates/chat.html +++ b/templates/chat.html @@ -21,17 +21,17 @@

- - + +
- +
- +
-
@@ -53,9 +53,9 @@
-

Activities

+

Activities

@@ -71,13 +71,13 @@
-

Active Users

+

Active Users

-

Inactive Users

+

Inactive Users