nodebb-theme-harmony 2.0.1 → 2.0.2

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.
Files changed (144) hide show
  1. package/.eslintrc +3 -3
  2. package/README.md +22 -22
  3. package/lib/controllers.js +29 -29
  4. package/library.js +183 -183
  5. package/package.json +48 -48
  6. package/plugin.json +24 -24
  7. package/public/.eslintrc +3 -3
  8. package/public/admin.js +15 -15
  9. package/public/harmony.js +287 -287
  10. package/public/settings.js +31 -31
  11. package/renovate.json +6 -6
  12. package/scss/account.scss +27 -27
  13. package/scss/category.scss +3 -3
  14. package/scss/chats.scss +11 -11
  15. package/scss/common.scss +122 -122
  16. package/scss/fonts.scss +19 -19
  17. package/scss/groups.scss +22 -22
  18. package/scss/harmony.scss +24 -24
  19. package/scss/header.scss +15 -15
  20. package/scss/mixins.scss +183 -183
  21. package/scss/modals.scss +6 -6
  22. package/scss/modules/breadcrumbs.scss +15 -15
  23. package/scss/modules/cover.scss +102 -102
  24. package/scss/modules/filters.scss +7 -7
  25. package/scss/modules/nprogress.scss +80 -80
  26. package/scss/modules/paginator.scss +23 -23
  27. package/scss/modules/tags.scss +5 -5
  28. package/scss/modules/topic-navigator.scss +52 -52
  29. package/scss/modules/topics-list.scss +40 -40
  30. package/scss/modules/user-menu.scss +10 -10
  31. package/scss/overrides.scss +65 -65
  32. package/scss/sidebar.scss +188 -188
  33. package/scss/skins.scss +58 -58
  34. package/scss/status.scss +24 -24
  35. package/scss/topic.scss +130 -130
  36. package/templates/account/blocks.tpl +51 -51
  37. package/templates/account/categories.tpl +63 -63
  38. package/templates/account/consent.tpl +73 -73
  39. package/templates/account/edit/password.tpl +34 -34
  40. package/templates/account/edit/username.tpl +29 -29
  41. package/templates/account/edit.tpl +137 -137
  42. package/templates/account/followers.tpl +14 -14
  43. package/templates/account/following.tpl +15 -15
  44. package/templates/account/groups.tpl +15 -15
  45. package/templates/account/info.tpl +270 -270
  46. package/templates/account/posts.tpl +35 -35
  47. package/templates/account/profile.tpl +92 -92
  48. package/templates/account/sessions.tpl +8 -8
  49. package/templates/account/settings.tpl +236 -236
  50. package/templates/account/shares.tpl +19 -19
  51. package/templates/account/tags.tpl +12 -12
  52. package/templates/account/theme.tpl +63 -63
  53. package/templates/account/topics.tpl +44 -44
  54. package/templates/account/uploads.tpl +37 -37
  55. package/templates/admin/plugins/harmony.tpl +57 -57
  56. package/templates/categories.tpl +29 -29
  57. package/templates/category.tpl +72 -72
  58. package/templates/footer.tpl +17 -17
  59. package/templates/groups/details.tpl +86 -86
  60. package/templates/groups/list.tpl +58 -58
  61. package/templates/groups/members.tpl +9 -9
  62. package/templates/header.tpl +45 -45
  63. package/templates/notifications.tpl +32 -32
  64. package/templates/partials/account/admin-menu.tpl +36 -36
  65. package/templates/partials/account/category-item.tpl +22 -22
  66. package/templates/partials/account/footer.tpl +2 -2
  67. package/templates/partials/account/header.tpl +98 -98
  68. package/templates/partials/account/session-list.tpl +18 -18
  69. package/templates/partials/account/sidebar-left.tpl +116 -116
  70. package/templates/partials/breadcrumbs-json-ld.tpl +15 -15
  71. package/templates/partials/breadcrumbs.tpl +12 -12
  72. package/templates/partials/buttons/newTopic.tpl +22 -22
  73. package/templates/partials/categories/item.tpl +56 -56
  74. package/templates/partials/categories/lastpost.tpl +24 -24
  75. package/templates/partials/categories/link.tpl +4 -4
  76. package/templates/partials/category/subcategory.tpl +18 -18
  77. package/templates/partials/category/tags.tpl +3 -3
  78. package/templates/partials/cookie-consent.tpl +6 -6
  79. package/templates/partials/groups/admin.tpl +95 -95
  80. package/templates/partials/groups/invited.tpl +32 -32
  81. package/templates/partials/groups/list.tpl +15 -15
  82. package/templates/partials/groups/memberlist.tpl +46 -46
  83. package/templates/partials/groups/pending.tpl +29 -29
  84. package/templates/partials/groups/sidebar-left.tpl +27 -27
  85. package/templates/partials/header/brand.tpl +27 -27
  86. package/templates/partials/mobile-footer.tpl +95 -95
  87. package/templates/partials/notifications_list.tpl +44 -44
  88. package/templates/partials/paginator.tpl +46 -46
  89. package/templates/partials/post_bar.tpl +27 -27
  90. package/templates/partials/posts_list.tpl +7 -7
  91. package/templates/partials/posts_list_item.tpl +19 -19
  92. package/templates/partials/quick-search-results.tpl +46 -46
  93. package/templates/partials/search-filters.tpl +183 -183
  94. package/templates/partials/search-results.tpl +54 -54
  95. package/templates/partials/sidebar/chats.tpl +45 -45
  96. package/templates/partials/sidebar/drafts.tpl +63 -63
  97. package/templates/partials/sidebar/logged-in-menu.tpl +22 -22
  98. package/templates/partials/sidebar/logged-out-menu.tpl +44 -44
  99. package/templates/partials/sidebar/notifications.tpl +49 -49
  100. package/templates/partials/sidebar/search-mobile.tpl +28 -28
  101. package/templates/partials/sidebar/search.tpl +30 -30
  102. package/templates/partials/sidebar/user-menu.tpl +103 -103
  103. package/templates/partials/sidebar-left.tpl +39 -39
  104. package/templates/partials/sidebar-right.tpl +16 -16
  105. package/templates/partials/skin-switcher.tpl +50 -50
  106. package/templates/partials/tags_list.tpl +7 -7
  107. package/templates/partials/toast.tpl +19 -19
  108. package/templates/partials/topic/event.tpl +12 -12
  109. package/templates/partials/topic/navigation-post.tpl +9 -9
  110. package/templates/partials/topic/navigator-mobile.tpl +61 -61
  111. package/templates/partials/topic/navigator.tpl +26 -26
  112. package/templates/partials/topic/necro-post.tpl +5 -5
  113. package/templates/partials/topic/post-menu-list.tpl +156 -156
  114. package/templates/partials/topic/post-menu.tpl +4 -4
  115. package/templates/partials/topic/post-placeholder.tpl +14 -14
  116. package/templates/partials/topic/post.tpl +146 -146
  117. package/templates/partials/topic/quickreply.tpl +28 -28
  118. package/templates/partials/topic/reply-button.tpl +26 -26
  119. package/templates/partials/topic/selection-tooltip.tpl +2 -2
  120. package/templates/partials/topic/sort.tpl +27 -27
  121. package/templates/partials/topic/stats.tpl +14 -14
  122. package/templates/partials/topic/thumbs.tpl +4 -4
  123. package/templates/partials/topic/tools.tpl +8 -8
  124. package/templates/partials/topic/topic-menu-list.tpl +73 -73
  125. package/templates/partials/topic/watch.tpl +59 -59
  126. package/templates/partials/topic-filters.tpl +15 -15
  127. package/templates/partials/topic-list-bar.tpl +54 -54
  128. package/templates/partials/topic-terms.tpl +15 -15
  129. package/templates/partials/topics_list.tpl +131 -131
  130. package/templates/partials/users/item.tpl +39 -39
  131. package/templates/partials/users_list.tpl +4 -4
  132. package/templates/partials/users_list_menu.tpl +14 -14
  133. package/templates/popular.tpl +34 -34
  134. package/templates/post-queue.tpl +211 -211
  135. package/templates/recent.tpl +42 -42
  136. package/templates/search.tpl +46 -46
  137. package/templates/tag.tpl +34 -34
  138. package/templates/tags.tpl +49 -49
  139. package/templates/top.tpl +34 -34
  140. package/templates/topic.tpl +123 -123
  141. package/templates/unread.tpl +31 -31
  142. package/templates/users.tpl +39 -39
  143. package/templates/world.tpl +66 -66
  144. package/theme.json +6 -6
