nodebb-theme-harmony 1.0.58 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scss/topic.scss +1 -17
- package/templates/partials/topic/post.tpl +3 -3
- package/templates/topic.tpl +2 -2
package/package.json
CHANGED
package/scss/topic.scss
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
.pagination-block { display: none; }
|
|
2
2
|
|
|
3
3
|
.page-topic {
|
|
4
|
-
[component="topic/title"] {
|
|
5
|
-
font-size: 28px;
|
|
6
|
-
line-height: 34px;
|
|
7
|
-
font-weight: $font-weight-semibold;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
4
|
[component="topic/reply"], [component="topic/reply/locked"], [component="topic/reply/guest"] {
|
|
11
5
|
font-size: 14px;
|
|
12
6
|
line-height: 20px;
|
|
@@ -20,7 +14,6 @@
|
|
|
20
14
|
@include media-breakpoint-down(md) {
|
|
21
15
|
max-width: calc(100vw - $grid-gutter-width);
|
|
22
16
|
}
|
|
23
|
-
list-style-type: none;
|
|
24
17
|
|
|
25
18
|
&.timeline {
|
|
26
19
|
@include timeline-style;
|
|
@@ -75,17 +68,12 @@
|
|
|
75
68
|
}
|
|
76
69
|
}
|
|
77
70
|
|
|
78
|
-
[component="post/reply-count"] {
|
|
79
|
-
font-size: $font-size-base * .75;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
71
|
[component="post/upvote"], [component="post/downvote"] {
|
|
83
72
|
&.upvoted, &.downvoted {
|
|
84
73
|
background-color: lighten($btn-ghost-hover-color, 5%);
|
|
85
74
|
|
|
86
75
|
&:hover {
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
background-color: $btn-ghost-hover-color;
|
|
89
77
|
}
|
|
90
78
|
}
|
|
91
79
|
}
|
|
@@ -98,10 +86,6 @@
|
|
|
98
86
|
}
|
|
99
87
|
|
|
100
88
|
[component="post/replies/container"] {
|
|
101
|
-
&:empty {
|
|
102
|
-
display: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
89
|
.icon {
|
|
106
90
|
display: none !important;
|
|
107
91
|
}
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
<div component="post/signature" data-uid="{posts.user.uid}" class="text-xs text-muted mt-2">{posts.user.signature}</div>
|
|
78
78
|
{{{ end }}}
|
|
79
79
|
|
|
80
|
-
<div class="
|
|
80
|
+
<div class="d-flex">
|
|
81
81
|
{{{ if !hideReplies }}}
|
|
82
|
-
<a component="post/reply-count" data-target-component="post/replies/container" href="#" class="d-flex gap-2 align-items-center mt-2 btn-outline border rounded-1 p-1 threaded-replies user-select-none
|
|
82
|
+
<a component="post/reply-count" data-target-component="post/replies/container" href="#" class="d-flex gap-2 align-items-center mt-2 btn-outline border rounded-1 p-1 threaded-replies user-select-none text-muted text-decoration-none text-xs {{{ if (!./replies || shouldHideReplyContainer(@value)) }}}hidden{{{ end }}}">
|
|
83
83
|
<span component="post/reply-count/avatars" class="avatars d-inline-flex gap-1 align-items-top {{{ if posts.replies.hasMore }}}hasMore{{{ end }}}">
|
|
84
84
|
{{{each posts.replies.users}}}
|
|
85
85
|
<span>{buildAvatar(posts.replies.users, "20px", true, "avatar-tooltip")}</span>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
{{{ end }}}
|
|
100
100
|
</div>
|
|
101
101
|
|
|
102
|
-
<div component="post/replies/container" class="my-2 col-11 border rounded-1 p-3"></div>
|
|
102
|
+
<div component="post/replies/container" class="my-2 col-11 border rounded-1 p-3 hidden-empty"></div>
|
|
103
103
|
|
|
104
104
|
<div component="post/actions" class="d-flex justify-content-end gap-1 post-tools">
|
|
105
105
|
<!-- IMPORT partials/topic/reactions.tpl -->
|
package/templates/topic.tpl
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class="d-flex flex-column gap-3" itemid="{url}" itemscope itemtype="https://schema.org/DiscussionForumPosting">
|
|
10
10
|
<div class="d-flex flex-wrap">
|
|
11
11
|
<div class="d-flex flex-column gap-3 flex-grow-1">
|
|
12
|
-
<h2 component="post/header" class="tracking-tight fw-semibold fs-
|
|
12
|
+
<h2 component="post/header" class="tracking-tight fw-semibold fs-3 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}" itemprop="headline">
|
|
13
13
|
<span class="topic-title" component="topic/title">{title}</span>
|
|
14
14
|
</h2>
|
|
15
15
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
{{{ end }}}
|
|
57
57
|
|
|
58
58
|
<div class="d-flex gap-0 gap-lg-5">
|
|
59
|
-
<ul component="topic" class="posts timeline mt-sm-2 p-0 py-3" style="min-width: 0;" data-tid="{tid}" data-cid="{cid}">
|
|
59
|
+
<ul component="topic" class="posts timeline list-unstyled mt-sm-2 p-0 py-3" style="min-width: 0;" data-tid="{tid}" data-cid="{cid}">
|
|
60
60
|
{{{each posts}}}
|
|
61
61
|
<li component="post" class="pt-4 {{{ if posts.deleted }}}deleted{{{ end }}} {{{ if posts.selfPost }}}self-post{{{ end }}} {{{ if posts.topicOwnerPost }}}topic-owner-post{{{ end }}}" <!-- IMPORT partials/data/topic.tpl -->>
|
|
62
62
|
<a component="post/anchor" data-index="{./index}" id="{increment(./index, "1")}"></a>
|