From 90941226da719d465a2779b49098331d04f046c0 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Tue, 5 Nov 2024 04:15:36 -0700 Subject: [PATCH] Clean up some html (to php) and class code in header.php. --- Rocksolid_Light/common/header.php | 39 ++++++++++++------------- Rocksolid_Light/common/themes/style.css | 12 ++++++-- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/Rocksolid_Light/common/header.php b/Rocksolid_Light/common/header.php index fa806d6..3bdd340 100644 --- a/Rocksolid_Light/common/header.php +++ b/Rocksolid_Light/common/header.php @@ -5,7 +5,7 @@ if (basename(getcwd()) == 'mods') { $rootdir = "../"; } -include ($rootdir . 'common/config.inc.php'); +include($rootdir . 'common/config.inc.php'); global $OVERRIDES; $CONFIG = include $config_file; @@ -17,12 +17,12 @@ echo ''; // Set tzo if possible ?> - + '; -?> - - - - - '; +echo ''; +echo ''; +echo ''; echo '
Rocksolid Light - -
'; +echo 'Rocksolid Light'; +echo $CONFIG['rslight_title']; +echo '
'; -include ($config_dir . '/fortunes.conf'); +include($config_dir . '/fortunes.conf'); // If $config_dir/motd.txt is not blank, show it if (file_exists($config_dir . '/motd.txt')) { @@ -196,4 +195,4 @@ function head_mail_db_open($database, $table = 'messages') from_hide TEXT, to_hide TEXT)"); return ($dbh); -} \ No newline at end of file +} diff --git a/Rocksolid_Light/common/themes/style.css b/Rocksolid_Light/common/themes/style.css index 0fa2aef..3902348 100644 --- a/Rocksolid_Light/common/themes/style.css +++ b/Rocksolid_Light/common/themes/style.css @@ -259,11 +259,19 @@ font-size: 0.6em; } -.np_header_bar_top { +.np_header_table_top { background: var(--color-header-background); - padding: 0px; + padding-top: 0px; margin-bottom: 0px; color: black; + width: 100%; + vertical-align: middle; +} + +.np_header_bar_top { + background: var(--color-header-background); + padding-top: 0px; + margin-bottom: 0px; font-size: 0.5em; width: 100%; vertical-align: middle;