nodebb-theme-harmony 1.2.35 → 1.2.37

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,8 +1,8 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "nbbpm": {
5
- "compatibility": "^3.5.0"
5
+ "compatibility": "^3.7.0"
6
6
  },
7
7
  "description": "Harmony theme for NodeBB",
8
8
  "main": "library.js",
@@ -1,8 +1,8 @@
1
1
  ul.topics-list, ul.categories-list {
2
2
  li {
3
3
  &.deleted {
4
- .meta { display: none!important; }
5
- .title a { text-decoration: line-through;}
4
+ .meta, .topic-thumbs { display: none!important; }
5
+ opacity: 0.65;
6
6
  }
7
7
 
8
8
  &.selected {
package/scss/topic.scss CHANGED
@@ -35,10 +35,7 @@ body.template-topic {
35
35
  &.selected .post-container {
36
36
  background-color: mix($body-bg, $body-color, 90%);
37
37
  }
38
- &.deleted .post-container .content {
39
- opacity: .75;
40
- text-decoration: line-through;
41
- }
38
+ &.deleted .post-container .content { opacity: .65; }
42
39
 
43
40
  [component="post/content"] {
44
41
  @include fix-lists();
@@ -112,8 +112,8 @@
112
112
  <div class="mb-2">
113
113
  <label class="form-label text-sm" for="categoryTopicSort">[[user:category-topic-sort]]</label>
114
114
  <select class="form-select form-select-sm" id="categoryTopicSort" data-property="categoryTopicSort">
115
- <option value="newest_to_oldest" {{{ if (settings.categoryTopicSort == "newest_to_oldest") }}}selected{{{ end }}}>[[topic:newest-to-oldest]]</option>
116
- <option value="oldest_to_newest" {{{ if (settings.categoryTopicSort == "oldest_to_newest") }}}selected{{{ end }}}>[[topic:oldest-to-newest]]</option>
115
+ <option value="recently_replied" {{{ if (settings.categoryTopicSort == "recently_replied") }}}selected{{{ end }}}>[[topic:recently-replied]]</option>
116
+ <option value="recently_created" {{{ if (settings.categoryTopicSort == "recently_created") }}}selected{{{ end }}}>[[topic:recently-created]]</option>
117
117
  <option value="most_posts" {{{ if (settings.categoryTopicSort == "most_posts") }}}selected{{{ end }}}>[[topic:most-posts]]</option>
118
118
  <option value="most_votes" {{{ if (settings.categoryTopicSort == "most_votes") }}}selected{{{ end }}}>[[topic:most-votes]]</option>
119
119
  <option value="most_views" {{{ if (settings.categoryTopicSort == "most_views") }}}selected{{{ end }}}>[[topic:most-views]]</option>
@@ -6,14 +6,14 @@
6
6
 
7
7
  <ul class="dropdown-menu p-1 text-sm" role="menu">
8
8
  <li>
9
- <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="newest_to_oldest" role="menuitem">
10
- <span class="flex-grow-1">[[topic:newest-to-oldest]]</span>
9
+ <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="recently_replied" role="menuitem">
10
+ <span class="flex-grow-1">[[topic:recently-replied]]</span>
11
11
  <i class="flex-shrink-0 fa fa-fw text-secondary"></i>
12
12
  </a>
13
13
  </li>
14
14
  <li>
15
- <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="oldest_to_newest" role="menuitem">
16
- <span class="flex-grow-1">[[topic:oldest-to-newest]]</span>
15
+ <a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" data-sort="recently_created" role="menuitem">
16
+ <span class="flex-grow-1">[[topic:recently-created]]</span>
17
17
  <i class="flex-shrink-0 fa fa-fw text-secondary"></i>
18
18
  </a>
19
19
  </li>
@@ -70,7 +70,7 @@
70
70
  {{{ end }}}
71
71
  </div>
72
72
  {{{ if ./thumbs.length }}}
73
- <a class="position-relative text-decoration-none flex-shrink-0 d-none d-xl-block" href="{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}" aria-label="[[topic:thumb-image]]">
73
+ <a class="topic-thumbs position-relative text-decoration-none flex-shrink-0 d-none d-xl-block" href="{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}" aria-label="[[topic:thumb-image]]">
74
74
  <img class="topic-thumb rounded-1 bg-light" style="width:auto;max-width: 5.33rem;height: 3.33rem;object-fit: contain;" src="{./thumbs.0.url}" alt=""/>
75
75
  <span data-numthumbs="{./thumbs.length}" class="px-1 position-absolute top-0 start-100 translate-middle badge rounded text-bg-info" style="z-index: 1;">+{increment(./thumbs.length, "-1")}</span>
76
76
  </a>