Small style and other fixes.

This commit is contained in:
Dominik Picheta 2018-05-10 16:24:11 +01:00
commit cf37fa34c4
4 changed files with 21 additions and 5 deletions

View file

@ -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,

View file

@ -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"):

View file

@ -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;
}
}

View file

@ -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