package/scss/sidebar.scss CHANGED
@@ -1,188 +1,188 @@
1
- .skin-noskin {
2
- // only using colors when there is no bootswatch skin applied
3
- nav.sidebar, .bottombar-nav {
4
- color: $secondary !important;
5
- background-color: $light !important;
6
- }
7
- .bottombar-nav {
8
- .dropdown-menu {
9
- color: $secondary !important;
10
- background-color: $light !important;
11
- }
12
- }
13
- }
14
-
15
- .sidebar {
16
- $hover-color: mix($light, $dark, 90%);
17
-
18
- @include media-breakpoint-up(lg) {
19
- &.open {
20
- min-width: 200px;
21
- max-width: 200px;
22
- width: 200px;
23
-
24
- .sidebar-toggle {
25
- .fa-angles-right { display: none; }
26
- .fa-angles-left { display: inline-block; }
27
- }
28
- .visible-open { display: initial; }
29
- .visible-closed { display: none; }
30
- hr.visible-open { display: block; }
31
- .truncate-open {
32
- overflow: hidden;
33
- text-overflow: ellipsis;
34
- white-space: nowrap;
35
- }
36
- .sidebar-toggle-container {
37
- width: 100%
38
- }
39
- }
40
- }
41
- .visible-open { display: none; }
42
- .visible-closed {display: initial; }
43
-
44
- .truncate-open {
45
- overflow: initial;
46
- text-overflow: initial;
47
- white-space: initial;
48
- }
49
-
50
- .nav-link {
51
- @extend .ff-secondary;
52
- padding: ($spacer * 0.25) ($spacer * 0.5);
53
- border-radius: $border-radius-sm;
54
- cursor: pointer;
55
- &.active {
56
- background-color: $hover-color;
57
- }
58
- &:hover {
59
- background-color: $hover-color;
60
- }
61
- }
62
-
63
- .nav-item {
64
- .dropdown-menu .dropdown-item {
65
- @extend .rounded-1;
66
- }
67
- }
68
-
69
- #user_dropdown .avatar {
70
- margin: 2px 0; // fixes the avatar so its height is same as the icons on right sidebar
71
- }
72
-
73
- .sidebar-toggle {
74
- justify-content: start;
75
- .fa-angles-right { display: inline-block; }
76
- .fa-angles-left { display: none; }
77
- }
78
-
79
- .search-dropdown {
80
- width: 300px;
81
- }
82
-
83
- .chats-dropdown, .notifications-dropdown, .drafts-dropdown {
84
- min-width: 300px;
85
- width: 300px;
86
- .list-container {
87
- max-height: 400px;
88
- overflow-y: auto;
89
- }
90
- }
91
-
92
- .badge {
93
- font-size: 9px;
94
- line-height: 12px;
95
- &.visible-open {
96
- font-size:12px;
97
- line-height: 12px;
98
- font-weight: normal;
99
- }
100
- }
101
-
102
- [data-widget-area="sidebar-footer"] {
103
- font-size: $font-size-base * 0.75;
104
- }
105
- }
106
-
107
- /*rtl:begin:ignore*/
108
- html[data-dir="rtl"] {
109
- .sidebar {
110
- &.open {
111
- .sidebar-toggle {
112
- .fa-angles-right { display: none; }
113
- .fa-angles-left { display: inline-block; }
114
- }
115
- }
116
- .sidebar-toggle {
117
- .fa-angles-right { display: inline-block; }
118
- .fa-angles-left { display: none; }
119
- }
120
- }
121
- }
122
- /*rtl:end:ignore*/
123
-
124
- .bottombar {
125
- transition: bottom 150ms linear;
126
-
127
- .pagination-block {
128
- .scroller-container {
129
- border-right: 3px solid;
130
- margin-right: 5.5px;
131
- .scroller-thumb {
132
- right: -6px;
133
- padding-right: 15px;
134
- margin-right: -15px;
135
- }
136
- }
137
- }
138
- }
139
-
140
- .bottombar-nav {
141
- #user_dropdown .avatar {
142
- margin: 2px 0; // fixes the avatar so its height is same as the icons on right sidebar
143
- }
144
- .nav-text {
145
- font-size: 1rem;
146
- color: $body-color;
147
- }
148
- .nav-link {
149
- padding: 8px;
150
- border-radius: $border-radius-sm;
151
- }
152
- .usermenu, .chats, .notifications, .drafts, .search, .logged-out-menu {
153
- .visible-open { display: none; }
154
- }
155
- .badge {
156
- font-size: 9px;
157
- line-height: 12px;
158
- }
159
-
160
- .dropdown-menu {
161
- left: 0!important;
162
- right: 0!important;
163
- box-shadow: none!important;
164
- border-left: 0;
165
- border-right: 0;
166
- border-radius: 0;
167
- .list-container {
168
- max-height: 60vh!important;
169
- overflow-y: auto!important;
170
- }
171
- }
172
-
173
- .navigation-dropdown, .user-dropdown {
174
- > li {
175
- > a, .dropdown-item {
176
- padding: 10px 20px!important;
177
- }
178
- }
179
-
180
- max-height: 60vh!important;
181
- overflow: auto!important;
182
- }
183
-
184
- .search-dropdown .quick-search-results {
185
- max-height: 225px!important;
186
- overflow-y: auto!important;
187
- }
188
- }
1
+ .skin-noskin {
2
+ // only using colors when there is no bootswatch skin applied
3
+ nav.sidebar, .bottombar-nav {
4
+ color: $secondary !important;
5
+ background-color: $light !important;
6
+ }
7
+ .bottombar-nav {
8
+ .dropdown-menu {
9
+ color: $secondary !important;
10
+ background-color: $light !important;
11
+ }
12
+ }
13
+ }
14
+
15
+ .sidebar {
16
+ $hover-color: mix($light, $dark, 90%);
17
+
18
+ @include media-breakpoint-up(lg) {
19
+ &.open {
20
+ min-width: 200px;
21
+ max-width: 200px;
22
+ width: 200px;
23
+
24
+ .sidebar-toggle {
25
+ .fa-angles-right { display: none; }
26
+ .fa-angles-left { display: inline-block; }
27
+ }
28
+ .visible-open { display: initial; }
29
+ .visible-closed { display: none; }
30
+ hr.visible-open { display: block; }
31
+ .truncate-open {
32
+ overflow: hidden;
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ }
36
+ .sidebar-toggle-container {
37
+ width: 100%
38
+ }
39
+ }
40
+ }
41
+ .visible-open { display: none; }
42
+ .visible-closed {display: initial; }
43
+
44
+ .truncate-open {
45
+ overflow: initial;
46
+ text-overflow: initial;
47
+ white-space: initial;
48
+ }
49
+
50
+ .nav-link {
51
+ @extend .ff-secondary;
52
+ padding: ($spacer * 0.25) ($spacer * 0.5);
53
+ border-radius: $border-radius-sm;
54
+ cursor: pointer;
55
+ &.active {
56
+ background-color: $hover-color;
57
+ }
58
+ &:hover {
59
+ background-color: $hover-color;
60
+ }
61
+ }
62
+
63
+ .nav-item {
64
+ .dropdown-menu .dropdown-item {
65
+ @extend .rounded-1;
66
+ }
67
+ }
68
+
69
+ #user_dropdown .avatar {
70
+ margin: 2px 0; // fixes the avatar so its height is same as the icons on right sidebar
71
+ }
72
+
73
+ .sidebar-toggle {
74
+ justify-content: start;
75
+ .fa-angles-right { display: inline-block; }
76
+ .fa-angles-left { display: none; }
77
+ }
78
+
79
+ .search-dropdown {
80
+ width: 300px;
81
+ }
82
+
83
+ .chats-dropdown, .notifications-dropdown, .drafts-dropdown {
84
+ min-width: 300px;
85
+ width: 300px;
86
+ .list-container {
87
+ max-height: 400px;
88
+ overflow-y: auto;
89
+ }
90
+ }
91
+
92
+ .badge {
93
+ font-size: 9px;
94
+ line-height: 12px;
95
+ &.visible-open {
96
+ font-size:12px;
97
+ line-height: 12px;
98
+ font-weight: normal;
99
+ }
100
+ }
101
+
102
+ [data-widget-area="sidebar-footer"] {
103
+ font-size: $font-size-base * 0.75;
104
+ }
105
+ }
106
+
107
+ /*rtl:begin:ignore*/
108
+ html[data-dir="rtl"] {
109
+ .sidebar {
110
+ &.open {
111
+ .sidebar-toggle {
112
+ .fa-angles-right { display: none; }
113
+ .fa-angles-left { display: inline-block; }
114
+ }
115
+ }
116
+ .sidebar-toggle {
117
+ .fa-angles-right { display: inline-block; }
118
+ .fa-angles-left { display: none; }
119
+ }
120
+ }
121
+ }
122
+ /*rtl:end:ignore*/
123
+
124
+ .bottombar {
125
+ transition: bottom 150ms linear;
126
+
127
+ .pagination-block {
128
+ .scroller-container {
129
+ border-right: 3px solid;
130
+ margin-right: 5.5px;
131
+ .scroller-thumb {
132
+ right: -6px;
133
+ padding-right: 15px;
134
+ margin-right: -15px;
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+ .bottombar-nav {
141
+ #user_dropdown .avatar {
142
+ margin: 2px 0; // fixes the avatar so its height is same as the icons on right sidebar
143
+ }
144
+ .nav-text {
145
+ font-size: 1rem;
146
+ color: $body-color;
147
+ }
148
+ .nav-link {
149
+ padding: 8px;
150
+ border-radius: $border-radius-sm;
151
+ }
152
+ .usermenu, .chats, .notifications, .drafts, .search, .logged-out-menu {
153
+ .visible-open { display: none; }
154
+ }
155
+ .badge {
156
+ font-size: 9px;
157
+ line-height: 12px;
158
+ }
159
+
160
+ .dropdown-menu {
161
+ left: 0!important;
162
+ right: 0!important;
163
+ box-shadow: none!important;
164
+ border-left: 0;
165
+ border-right: 0;
166
+ border-radius: 0;
167
+ .list-container {
168
+ max-height: 60vh!important;
169
+ overflow-y: auto!important;
170
+ }
171
+ }
172
+
173
+ .navigation-dropdown, .user-dropdown {
174
+ > li {
175
+ > a, .dropdown-item {
176
+ padding: 10px 20px!important;
177
+ }
178
+ }
179
+
180
+ max-height: 60vh!important;
181
+ overflow: auto!important;
182
+ }
183
+
184
+ .search-dropdown .quick-search-results {
185
+ max-height: 225px!important;
186
+ overflow-y: auto!important;
187
+ }
188
+ }
package/scss/skins.scss CHANGED
@@ -1,59 +1,59 @@
1
- .skin-quartz {
2
- // $body-bg-image is gradient in quartz
3
- [component="post"] .icon {
4
- background-color: transparent !important;
5
- }
6
- .form-control::placeholder {
7
- color:$gray-100!important;
8
- }
9
- }
10
-
11
- .skin-solar {
12
- .form-control::placeholder {
13
- color:$gray-100!important;
14
- }
15
- }
16
-
17
- .skin-quartz, .skin-lux, .skin-morph {
18
- // $spacer being modified looks bad on this element
19
- .topic-list-header .btn, .topic-main-buttons .btn {
20
- padding: 6px 12px;
21
- }
22
- }
23
-
24
- .skin-yeti {
25
- .badge {
26
- padding-left: 0.5rem;
27
- padding-right: 0.5rem;
28
- }
29
- }
30
-
31
- // table color fix, remove once https://github.com/thomaspark/bootswatch/issues/1276 is published
32
- .skin-darkly, .skin-superhero, .skin-solar, .skin-quartz {
33
- table > :not(caption) > * > * {
34
- color: white;
35
- }
36
- }
37
-
38
- .skin-superhero {
39
- // fix read button in dropdowns
40
- .mark-read .read {
41
- color: $primary!important;
42
- }
43
- }
44
-
45
- .skin-slate {
46
- // fix unread button colors in dropdowns
47
- .mark-read .unread {
48
- color: $secondary!important;
49
- }
50
- }
51
-
52
- :root {
53
- .skin-darkly, .skin-slate, .skin-cyborg {
54
- --bs-border-color: #929292;
55
- }
56
- .skin-zephyr {
57
- --bs-secondary-rgb: var(--bs-secondary-color);
58
- }
1
+ .skin-quartz {
2
+ // $body-bg-image is gradient in quartz
3
+ [component="post"] .icon {
4
+ background-color: transparent !important;
5
+ }
6
+ .form-control::placeholder {
7
+ color:$gray-100!important;
8
+ }
9
+ }
10
+
11
+ .skin-solar {
12
+ .form-control::placeholder {
13
+ color:$gray-100!important;
14
+ }
15
+ }
16
+
17
+ .skin-quartz, .skin-lux, .skin-morph {
18
+ // $spacer being modified looks bad on this element
19
+ .topic-list-header .btn, .topic-main-buttons .btn {
20
+ padding: 6px 12px;
21
+ }
22
+ }
23
+
24
+ .skin-yeti {
25
+ .badge {
26
+ padding-left: 0.5rem;
27
+ padding-right: 0.5rem;
28
+ }
29
+ }
30
+
31
+ // table color fix, remove once https://github.com/thomaspark/bootswatch/issues/1276 is published
32
+ .skin-darkly, .skin-superhero, .skin-solar, .skin-quartz {
33
+ table > :not(caption) > * > * {
34
+ color: white;
35
+ }
36
+ }
37
+
38
+ .skin-superhero {
39
+ // fix read button in dropdowns
40
+ .mark-read .read {
41
+ color: $primary!important;
42
+ }
43
+ }
44
+
45
+ .skin-slate {
46
+ // fix unread button colors in dropdowns
47
+ .mark-read .unread {
48
+ color: $secondary!important;
49
+ }
50
+ }
51
+
52
+ :root {
53
+ .skin-darkly, .skin-slate, .skin-cyborg {
54
+ --bs-border-color: #929292;
55
+ }
56
+ .skin-zephyr {
57
+ --bs-secondary-rgb: var(--bs-secondary-color);
58
+ }
59
59
  }
package/scss/status.scss CHANGED
@@ -1,25 +1,25 @@
1
- .status {
2
- padding: 3px;
3
-
4
- &.online {
5
- background-color: $success;
6
- }
7
-
8
- &.away {
9
- background-color: $warning;
10
- }
11
-
12
- &.dnd {
13
- background-color: $danger;
14
- }
15
-
16
- &.offline {
17
- background-color: $gray-600;
18
- }
19
- }
20
-
21
- @include media-breakpoint-up(sm) {
22
- .status {
23
- padding: 5px;
24
- }
1
+ .status {
2
+ padding: 3px;
3
+
4
+ &.online {
5
+ background-color: $success;
6
+ }
7
+
8
+ &.away {
9
+ background-color: $warning;
10
+ }
11
+
12
+ &.dnd {
13
+ background-color: $danger;
14
+ }
15
+
16
+ &.offline {
17
+ background-color: $gray-600;
18
+ }
19
+ }
20
+
21
+ @include media-breakpoint-up(sm) {
22
+ .status {
23
+ padding: 5px;
24
+ }
25
25
  }