nodebb-theme-persona 13.3.21 → 13.3.23
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 +0 -44
- package/templates/partials/topic/post.tpl +4 -2
- package/templates/topic.tpl +33 -20
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%;
|
|
@@ -16,8 +16,10 @@
|
|
|
16
16
|
|
|
17
17
|
<small class="d-flex">
|
|
18
18
|
<div class="d-flex align-items-center gap-1 flex-wrap w-100">
|
|
19
|
-
<strong class="text-nowrap">
|
|
20
|
-
<
|
|
19
|
+
<strong class="text-nowrap" itemprop="author" itemscope itemtype="https://schema.org/Person">
|
|
20
|
+
<meta itemprop="name" content="{./user.username}">
|
|
21
|
+
{{{ if ./user.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{./user.userslug}">{{{ end }}}
|
|
22
|
+
<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->" data-username="{posts.user.username}" data-uid="{posts.user.uid}">{posts.user.displayname}</a>
|
|
21
23
|
</strong>
|
|
22
24
|
|
|
23
25
|
{{{ each posts.user.selectedGroups }}}
|
package/templates/topic.tpl
CHANGED
|
@@ -5,34 +5,46 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
<div class="row mb-5">
|
|
7
7
|
<div class="topic {{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}" itemid="{url}" itemscope itemtype="https://schema.org/DiscussionForumPosting">
|
|
8
|
+
<meta itemprop="headline" content="{escape(titleRaw)}">
|
|
9
|
+
<meta itemprop="text" content="{escape(titleRaw)}">
|
|
10
|
+
<meta itemprop="url" content="{url}">
|
|
8
11
|
<meta itemprop="datePublished" content="{timestampISO}">
|
|
9
12
|
<meta itemprop="dateModified" content="{lastposttimeISO}">
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
<div itemprop="author" itemscope itemtype="https://schema.org/Person">
|
|
14
|
+
<meta itemprop="name" content="{author.username}">
|
|
15
|
+
{{{ if author.userslug }}}<meta itemprop="url" content="{config.relative_path}/user/{author.userslug}">{{{ end }}}
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="topic-header sticky-top mb-3">
|
|
19
|
+
<h1 component="post/header" itemprop="name">
|
|
20
|
+
<div class="topic-title d-flex">
|
|
21
|
+
<span class="fs-3" component="topic/title">{title}</span>
|
|
22
|
+
</div>
|
|
23
|
+
</h1>
|
|
24
|
+
|
|
25
|
+
<div class="topic-info pb-2 d-flex gap-3 align-items-center flex-wrap">
|
|
26
|
+
<span component="topic/labels" class="d-flex text-md gap-2 {{{ if (!scheduled && (!pinned && (!locked && (!oldCid && !icons.length)))) }}}hidden{{{ end }}}">
|
|
27
|
+
<span component="topic/scheduled" class="badge badge border border-gray-300 text-body {{{ if !scheduled }}}hidden{{{ end }}}">
|
|
28
|
+
<i class="fa fa-clock-o"></i> [[topic:scheduled]]
|
|
29
|
+
</span>
|
|
30
|
+
<span component="topic/pinned" class="badge badge border border-gray-300 text-body {{{ if (scheduled || !pinned) }}}hidden{{{ end }}}">
|
|
31
|
+
<i class="fa fa-thumb-tack"></i> {{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {isoTimeToLocaleString(./pinExpiryISO, config.userLang)}]]{{{ end }}}
|
|
22
32
|
</span>
|
|
23
|
-
<span component="topic/
|
|
33
|
+
<span component="topic/locked" class="badge badge border border-gray-300 text-body {{{ if !locked }}}hidden{{{ end }}}">
|
|
34
|
+
<i class="fa fa-lock"></i> [[topic:locked]]
|
|
35
|
+
</span>
|
|
36
|
+
<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 }}}">
|
|
37
|
+
<i class="fa fa-arrow-circle-right"></i> {{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}
|
|
38
|
+
</a>
|
|
39
|
+
{{{each icons}}}<span class="lh-1">{@value}</span>{{{end}}}
|
|
24
40
|
</span>
|
|
25
|
-
</h1>
|
|
26
41
|
|
|
27
|
-
<div class="topic-info clearfix">
|
|
28
42
|
<div class="category-item d-inline-block">
|
|
29
43
|
{buildCategoryIcon(category, "24px", "rounded-circle")}
|
|
30
44
|
<a href="{config.relative_path}/category/{category.slug}">{category.name}</a>
|
|
31
45
|
</div>
|
|
32
46
|
|
|
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>
|
|
47
|
+
<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
48
|
<div class="d-inline-block hidden-xs">
|
|
37
49
|
<!-- IMPORT partials/topic/stats.tpl -->
|
|
38
50
|
</div>
|
|
@@ -44,8 +56,9 @@
|
|
|
44
56
|
<!-- IMPORT partials/topic/browsing-users.tpl -->
|
|
45
57
|
</div>
|
|
46
58
|
{{{ end }}}
|
|
47
|
-
|
|
48
|
-
|
|
59
|
+
<div class="ms-auto">
|
|
60
|
+
<!-- IMPORT partials/post_bar.tpl -->
|
|
61
|
+
</div>
|
|
49
62
|
</div>
|
|
50
63
|
</div>
|
|
51
64
|
{{{ if merger }}}
|