Rework the layout for small screens.

From the live site: local Noto Sans, a flexible layout up to 1000px, and
a slide-out sidebar menu on small screens. Remove the unused Genericons
font and logo images.
This commit is contained in:
tim
2026-09-25 23:32:08 +02:00
parent b94dd648ec
commit dd43940366
20 changed files with 390 additions and 769 deletions
+9 -8
View File
@@ -15,7 +15,7 @@ function display_stories($id = NULL) {
$result = get_post_data(TRUE);
$nolink = TRUE;
} else if ($action == 'submit') {
$date = 'Posted '.gmdate("Y-m-d H:i:s");
$date = 'Posted '.gmdate("Y-m-d H:i");
if (!$is_admin) {
$result = get_post_data(TRUE);
$nolink = TRUE;
@@ -27,7 +27,7 @@ function display_stories($id = NULL) {
}
if (count($result) == 0) {
$page .= '<div class="boxline"></div>'."\n";
$page .= ''."\n";
if ($search) {
$page .= '<div class="box">'."\n";
$page .= '<p>No articles found.</p>
@@ -40,18 +40,19 @@ searches the title, author, date, and the text of each article.</p>'."\n";
$page .= '<p>No articles found.</p>';
$page .= '</div>'."\n";
}
$page .= '<div class="boxline"></div>'."\n";
$page .= ''."\n";
return $page;
}
$page .= '<div class="boxline"></div>'."\n";
$page .= '<ul class="article-list">'."\n";
foreach ($result as $entry) {
if (empty($entry['id']) && isset($_SESSION['allow_queue_image'])) {
$entry['id'] = $_SESSION['allow_queue_image'];
}
if ($entry['date'])
$date = '<time datetime="'.date("Y-m-d\TH:i:sP", strtotime($entry['date'])).'">' . $entry['date'] . '</time>';
$page .= '<div class="box">';
$date = '<time datetime="'.date("Y-m-d\TH:i:sP", strtotime($entry['date'])).'">' .
date("Y-m-d H:i", strtotime($entry['date'])) . '</time>';
$page .= '<li class="box">';
$page .= '<article>';
if ($is_admin && !$editable) {
$page .= '<span class="right">[<a href="/publish/edit?id='.$entry['id'].'&amp;queue='.$entry['queue_url'].'">edit</a>]</span>';
@@ -86,9 +87,9 @@ searches the title, author, date, and the text of each article.</p>'."\n";
} else {
$page .= $entry['story']."\n";
}
$page .= "</article>\n</div>\n";
$page .= "</article>\n</li>\n";
}
$page .= '<div class="boxline"></div>'."\n";
$page .= '</ul>'."\n";
if (count($result) > 1)
$page .= get_pager();