nodebb-theme-persona 13.3.21 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.3.21",
3
+ "version": "13.3.22",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
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%;
@@ -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" class="" itemprop="name">
15
- <span class="topic-title">
16
- <span component="topic/labels" class="d-inline-flex gap-2 align-items-center">
17
- <i component="topic/scheduled" class="fa fa-clock-o {{{ if !scheduled }}}hidden{{{ end }}}" title="[[topic:scheduled]]"></i>
18
- <i component="topic/pinned" class="fa fa-thumb-tack {{{ if (scheduled || !pinned) }}}hidden{{{ end }}}" title="{{{ if !pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {pinExpiryISO}]]{{{ end }}}"></i>
19
- <i component="topic/locked" class="fa fa-lock {{{ if !locked }}}hidden{{{ end }}}" title="[[topic:locked]]"></i>
20
- <i class="fa fa-arrow-circle-right {{{ if !oldCid }}}hidden{{{ end }}}" title="{{{ if privileges.isAdminOrMod }}}[[topic:moved-from, {oldCategory.name}]]{{{ else }}}[[topic:moved]]{{{ end }}}"></i>
21
- {{{each icons}}}<span class="lh-1 align-middle">{@value}</span>{{{end}}}
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
- <span component="topic/title">{title}</span>
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
- <!-- IMPORT partials/post_bar.tpl -->
54
+ <div class="ms-auto">
55
+ <!-- IMPORT partials/post_bar.tpl -->
56
+ </div>
49
57
  </div>
50
58
  </div>
51
59
  {{{ if merger }}}