Preliminary changes for non-scrolling header.
This commit is contained in:
parent
7c2c0b24cb
commit
fc4d9b27e8
|
@ -52,6 +52,7 @@ if ((isset($_SESSION['theme'])) && file_exists($rootdir . '/common/themes/' . $d
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</head><body>';
|
echo '</head><body>';
|
||||||
|
echo '<div class="header_top">';
|
||||||
|
|
||||||
echo '<table class="np_header_table_top">';
|
echo '<table class="np_header_table_top">';
|
||||||
echo '<tr class="np_header_bar_top">';
|
echo '<tr class="np_header_bar_top">';
|
||||||
|
@ -121,7 +122,7 @@ foreach ($menulist as $menu) {
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
}
|
}
|
||||||
echo '</tr></table>';
|
echo '</tr></table>';
|
||||||
|
echo '</div><div class="scroll">';
|
||||||
$config_name = basename(getcwd());
|
$config_name = basename(getcwd());
|
||||||
|
|
||||||
if (!isset($OVERRIDES['disable_msgid_search']) || $OVERRIDES['disable_msgid_search'] == false) {
|
if (!isset($OVERRIDES['disable_msgid_search']) || $OVERRIDES['disable_msgid_search'] == false) {
|
||||||
|
|
|
@ -680,7 +680,7 @@ input[id^=trigger_headers]:checked+.display_headers_on {
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
border: solid 1px var(--color-link);
|
border: solid 1px var(--color-link);
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
position: absolute;
|
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
width: 98%;
|
width: 98%;
|
||||||
|
@ -1055,9 +1055,27 @@ textarea.configuration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header_top {
|
||||||
|
flex-grow: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scroll {
|
||||||
|
flex-grow: 1;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* Desktop Styles */
|
/* Desktop Styles */
|
||||||
@media only screen and (min-device-width: 821px) {
|
@media only screen and (min-device-width: 821px) {
|
||||||
body {
|
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-left: 10px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
|
|
|
@ -528,10 +528,10 @@ function show_header($head, $group, $local_poster = false)
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<p id="' . $head->id . 'copy"';
|
echo '<textarea id="' . $head->id . 'copy"';
|
||||||
echo ' style="position: absolute; z-index: -9999;">' . htmlspecialchars($head->id) . '</p>';
|
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . htmlspecialchars($head->id) . '</textarea>';
|
||||||
echo '<p id="' . $head->number . 'copy"';
|
echo '<textarea id="' . $head->number . 'copy"';
|
||||||
echo ' style="position: absolute; z-index: -9999;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</p>';
|
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</textarea>';
|
||||||
|
|
||||||
echo '<form><span class="short_header_javascript_links">';
|
echo '<form><span class="short_header_javascript_links">';
|
||||||
if ($article_show["trigger_headers"]) {
|
if ($article_show["trigger_headers"]) {
|
||||||
|
@ -555,7 +555,6 @@ function show_header($head, $group, $local_poster = false)
|
||||||
<?php
|
<?php
|
||||||
echo '</span></form>';
|
echo '</span></form>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</div>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_header_short($head, $group, $local_poster = false)
|
function show_header_short($head, $group, $local_poster = false)
|
||||||
|
@ -644,10 +643,10 @@ function show_header_short($head, $group, $local_poster = false)
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<p id="' . $head->id . 'copy"';
|
echo '<textarea id="' . $head->id . 'copy"';
|
||||||
echo ' style="position: absolute; z-index: -9999;">' . htmlspecialchars($head->id) . '</p>';
|
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . htmlspecialchars($head->id) . '</textarea>';
|
||||||
echo '<p id="' . $head->number . 'copy"';
|
echo '<textarea id="' . $head->number . 'copy"';
|
||||||
echo ' style="position: absolute; z-index: -9999;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</p>';
|
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</textarea>';
|
||||||
|
|
||||||
echo '<form><span class="short_header_javascript_links">';
|
echo '<form><span class="short_header_javascript_links">';
|
||||||
if ($article_show["trigger_headers"]) {
|
if ($article_show["trigger_headers"]) {
|
||||||
|
@ -698,8 +697,6 @@ function show_header_short($head, $group, $local_poster = false)
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
// echo '</p>';
|
|
||||||
// echo '</div>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_header_short_with_subject($head, $group, $local_poster = false)
|
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 '<div class="np_article_header">';
|
echo '<div class="np_article_header">';
|
||||||
|
|
||||||
// Display javascript links and time interval
|
// Display javascript links and time interval
|
||||||
echo '<p id="' . $head->id . 'copy"';
|
echo '<textarea id="' . $head->id . 'copy"';
|
||||||
echo ' style="position: absolute; z-index: -9999;">' . htmlspecialchars($head->id) . '</p>';
|
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . htmlspecialchars($head->id) . '</textarea>';
|
||||||
echo '<p id="' . $head->number . 'copy"';
|
echo '<textarea id="' . $head->number . 'copy"';
|
||||||
echo ' style="position: absolute; z-index: -9999;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</p>';
|
echo ' style="position: fixed; height: 0; overflow: hidden; border:none;">' . $sitelink . '/' . $config_name . '/article-flat.php?id=' . $head->number . '&group=' . urlencode($group) . '#' . $head->number . '</textarea>';
|
||||||
|
|
||||||
echo '<table class="show_header_short_with_subject_table">';
|
echo '<table class="show_header_short_with_subject_table">';
|
||||||
|
|
||||||
|
|
|
@ -15,4 +15,5 @@ echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank>
|
||||||
echo ' ';
|
echo ' ';
|
||||||
echo '<a href="http://git.fwfwqtpi2ofmehzdxe3e2htqfmhwfciwivpnsztv7dvpuamhr72ktlqd.onion/novabbs/rocksolid-light" target=_blank>tor</a>';
|
echo '<a href="http://git.fwfwqtpi2ofmehzdxe3e2htqfmhwfciwivpnsztv7dvpuamhr72ktlqd.onion/novabbs/rocksolid-light" target=_blank>tor</a>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
echo '</div></body></html>';
|
Loading…
Reference in New Issue