From 998a7818ae05984e644f995c9f3d14f1ed44a13f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 23 Sep 2020 01:01:23 -0400 Subject: [PATCH 1/2] feat: topic page changes --- less/category.less | 11 ----------- less/tags.less | 11 +++++++++++ less/topic.less | 26 +++++++++++++++++++------- templates/partials/post_bar.tpl | 5 ----- templates/partials/topic/stats.tpl | 16 ++++++++++------ templates/partials/topic/tags.tpl | 3 +-- templates/topic.tpl | 24 ++++++++++++++++++++---- 7 files changed, 61 insertions(+), 35 deletions(-) diff --git a/less/category.less b/less/category.less index f183aeb..7966e6c 100644 --- a/less/category.less +++ b/less/category.less @@ -87,17 +87,6 @@ } } - .tag-list { - display: inline-block; - .tag { - text-transform: uppercase; - font-size: 10px; - background: lighten(@gray-lighter, 2.5%); - padding: 5px; - white-space: nowrap; - } - } - .fa-stack { font-size: 90%; border-radius: 50%; diff --git a/less/tags.less b/less/tags.less index f85d2de..95a8622 100644 --- a/less/tags.less +++ b/less/tags.less @@ -23,4 +23,15 @@ font-weight: 700; white-space: nowrap; border-left: none; +} + +.tag-list { + display: inline-block; + .tag { + text-transform: uppercase; + font-size: 10px; + background: lighten(@gray-lighter, 2.5%); + padding: 5px; + white-space: nowrap; + } } \ No newline at end of file diff --git a/less/topic.less b/less/topic.less index 54c5880..04eb69c 100644 --- a/less/topic.less +++ b/less/topic.less @@ -5,7 +5,7 @@ h1 { line-height: 40px; - margin-bottom: 30px; + margin-bottom: 10px; .topic-title { word-wrap: break-word; @@ -31,6 +31,22 @@ text-transform: initial; } } + .topic-info { + border-bottom: 1px solid @post-border-color; + margin-bottom: 10px; + padding-bottom: 10px; + } + .category-item { + .icon { + min-width: 23px; + min-height: 23px; + font-size: 10px; + line-height: 12px; + padding: 5px; + margin-right: 5px; + border-radius: 50%; + } + } .posts { h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child { @@ -202,7 +218,8 @@ } .stats { - margin: 0px 10px 0px 10px; + font-size: 12px; + margin: 0px 5px 0px 5px; float: left; } @@ -257,11 +274,6 @@ } } - .tags { - vertical-align: -40%; - margin-bottom: @post-padding; - } - h1 { .btn-group, .btn { margin-left: 15px; diff --git a/templates/partials/post_bar.tpl b/templates/partials/post_bar.tpl index 8543967..1abefc2 100644 --- a/templates/partials/post_bar.tpl +++ b/templates/partials/post_bar.tpl @@ -1,7 +1,4 @@
-
- -
@@ -10,8 +7,6 @@ - - diff --git a/templates/partials/topic/stats.tpl b/templates/partials/topic/stats.tpl index 37eadc9..7cd47d0 100644 --- a/templates/partials/topic/stats.tpl +++ b/templates/partials/topic/stats.tpl @@ -1,8 +1,12 @@ -