Small cleanup

This commit is contained in:
Dominic Ferrando
2025-04-24 20:00:22 -04:00
parent b5a0f58afd
commit 91e8538c3c
2 changed files with 41 additions and 41 deletions
+24 -26
View File
@@ -2,7 +2,6 @@
:root { :root {
--bg-main: #EEF2FF; --bg-main: #EEF2FF;
--text-muted: #575F68; --text-muted: #575F68;
--danger: #FF0000;
--brand-red: #AF0A0F; --brand-red: #AF0A0F;
--form-header-bg: #9988EE; --form-header-bg: #9988EE;
@@ -17,13 +16,15 @@
--reply-link: #DD0000; --reply-link: #DD0000;
--dialog-bg: #EDEFF7; --dialog-bg: #EDEFF7;
--danger: #FF0000;
--warning-bg: #FFAAAA;
--black: #000000;
--heading-bg: #00007F; --heading-bg: #00007F;
--heading-text: #FFFFFF; --heading-text: #FFFFFF;
--box-bg: #ECEFF6; --box-bg: #ECEFF6;
--warning-bg: #FFAAAA;
--black: #000000;
--shadow: rgba(0, 0, 0, 0.25); --shadow: rgba(0, 0, 0, 0.25);
} }
@@ -136,12 +137,29 @@ body {
} }
.catalog-preview-counts { .catalog-preview-counts {
display: block;
font-size: 12px; font-size: 12px;
margin-bottom: 5px;
margin-top: 2.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 */ /* NEW THREAD BUTTON/FORM */
#newThreadBtn { #newThreadBtn {
@@ -201,26 +219,6 @@ body {
margin: 2rem; 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 { .thread-subject {
font-weight: bold; font-weight: bold;
color: var(--link-primary); color: var(--link-primary);
+17 -15
View File
@@ -82,21 +82,8 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont
preview.ThumbPath) } preview.ThumbPath) }
/> />
</a> </a>
<strong class="catalog-preview-counts"> <div class="catalog-preview-counts-container">
R: { replyCount } / I: { ipCount } <span class="icons-container">
if catalogContext.IsAdmin {
<span
id={ fmt.Sprintf("%s-admintoggle", elThreadId) }
class="link-button"
style="font-size:10px;margin-left:5px;"
_={ fmt.Sprintf(`on click call #%s-dialog.showModal()`, elThreadId) }
>
M
</span>
}
</strong>
<h1 class="thread-title">
<span class="thread-icons">
if preview.Locked { if preview.Locked {
<img src="/static/media/icons/lock.svg" alt="Locked" class="icon"/> <img src="/static/media/icons/lock.svg" alt="Locked" class="icon"/>
} }
@@ -104,6 +91,21 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont
<img src="/static/media/icons/pin.svg" alt="Pinned" class="icon"/> <img src="/static/media/icons/pin.svg" alt="Pinned" class="icon"/>
} }
</span> </span>
<strong class="catalog-preview-counts">
R: { replyCount } / I: { ipCount }
if catalogContext.IsAdmin {
<span
id={ fmt.Sprintf("%s-admintoggle", elThreadId) }
class="link-button"
style="font-size:10px;margin-left:5px;"
_={ fmt.Sprintf(`on click call #%s-dialog.showModal()`, elThreadId) }
>
M
</span>
}
</strong>
</div>
<h1 style="margin-top: 5px;">
<a href={ templ.URL(preview.ThreadURL) } class="catalog-preview-link"> <a href={ templ.URL(preview.ThreadURL) } class="catalog-preview-link">
{ preview.Subject } { preview.Subject }
</a> </a>