From 37694b4e180295a50eff28c73f589f53fb6e7689 Mon Sep 17 00:00:00 2001 From: fatchan Date: Wed, 11 Dec 2019 10:43:34 +0100 Subject: [PATCH] minor style change --- gulp/res/css/style.css | 10 ++++---- views/includes/webringboardtable.pug | 2 +- views/pages/home.pug | 34 ++++++++++++---------------- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/gulp/res/css/style.css b/gulp/res/css/style.css index 061f1d67..0a9f81be 100644 --- a/gulp/res/css/style.css +++ b/gulp/res/css/style.css @@ -347,6 +347,10 @@ table { width: 700px; } +.w900 { + width: 900px; +} + th { background: var(--label-color); } @@ -909,10 +913,8 @@ table.boardtable td:nth-child(6) { visibility: visible; } -@media only screen and (max-width: 700px) { - table { - width: 100%; - } +table, .boardtable { + max-width: 100%; } @media only screen and (max-width: 600px) { diff --git a/views/includes/webringboardtable.pug b/views/includes/webringboardtable.pug index 4a336426..b90d4737 100644 --- a/views/includes/webringboardtable.pug +++ b/views/includes/webringboardtable.pug @@ -1,5 +1,5 @@ .table-container.flex-center.mv-10.text-center - table.boardtable + table.boardtable.w900 tr th Board th Description diff --git a/views/pages/home.pug b/views/pages/home.pug index 01761fac..0b74b9b9 100644 --- a/views/pages/home.pug +++ b/views/pages/home.pug @@ -6,31 +6,17 @@ block head block content h1.board-title #{meta.siteName} - .table-container.flex-center.mv-10 + .table-container.flex-center.mv-10.text-center table tr th.alt Welcome tr - td.text-center - p + td + pre.no-m-p | This is an anonymous imageboard, a type of BBS where anyone can post messages and share images. - p - | You do not need to register or provide any personal information to make a post. This lowers the barrier to entry, protects user identities and focuses on what is said, rather than who says it. - p - | Choose a board below to join the discussion, or - a(href='/create.html') create your own - | . + | You don't need to register or provide any personal information to make a post. + | Choose a board below to join the discussion, or #[a(href='/create.html') create your own]. if boards && boards.length > 0 - .table-container.flex-center.mv-10.text-center - table - tr - th Overall Stats - tr - td - p - | There are currently #[span.bold #{totalStats.total-totalStats.unlisted}] public boards, #[span.bold #{totalStats.total}] in total. - | Sitewide, #[span.bold #{totalStats.pph}] posts have been made in the last hour, #[span.bold #{totalStats.posts}] in total. - | #[span.bold #{fileStats.count}] files are being served, totaling #[span.bold #{fileStats.totalSizeString}]. include ../includes/boardtable.pug each board in boards tr @@ -44,3 +30,13 @@ block content td #{board.pph} td #{board.ips} td #{board.sequence_value-1} + .table-container.flex-center.mv-10.text-center + table(style='max-width:450px') + tr + th Overall Stats + tr + td + pre.no-m-p + | There are currently #[span.bold #{totalStats.total-totalStats.unlisted}] public boards, #[span.bold #{totalStats.total}] in total. + | Sitewide, #[span.bold #{totalStats.pph}] post#{totalStats.pph === 1 ? ' has' : 's have'} been made in the last hour, #[span.bold #{totalStats.posts}] in total. + | #[span.bold #{fileStats.count}] file#{fileStats.count === 1 ? ' is' : 's are'} being served, totaling #[span.bold #{fileStats.totalSizeString}].