From fc4d9b27e8197791db93a92b8576ede74dd090f8 Mon Sep 17 00:00:00 2001
From: Retro_Guy
Date: Tue, 3 Dec 2024 02:37:55 -0700
Subject: [PATCH] Preliminary changes for non-scrolling header.
---
Rocksolid_Light/common/header.php | 3 ++-
Rocksolid_Light/common/themes/style.css | 20 +++++++++++++-
Rocksolid_Light/rocksolid/lib/message.inc.php | 27 +++++++++----------
Rocksolid_Light/rocksolid/tail.inc | 3 ++-
4 files changed, 35 insertions(+), 18 deletions(-)
diff --git a/Rocksolid_Light/common/header.php b/Rocksolid_Light/common/header.php
index 3bdd340..62cfa6e 100644
--- a/Rocksolid_Light/common/header.php
+++ b/Rocksolid_Light/common/header.php
@@ -52,6 +52,7 @@ if ((isset($_SESSION['theme'])) && file_exists($rootdir . '/common/themes/' . $d
}
echo '';
+echo '';
$config_name = basename(getcwd());
if (!isset($OVERRIDES['disable_msgid_search']) || $OVERRIDES['disable_msgid_search'] == false) {
diff --git a/Rocksolid_Light/common/themes/style.css b/Rocksolid_Light/common/themes/style.css
index f65dc03..6af2a86 100644
--- a/Rocksolid_Light/common/themes/style.css
+++ b/Rocksolid_Light/common/themes/style.css
@@ -680,7 +680,7 @@ input[id^=trigger_headers]:checked+.display_headers_on {
color: var(--color-text);
border: solid 1px var(--color-link);
word-wrap: break-word;
- position: absolute;
+
z-index: 1000;
font-size: 1.3em;
width: 98%;
@@ -1055,9 +1055,27 @@ textarea.configuration {
}
}
+.header_top {
+ flex-grow: 0;
+}
+
+.scroll {
+ flex-grow: 1;
+ overflow: auto;
+}
+
/* Desktop Styles */
@media only screen and (min-device-width: 821px) {
body {
+ /* disabling body scrolling */
+ display: flex;
+ flex-direction: column;
+ position: absolute;
+ top: 0;
+ right: 0;
+ left: 0;
+ bottom: 0;
+ margin: auto;
margin-left: 10px;
margin-right: 10px;
color: var(--color-text);
diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php
index e8ecf15..58d6e39 100644
--- a/Rocksolid_Light/rocksolid/lib/message.inc.php
+++ b/Rocksolid_Light/rocksolid/lib/message.inc.php
@@ -528,10 +528,10 @@ function show_header($head, $group, $local_poster = false)
echo '
';
}
- echo '' . htmlspecialchars($head->id) . '
';
- echo '' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '
';
+ echo '';
+ echo '';
echo '';
echo '';
- echo '';
}
function show_header_short($head, $group, $local_poster = false)
@@ -644,10 +643,10 @@ function show_header_short($head, $group, $local_poster = false)
echo '';
}
- echo '' . htmlspecialchars($head->id) . '
';
- echo '' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '
';
+ echo '';
+ echo '';
echo '
';
- // echo '';
}
function show_header_short_with_subject($head, $group, $local_poster = false)
@@ -715,10 +712,10 @@ function show_header_short_with_subject($head, $group, $local_poster = false)
echo '';
// Display javascript links and time interval
- echo '
' . htmlspecialchars($head->id) . '
';
- echo '
' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '
';
+ echo '
';
+ echo '
';
echo '