nodebb-theme-harmony 1.0.58 → 1.0.60

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-harmony",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  .topic .pagination-block {
2
2
  .scroller-content {
3
- min-width: 150px;
3
+ min-width: 170px;
4
4
  }
5
5
  .scroller-container {
6
6
  left: 10px;
package/scss/topic.scss CHANGED
@@ -1,26 +1,22 @@
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;
13
7
  }
14
8
 
15
9
  .topic {
16
- .posts {
10
+ .posts-container {
17
11
  max-width: 960px;
18
12
  width: 960px;
13
+ }
14
+
15
+ .posts {
19
16
  // fixes code blocks pushing content out on mobile
20
17
  @include media-breakpoint-down(md) {
21
18
  max-width: calc(100vw - $grid-gutter-width);
22
19
  }
23
- list-style-type: none;
24
20
 
25
21
  &.timeline {
26
22
  @include timeline-style;
@@ -75,17 +71,12 @@
75
71
  }
76
72
  }
77
73
 
78
- [component="post/reply-count"] {
79
- font-size: $font-size-base * .75;
80
- }
81
-
82
74
  [component="post/upvote"], [component="post/downvote"] {
83
75
  &.upvoted, &.downvoted {
84
76
  background-color: lighten($btn-ghost-hover-color, 5%);
85
77
 
86
78
  &:hover {
87
- background-color: $btn-ghost-hover-color;
88
-
79
+ background-color: $btn-ghost-hover-color;
89
80
  }
90
81
  }
91
82
  }
@@ -93,15 +84,10 @@
93
84
  }
94
85
 
95
86
  .quick-reply {
96
- max-width: 960px;
97
87
  @include topic-avatars();
98
88
  }
99
89
 
100
90
  [component="post/replies/container"] {
101
- &:empty {
102
- display: none;
103
- }
104
-
105
91
  .icon {
106
92
  display: none !important;
107
93
  }
@@ -1,4 +1,4 @@
1
- <div class="pagination-block d-none d-lg-block flex-grow-1 mb-2">
1
+ <div class="pagination-block d-none d-lg-block flex-grow-1 mb-4">
2
2
  <div class="d-flex justify-content-end sticky-top mt-4" style="top:6rem;z-index:1;">
3
3
  <div class="ps-1 ps-md-0 d-inline-block">
4
4
  <div class="scroller-content d-flex gap-2 flex-column align-items-start">
@@ -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="clearfix">
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 float-start text-muted text-decoration-none {{{ if (!./replies || shouldHideReplyContainer(@value)) }}}hidden{{{ end }}}">
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 -->
@@ -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-2 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}" itemprop="headline">
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,8 @@
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
+ <div class="posts-container" style="min-width: 0;">
60
+ <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
61
  {{{each posts}}}
61
62
  <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
63
  <a component="post/anchor" data-index="{./index}" id="{increment(./index, "1")}"></a>
@@ -72,22 +73,21 @@
72
73
  {{{ end }}}
73
74
  {{{ end }}}
74
75
  {{{end}}}
75
- </ul>
76
+ </ul>
77
+ {{{ if browsingUsers }}}
78
+ <div class="visible-xs">
79
+ <!-- IMPORT partials/topic/browsing-users.tpl -->
80
+ <hr/>
81
+ </div>
82
+ {{{ end }}}
83
+ {{{ if config.theme.enableQuickReply }}}
84
+ <!-- IMPORT partials/topic/quickreply.tpl -->
85
+ {{{ end }}}
86
+ </div>
76
87
 
77
88
  <!-- IMPORT partials/topic/navigator.tpl -->
78
89
  </div>
79
90
 
80
- {{{ if browsingUsers }}}
81
- <div class="visible-xs">
82
- <!-- IMPORT partials/topic/browsing-users.tpl -->
83
- <hr/>
84
- </div>
85
- {{{ end }}}
86
-
87
- {{{ if config.theme.enableQuickReply }}}
88
- <!-- IMPORT partials/topic/quickreply.tpl -->
89
- {{{ end }}}
90
-
91
91
  {{{ if config.usePagination }}}
92
92
  <!-- IMPORT partials/paginator.tpl -->
93
93
  {{{ end }}}