No header scrolling for all formats.

This commit is contained in:
Retro_Guy 2024-12-08 04:31:51 -07:00
parent e1f5b3b27e
commit 899a56ff16
2 changed files with 68 additions and 21 deletions

View File

@ -60,9 +60,11 @@ echo '<td class="np_td_header_bar_logo_image"><a href="' . $CONFIG['default_cont
echo '<img src="' . $header_image . '" alt="Rocksolid Light"';
echo ' class="responsive_image"></a></td>';
echo '<td class="header_page_title_top">';
echo '<p class="header_page_title_top">';
echo $CONFIG['rslight_title'];
echo '</td>';
echo '<td class="header_links_text">';
echo '</p></td>';
echo '<td class="header_links">';
echo '<div class="header_links_text">';
if (isset($user) && $user && check_unread_mail() == true) {
$unread = true;
@ -79,20 +81,20 @@ foreach ($linklist as $link) {
}
if ($unread && (strpos($linkitem[1], 'spoolnews/mail.php') !== false)) {
echo '<strong>';
echo '<a class="np_header_links" href="' . trim($linkitem[1]) . '">' . trim(strtoupper($linkitem[0])) . '</a>&nbsp;&nbsp;';
echo '<a class="header_links_text" href="' . trim($linkitem[1]) . '">' . trim(strtoupper($linkitem[0])) . '</a>&nbsp;&nbsp;';
echo '</strong>';
} else {
echo '<a class="np_header_links" href="' . trim($linkitem[1]) . '">' . trim($linkitem[0]) . '</a>&nbsp;&nbsp;';
echo '<a class="header_links_text" href="' . trim($linkitem[1]) . '">' . trim($linkitem[0]) . '</a>&nbsp;&nbsp;';
}
}
echo '<a class="np_header_links" href="../spoolnews/user.php">';
echo '<a class="header_links_text" href="../spoolnews/user.php">';
if (isset($user)) {
echo '(' . $_COOKIE['mail_name'] . ')';
} else {
echo 'login';
}
echo '</a>';
echo '</td></tr>';
echo '</div></td></tr>';
echo '</table>';
include($config_dir . '/fortunes.conf');

View File

@ -258,7 +258,28 @@
background: var(--color-visited);
}
/* header bar logo image (td) */
.np_td_header_bar_logo_image {
width: 30%;
}
.header_page_title_top {
text-decoration: none;
color: var(--color-header-link) !important;
font-size: 1.3em;
}
.header_top {
flex-grow: 0;
width: 100%;
}
.header_links {
color: var(--color-header-link) !important;
}
.header_links_text {
color: var(--color-header-link) !important;
text-align: right
}
@ -968,6 +989,17 @@ textarea.configuration {
/* Mobile Styles */
@media only screen and (max-device-width: 480px) {
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);
background: var(--color-light);
font-family: Arial, Helvetica, sans-serif;
@ -1011,6 +1043,23 @@ textarea.configuration {
display: none;
}
.header_page_title_top {
text-decoration: none;
color: var(--color-header-link) !important;
font-size: 0.5em;
}
.header_links {
display: block;
color: var(--color-header-link) !important;
}
.header_links_text {
display: inline-block;
color: var(--color-header-link) !important;
text-align: right
}
.np_title {
font-size: 1em;
}
@ -1028,6 +1077,17 @@ textarea.configuration {
/* Tablet Styles */
@media only screen and (min-device-width: 481px) and (max-device-width: 820px) {
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);
background: var(--color-light);
font-family: Arial, Helvetica, sans-serif;
@ -1068,10 +1128,6 @@ textarea.configuration {
}
}
.header_top {
flex-grow: 0;
}
.scroll {
flex-grow: 1;
overflow: auto;
@ -1888,17 +1944,6 @@ td.config_table_row_submit {
font-size: 0.9em;
}
/* header bar logo image (td) */
.np_td_header_bar_logo_image {
width: 30%;
}
.header_page_title_top {
text-decoration: none;
color: var(--color-header-link) !important;
font-size: 1.5em;
}
/* display motd (fortunes) */
.np_display_motd {
box-sizing: border-box;