Small style and other fixes.
This commit is contained in:
parent
366bdadc90
commit
cf37fa34c4
4 changed files with 21 additions and 5 deletions
|
|
@ -1042,7 +1042,7 @@ proc selectThread(threadRow: seq[string]): Thread =
|
|||
topic: threadRow[1],
|
||||
category: Category(id: "", color: "#ff0000"), # TODO
|
||||
users: @[],
|
||||
replies: posts[0].parseInt,
|
||||
replies: posts[0].parseInt-1,
|
||||
views: threadRow[2].parseInt,
|
||||
activity: threadRow[3].parseInt,
|
||||
creation: posts[1].parseInt,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ proc genHeader(): VNode =
|
|||
result = buildHtml(header(id="main-navbar")):
|
||||
tdiv(class="navbar container grid-xl"):
|
||||
section(class="navbar-section"):
|
||||
a(href="/"):
|
||||
a(href=makeUri("/")):
|
||||
img(src="images/crown.png", id="img-logo") # TODO: Customisation.
|
||||
section(class="navbar-section"):
|
||||
tdiv(class="input-group input-inline"):
|
||||
|
|
|
|||
|
|
@ -94,6 +94,17 @@ $logo-height: $navbar-height - 20px;
|
|||
}
|
||||
|
||||
// - Thread table
|
||||
.thread-title {
|
||||
a, a:visited, a:hover {
|
||||
color: $body-font-color;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.visited {
|
||||
color: lighten($body-font-color, 40%);
|
||||
}
|
||||
}
|
||||
|
||||
$super-popular-color: #f86713;
|
||||
$popular-color: darken($super-popular-color, 25%);
|
||||
$views-color: #545d70;
|
||||
|
|
@ -212,7 +223,12 @@ $views-color: #545d70;
|
|||
|
||||
.post-title {
|
||||
margin-bottom: $control-padding-y*2;
|
||||
color: lighten($body-font-color, 20%);
|
||||
|
||||
&, a, a:visited, a:hover {
|
||||
color: lighten($body-font-color, 20%);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-username {
|
||||
font-weight: bold;
|
||||
display: inline-block;
|
||||
|
|
@ -253,7 +269,7 @@ $views-color: #545d70;
|
|||
box-shadow: inset 0 0 .4rem .01rem darken($secondary-btn-color, 80%);
|
||||
}
|
||||
|
||||
.like-button i {
|
||||
.like-button i:hover, .like-button i.fas {
|
||||
color: #f783ac;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ when defined(js):
|
|||
proc genThread(thread: Thread, isNew: bool, noBorder: bool): VNode =
|
||||
result = buildHtml():
|
||||
tr(class=class({"no-border": noBorder})):
|
||||
td():
|
||||
td(class="thread-title"):
|
||||
if thread.isLocked:
|
||||
italic(class="fas fa-lock fa-xs")
|
||||
a(href=makeUri("/t/" & $thread.id), onClick=anchorCB): text thread.topic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue