From 91e8538c3cd7130e81e2781f14ce3ddff452d4f1 Mon Sep 17 00:00:00 2001 From: Dominic Ferrando Date: Thu, 24 Apr 2025 20:00:22 -0400 Subject: [PATCH] Small cleanup --- web/static/index.css | 50 +++++++++++++++++++++---------------------- web/views/board.templ | 32 ++++++++++++++------------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/web/static/index.css b/web/static/index.css index 4570100..b15af8e 100644 --- a/web/static/index.css +++ b/web/static/index.css @@ -2,7 +2,6 @@ :root { --bg-main: #EEF2FF; --text-muted: #575F68; - --danger: #FF0000; --brand-red: #AF0A0F; --form-header-bg: #9988EE; @@ -17,13 +16,15 @@ --reply-link: #DD0000; --dialog-bg: #EDEFF7; + + --danger: #FF0000; + --warning-bg: #FFAAAA; + --black: #000000; + --heading-bg: #00007F; --heading-text: #FFFFFF; --box-bg: #ECEFF6; - --warning-bg: #FFAAAA; - --black: #000000; - --shadow: rgba(0, 0, 0, 0.25); } @@ -136,12 +137,29 @@ body { } .catalog-preview-counts { - display: block; font-size: 12px; - margin-bottom: 5px; margin-top: 2.5px; } +.catalog-preview-counts-container { + position: relative; + margin-top: 4px; +} + +.icons-container { + position: absolute; + right: 100%; + margin-right: 6px; + top: 50%; + left: 22%; + transform: translateY(-50%); + display: flex; +} + +.icons-container .icon { + margin-left: 2px; +} + /* NEW THREAD BUTTON/FORM */ #newThreadBtn { @@ -201,26 +219,6 @@ body { margin: 2rem; } -.thread-title { - position: relative; - display: inline-block; - font-size: 14px; - font-weight: bold; -} - -.thread-icons { - position: absolute; - right: 100%; - margin-right: 6px; - top: 50%; - transform: translateY(-50%); - display: flex; -} - -.thread-icons .icon { - margin-left: 2px; -} - .thread-subject { font-weight: bold; color: var(--link-primary); diff --git a/web/views/board.templ b/web/views/board.templ index c983552..2adbd82 100644 --- a/web/views/board.templ +++ b/web/views/board.templ @@ -82,21 +82,8 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont preview.ThumbPath) } /> - - R: { replyCount } / I: { ipCount } - if catalogContext.IsAdmin { - - M - - } - -

- +
+ if preview.Locked { Locked } @@ -104,6 +91,21 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont Pinned } + + R: { replyCount } / I: { ipCount } + if catalogContext.IsAdmin { + + M + + } + +
+

{ preview.Subject }