Small cleanup
This commit is contained in:
+24
-26
@@ -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);
|
||||||
|
|||||||
+11
-9
@@ -82,6 +82,15 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont
|
|||||||
preview.ThumbPath) }
|
preview.ThumbPath) }
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
<div class="catalog-preview-counts-container">
|
||||||
|
<span class="icons-container">
|
||||||
|
if preview.Locked {
|
||||||
|
<img src="/static/media/icons/lock.svg" alt="Locked" class="icon"/>
|
||||||
|
}
|
||||||
|
if preview.Pinned {
|
||||||
|
<img src="/static/media/icons/pin.svg" alt="Pinned" class="icon"/>
|
||||||
|
}
|
||||||
|
</span>
|
||||||
<strong class="catalog-preview-counts">
|
<strong class="catalog-preview-counts">
|
||||||
R: { replyCount } / I: { ipCount }
|
R: { replyCount } / I: { ipCount }
|
||||||
if catalogContext.IsAdmin {
|
if catalogContext.IsAdmin {
|
||||||
@@ -95,15 +104,8 @@ templ ThreadsCatalog(previews []CatalogThreadPreview, catalogContext CatalogCont
|
|||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
</strong>
|
</strong>
|
||||||
<h1 class="thread-title">
|
</div>
|
||||||
<span class="thread-icons">
|
<h1 style="margin-top: 5px;">
|
||||||
if preview.Locked {
|
|
||||||
<img src="/static/media/icons/lock.svg" alt="Locked" class="icon"/>
|
|
||||||
}
|
|
||||||
if preview.Pinned {
|
|
||||||
<img src="/static/media/icons/pin.svg" alt="Pinned" class="icon"/>
|
|
||||||
}
|
|
||||||
</span>
|
|
||||||
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user