nodebb-theme-persona 13.3.20 → 13.3.22
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
CHANGED
package/scss/topic.scss
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
.topic {
|
|
2
2
|
[component="post/header"] {
|
|
3
3
|
margin-top: 0px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
h1 {
|
|
7
4
|
line-height: 40px;
|
|
8
|
-
margin-bottom: 0px;
|
|
9
5
|
|
|
10
6
|
.topic-title {
|
|
11
7
|
word-wrap: break-word;
|
|
12
|
-
font-size: 24px;
|
|
13
8
|
color:inherit;
|
|
14
|
-
line-height: 32px;
|
|
15
|
-
@include media-breakpoint-down(sm) {
|
|
16
|
-
font-size: 18px;
|
|
17
|
-
line-height: 24px;
|
|
18
|
-
margin-top: 0px;
|
|
19
|
-
}
|
|
20
9
|
}
|
|
21
10
|
|
|
22
11
|
> span {
|
|
@@ -47,11 +36,6 @@
|
|
|
47
36
|
|
|
48
37
|
.topic-info {
|
|
49
38
|
border-bottom: 1px solid $post-border-color;
|
|
50
|
-
margin-bottom: 10px;
|
|
51
|
-
padding-bottom: 10px;
|
|
52
|
-
> * {
|
|
53
|
-
padding-top: 10px;
|
|
54
|
-
}
|
|
55
39
|
}
|
|
56
40
|
|
|
57
41
|
.posts {
|
|
@@ -59,34 +43,6 @@
|
|
|
59
43
|
margin-top: 0px;
|
|
60
44
|
}
|
|
61
45
|
|
|
62
|
-
h1 {
|
|
63
|
-
font-size: 22px;
|
|
64
|
-
margin: 10px 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
h2 {
|
|
68
|
-
font-size: 20px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
h3 {
|
|
72
|
-
text-transform: uppercase;
|
|
73
|
-
font-size: 16px;
|
|
74
|
-
font-weight: 900;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
h4 {
|
|
78
|
-
font-size: 17px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
h5 {
|
|
82
|
-
font-weight: 800;
|
|
83
|
-
text-transform: uppercase;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
h4, h5, h6 {
|
|
87
|
-
margin-top: 15px
|
|
88
|
-
}
|
|
89
|
-
|
|
90
46
|
.icon {
|
|
91
47
|
position: relative;
|
|
92
48
|
border-radius: 50%;
|
|
@@ -245,7 +201,7 @@
|
|
|
245
201
|
}
|
|
246
202
|
}
|
|
247
203
|
|
|
248
|
-
|
|
204
|
+
[component="post/tools"] {
|
|
249
205
|
font-size: 14px;
|
|
250
206
|
|
|
251
207
|
> a {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<span component="post/tools" class="dropdown
|
|
1
|
+
<span component="post/tools" class="dropdown bottom-sheet d-inline-block {{{ if !posts.display_post_menu }}}hidden{{{ end }}}">
|
|
2
2
|
<a class="dropdown-toggle d-block" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-fw fa-ellipsis-v"></i></a>
|
|
3
3
|
<ul class="dropdown-menu dropdown-menu-end" role="menu"></ul>
|
|
4
4
|
</span>
|
|
@@ -86,9 +86,7 @@
|
|
|
86
86
|
<span class="replies-count small" component="post/reply-count/text" data-replies="{posts.replies.count}">{posts.replies.text}</span>
|
|
87
87
|
<span class="replies-last hidden-xs small">[[topic:last-reply-time]] <span class="timeago" title="{posts.replies.timestampISO}"></span></span>
|
|
88
88
|
|
|
89
|
-
<i class="fa fa-fw fa-chevron-
|
|
90
|
-
<i class="fa fa-fw fa-chevron-down hidden" component="post/replies/close"></i>
|
|
91
|
-
<i class="fa fa-fw fa-spin fa-spinner hidden" component="post/replies/loading"></i>
|
|
89
|
+
<i class="fa fa-fw fa-chevron-down" component="post/replies/open"></i>
|
|
92
90
|
</a>
|
|
93
91
|
{{{ end }}}
|
|
94
92
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<div component="topic/reply/container" class="btn-group
|
|
1
|
+
<div component="topic/reply/container" class="btn-group bottom-sheet <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">
|
|
2
2
|
<a href="{config.relative_path}/compose?tid={tid}" class="btn btn-sm btn-primary" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-reply visible-xs-inline"></i><span class="visible-sm-inline visible-md-inline visible-lg-inline"> [[topic:reply]]</span></a>
|
|
3
3
|
<button type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
4
4
|
<span class="caret"></span>
|
package/templates/topic.tpl
CHANGED
|
@@ -10,29 +10,36 @@
|
|
|
10
10
|
<meta itemprop="author" itemscope itemtype="https://schema.org/Person" itemref="topicAuthorName{{{ if author.userslug }}} topicAuthorUrl{{{ end }}}">
|
|
11
11
|
<meta id="topicAuthorName" itemprop="name" content="{author.username}">
|
|
12
12
|
{{{ if author.userslug }}}<meta id="topicAuthorUrl" itemprop="url" content="{config.relative_path}/user/{author.userslug}">{{{ end }}}
|
|
13
|
-
<div class="topic-header sticky-top">
|
|
14
|
-
<h1 component="post/header"
|
|
15
|
-
<
|
|
16
|
-
<span
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
<div class="topic-header sticky-top mb-3">
|
|
14
|
+
<h1 component="post/header" itemprop="name">
|
|
15
|
+
<div class="topic-title d-flex">
|
|
16
|
+
<span class="fs-3" component="topic/title">{title}</span>
|
|
17
|
+
</div>
|
|
18
|
+
</h1>
|
|
19
|
+
|
|
20
|
+
<div class="topic-info pb-2 d-flex gap-3 align-items-center flex-wrap">
|
|
21
|
+
<span component="topic/labels" class="d-flex text-md gap-2 {{{ if (!scheduled && (!pinned && (!locked && (!oldCid && !icons.length)))) }}}hidden{{{ end }}}">
|
|
22
|
+
<span component="topic/scheduled" class="badge badge border border-gray-300 text-body {{{ if !scheduled }}}hidden{{{ end }}}">
|
|
23
|
+
<i class="fa fa-clock-o"></i> [[topic:scheduled]]
|
|
24
|
+
</span>
|
|
25
|
+
<span component="topic/pinned" class="badge badge border border-gray-300 text-body {{{ if (scheduled || !pinned) }}}hidden{{{ end }}}">
|
|
26
|
+
<i class="fa fa-thumb-tack"></i> {{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {isoTimeToLocaleString(./pinExpiryISO, config.userLang)}]]{{{ end }}}
|
|
27
|
+
</span>
|
|
28
|
+
<span component="topic/locked" class="badge badge border border-gray-300 text-body {{{ if !locked }}}hidden{{{ end }}}">
|
|
29
|
+
<i class="fa fa-lock"></i> [[topic:locked]]
|
|
22
30
|
</span>
|
|
23
|
-
<
|
|
31
|
+
<a component="topic/moved" href="{config.relative_path}/category/{oldCid}" class="badge badge border border-gray-300 text-body text-decoration-none {{{ if !oldCid }}}hidden{{{ end }}}">
|
|
32
|
+
<i class="fa fa-arrow-circle-right"></i> {{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}
|
|
33
|
+
</a>
|
|
34
|
+
{{{each icons}}}<span class="lh-1">{@value}</span>{{{end}}}
|
|
24
35
|
</span>
|
|
25
|
-
</h1>
|
|
26
36
|
|
|
27
|
-
<div class="topic-info clearfix">
|
|
28
37
|
<div class="category-item d-inline-block">
|
|
29
38
|
{buildCategoryIcon(category, "24px", "rounded-circle")}
|
|
30
39
|
<a href="{config.relative_path}/category/{category.slug}">{category.name}</a>
|
|
31
40
|
</div>
|
|
32
41
|
|
|
33
|
-
<div data-tid="{./tid}" component="topic/tags" class="tags tag-list d-inline-block hidden-xs">
|
|
34
|
-
<!-- IMPORT partials/topic/tags.tpl -->
|
|
35
|
-
</div>
|
|
42
|
+
<div data-tid="{./tid}" component="topic/tags" class="tags tag-list d-inline-block hidden-xs hidden-empty"><!-- IMPORT partials/topic/tags.tpl --></div>
|
|
36
43
|
<div class="d-inline-block hidden-xs">
|
|
37
44
|
<!-- IMPORT partials/topic/stats.tpl -->
|
|
38
45
|
</div>
|
|
@@ -44,8 +51,9 @@
|
|
|
44
51
|
<!-- IMPORT partials/topic/browsing-users.tpl -->
|
|
45
52
|
</div>
|
|
46
53
|
{{{ end }}}
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
<div class="ms-auto">
|
|
55
|
+
<!-- IMPORT partials/post_bar.tpl -->
|
|
56
|
+
</div>
|
|
49
57
|
</div>
|
|
50
58
|
</div>
|
|
51
59
|
{{{ if merger }}}
|