nodebb-theme-persona 13.3.32 → 13.3.34

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 (145) hide show
  1. package/.eslintrc +2 -2
  2. package/README.md +20 -20
  3. package/lib/controllers.js +24 -24
  4. package/library.js +97 -97
  5. package/package.json +52 -52
  6. package/plugin.json +20 -20
  7. package/public/.eslintrc +2 -2
  8. package/public/admin.js +15 -15
  9. package/public/modules/autohidingnavbar.js +220 -220
  10. package/public/modules/mobile-menu.js +190 -190
  11. package/public/modules/taskbar.js +65 -65
  12. package/public/persona.js +257 -257
  13. package/public/settings.js +53 -53
  14. package/scss/account.scss +336 -336
  15. package/scss/categories.scss +205 -205
  16. package/scss/category.scss +161 -161
  17. package/scss/chats.scss +14 -14
  18. package/scss/flags.scss +42 -42
  19. package/scss/footer.scss +16 -16
  20. package/scss/groups.scss +166 -166
  21. package/scss/header.scss +229 -361
  22. package/scss/keyframes.scss +152 -152
  23. package/scss/mixins.scss +129 -129
  24. package/scss/mobile.scss +222 -331
  25. package/scss/modules/composer.scss +20 -20
  26. package/scss/modules/cookie-consent.scss +12 -12
  27. package/scss/modules/fab.scss +32 -32
  28. package/scss/modules/morph.scss +268 -268
  29. package/scss/modules/necro-post.scss +8 -8
  30. package/scss/modules/nprogress.scss +80 -80
  31. package/scss/modules/taskbar.scss +160 -160
  32. package/scss/modules/user-menu.scss +7 -7
  33. package/scss/modules/usercard.scss +64 -64
  34. package/scss/noscript.scss +80 -80
  35. package/scss/overrides.scss +39 -39
  36. package/scss/persona.scss +34 -34
  37. package/scss/posts_list.scss +127 -127
  38. package/scss/search.scss +48 -48
  39. package/scss/style.scss +256 -256
  40. package/scss/tags.scss +10 -10
  41. package/scss/topic.scss +571 -571
  42. package/scss/topics_list.scss +16 -16
  43. package/scss/variables.scss +6 -6
  44. package/templates/account/blocks.tpl +46 -46
  45. package/templates/account/categories.tpl +28 -28
  46. package/templates/account/consent.tpl +68 -68
  47. package/templates/account/edit/password.tpl +29 -29
  48. package/templates/account/edit/username.tpl +25 -25
  49. package/templates/account/edit.tpl +136 -136
  50. package/templates/account/followers.tpl +17 -17
  51. package/templates/account/following.tpl +17 -17
  52. package/templates/account/groups.tpl +16 -16
  53. package/templates/account/info.tpl +291 -291
  54. package/templates/account/posts.tpl +18 -18
  55. package/templates/account/profile.tpl +166 -166
  56. package/templates/account/sessions.tpl +31 -31
  57. package/templates/account/settings.tpl +251 -251
  58. package/templates/account/tags.tpl +9 -9
  59. package/templates/account/theme.tpl +25 -25
  60. package/templates/account/topics.tpl +29 -29
  61. package/templates/account/uploads.tpl +42 -42
  62. package/templates/admin/plugins/persona.tpl +24 -24
  63. package/templates/categories.tpl +31 -31
  64. package/templates/category.tpl +63 -63
  65. package/templates/flags/detail.tpl +208 -208
  66. package/templates/flags/list.tpl +71 -71
  67. package/templates/footer.tpl +11 -11
  68. package/templates/groups/details.tpl +77 -77
  69. package/templates/groups/list.tpl +48 -48
  70. package/templates/groups/members.tpl +5 -5
  71. package/templates/header.tpl +47 -47
  72. package/templates/modules/taskbar.tpl +2 -2
  73. package/templates/modules/usercard.tpl +36 -36
  74. package/templates/notifications.tpl +66 -66
  75. package/templates/partials/account/category-item.tpl +23 -23
  76. package/templates/partials/account/header.tpl +47 -47
  77. package/templates/partials/account/menu.tpl +108 -108
  78. package/templates/partials/breadcrumbs.tpl +18 -18
  79. package/templates/partials/buttons/newTopic.tpl +22 -22
  80. package/templates/partials/categories/item.tpl +60 -60
  81. package/templates/partials/categories/lastpost.tpl +26 -26
  82. package/templates/partials/category/filter-dropdown-content.tpl +31 -31
  83. package/templates/partials/category/selector-dropdown-content.tpl +32 -32
  84. package/templates/partials/category/sort.tpl +14 -14
  85. package/templates/partials/category/subcategory.tpl +17 -17
  86. package/templates/partials/category/tags.tpl +3 -3
  87. package/templates/partials/category/tools.tpl +86 -86
  88. package/templates/partials/category/watch.tpl +55 -55
  89. package/templates/partials/chats-menu.tpl +41 -40
  90. package/templates/partials/cookie-consent.tpl +4 -4
  91. package/templates/partials/flags/filters.tpl +173 -173
  92. package/templates/partials/groups/admin.tpl +200 -200
  93. package/templates/partials/groups/filter-dropdown-content.tpl +24 -24
  94. package/templates/partials/groups/list.tpl +20 -20
  95. package/templates/partials/groups/memberlist.tpl +42 -42
  96. package/templates/partials/header/chats.tpl +18 -18
  97. package/templates/partials/header/notifications.tpl +49 -19
  98. package/templates/partials/header/search.tpl +24 -24
  99. package/templates/partials/header/user-menu.tpl +96 -96
  100. package/templates/partials/menu.tpl +128 -128
  101. package/templates/partials/notifications_list.tpl +44 -30
  102. package/templates/partials/paginator.tpl +44 -44
  103. package/templates/partials/post_bar.tpl +20 -20
  104. package/templates/partials/posts_list.tpl +7 -7
  105. package/templates/partials/posts_list_item.tpl +31 -31
  106. package/templates/partials/quick-search-results.tpl +33 -33
  107. package/templates/partials/search-filters.tpl +183 -183
  108. package/templates/partials/search-results.tpl +54 -54
  109. package/templates/partials/slideout-menu.tpl +4 -4
  110. package/templates/partials/tags/filter-dropdown-content.tpl +33 -33
  111. package/templates/partials/tags/watch.tpl +35 -35
  112. package/templates/partials/tags_list.tpl +4 -4
  113. package/templates/partials/toast.tpl +19 -19
  114. package/templates/partials/topic/event.tpl +12 -12
  115. package/templates/partials/topic/navigation-post.tpl +11 -11
  116. package/templates/partials/topic/navigator.tpl +39 -39
  117. package/templates/partials/topic/necro-post.tpl +2 -2
  118. package/templates/partials/topic/post-menu-list.tpl +132 -132
  119. package/templates/partials/topic/post-menu.tpl +4 -4
  120. package/templates/partials/topic/post.tpl +128 -128
  121. package/templates/partials/topic/quickreply.tpl +28 -28
  122. package/templates/partials/topic/reply-button.tpl +26 -26
  123. package/templates/partials/topic/selection-tooltip.tpl +2 -2
  124. package/templates/partials/topic/sort.tpl +9 -9
  125. package/templates/partials/topic/stats.tpl +11 -11
  126. package/templates/partials/topic/tags.tpl +2 -2
  127. package/templates/partials/topic/tools.tpl +7 -7
  128. package/templates/partials/topic/topic-menu-list.tpl +74 -74
  129. package/templates/partials/topic/watch.tpl +47 -47
  130. package/templates/partials/topic-filters.tpl +11 -11
  131. package/templates/partials/topic-terms.tpl +11 -11
  132. package/templates/partials/topics_list.tpl +117 -117
  133. package/templates/partials/users/filter-dropdown-content.tpl +20 -20
  134. package/templates/partials/users/item.tpl +43 -43
  135. package/templates/partials/users_list.tpl +14 -14
  136. package/templates/partials/users_list_menu.tpl +20 -20
  137. package/templates/popular.tpl +35 -35
  138. package/templates/recent.tpl +37 -37
  139. package/templates/search.tpl +47 -47
  140. package/templates/tag.tpl +34 -34
  141. package/templates/tags.tpl +32 -32
  142. package/templates/top.tpl +35 -35
  143. package/templates/topic.tpl +129 -129
  144. package/templates/unread.tpl +37 -37
  145. package/templates/users.tpl +34 -34
package/scss/header.scss CHANGED
@@ -1,361 +1,229 @@
1
- .header, .slideout-menu {
2
- .notifications.dropdown, .chats.dropdown {
3
- .dropdown-menu {
4
- padding: 0;
5
- }
6
- }
7
-
8
- @mixin notification-list() {
9
- overflow-x: hidden;
10
- overflow-y: auto;
11
- max-height: 250px;
12
- padding: 0;
13
-
14
- li {
15
- display: flex;
16
- gap: 1rem;
17
- width: 400px;
18
- text-align: left;
19
- list-style-type: none;
20
- padding: .75em 0.5em;
21
-
22
- &.loading-text, &.no-notifs {
23
- justify-content: center;
24
-
25
- a {
26
- color: inherit;
27
- }
28
- }
29
-
30
- .notification-chat-content {
31
- flex: 1;
32
-
33
- a {
34
- white-space: normal;
35
- margin: 0;
36
- text-overflow: ellipsis;
37
-
38
- .text {
39
- margin-left: 40px;
40
- margin-right: 60px;
41
- display: block;
42
- min-height: 32px;
43
- }
44
- }
45
- }
46
-
47
- .notification-chat-controls {
48
- display: flex;
49
- flex-direction: column;
50
- align-items: center;
51
- gap: .5rem;
52
-
53
- .relTime {
54
- font-size: 10px;
55
- }
56
- }
57
-
58
- .mark-read {
59
- color: $secondary;
60
- .read {
61
- display: block;
62
- }
63
- .unread {
64
- display: none;
65
- }
66
- &:hover {
67
- color: darken($secondary, 10%);
68
- @include pointer;
69
- }
70
- }
71
-
72
- &.unread {
73
- background-color: $warning;
74
-
75
- &:hover {
76
- background-color: darken($warning, 5%);
77
- }
78
-
79
- .mark-read {
80
- .read {
81
- display: none;
82
- }
83
- .unread {
84
- display: block;
85
- }
86
- }
87
- }
88
- }
89
- }
90
-
91
- .notification-list {
92
- @include notification-list;
93
- }
94
-
95
- .chat-list {
96
- @include notification-list;
97
-
98
- > li {
99
- @include pointer;
100
- width: 500px;
101
- padding: 0;
102
- margin: 0;
103
- gap: 0;
104
- overflow-y: hidden;
105
-
106
- .notification-chat-content {
107
- padding: 0.5rem;
108
- overflow: hidden;
109
- text-overflow: ellipsis;
110
- }
111
-
112
- .teaser-content {
113
- white-space: nowrap;
114
- max-height: 19px;
115
- }
116
-
117
- &:not(:last-child) {
118
- border-bottom: 1px solid $dropdown-border-color;
119
- }
120
-
121
- &.no_active a {
122
- text-align: center;
123
- white-space: normal;
124
- }
125
-
126
- a {
127
- line-height: 24px;
128
- }
129
-
130
- .members {
131
- padding-left: 1rem;
132
-
133
- li {
134
- display: inline-block;
135
- width: 16px;
136
- padding: 0;
137
- margin: 0;
138
- }
139
- }
140
- }
141
- }
142
- }
143
-
144
- .header {
145
-
146
- [component="navbar/title"] {
147
- display: none !important; //temp
148
- }
149
-
150
- #user_dropdown {
151
- padding: 9px 15px;
152
-
153
- img, .user-icon {
154
- @include user-icon-style(30px, 1.8rem, 50%);
155
- border: 0px none;
156
-
157
- span {
158
- font-size: 14px;
159
- font-weight: 400;
160
- }
161
- }
162
- }
163
-
164
- .forum-logo {
165
- max-height: 50px;
166
- width: auto;
167
- }
168
-
169
- .header-topic-title {
170
- text-align: right;
171
- padding: 15px 15px;
172
- font-size: 18px;
173
- line-height: 20px;
174
- text-overflow: ellipsis;
175
- overflow: hidden;
176
- white-space: nowrap;
177
- span {
178
- text-overflow: ellipsis;
179
- white-space: nowrap;
180
- color: $primary;
181
- }
182
- }
183
- }
184
-
185
- .breadcrumb {
186
- li {
187
- max-width: 100%;
188
- @include text-ellipsis;
189
- position: relative;
190
- }
191
-
192
- .fa {
193
- margin-left: 10px;
194
- color: rgb(153, 153, 153);
195
- }
196
-
197
- @include media-breakpoint-down(sm) {
198
- li {
199
- display: none;
200
- }
201
-
202
- li:nth-last-child(2), li:nth-last-child(1), li:last-child {
203
- display: inline-block;
204
- }
205
-
206
- li:nth-last-child(2):before {
207
- display: none;
208
- }
209
-
210
- li:last-child {
211
- white-space: normal;
212
- }
213
- }
214
- }
215
-
216
- #reconnect {
217
- font-size: 14px;
218
- -webkit-transition: opacity 250ms linear;
219
- -moz-transition: opacity 250ms linear;
220
- -ms-transition: opacity 250ms linear;
221
- -o-transition: opacity 250ms linear;
222
- transition: opacity 250ms linear;
223
- -moz-opacity: 0.00;
224
- opacity: 0.00;
225
- min-width: 45px;
226
-
227
- &.active {
228
- -moz-opacity: 1;
229
- opacity: 1;
230
- }
231
-
232
- & +div.tooltip .tooltip-inner {
233
- width: 350px;
234
- }
235
- }
236
- .unread-count {
237
- position: relative;
238
- &:after {
239
- position: absolute;
240
- left: 10px;
241
- top: -10px;
242
- font-size: 10px;
243
- text-align: center;
244
- border: 1px solid #890405;
245
- color: #fff;
246
- font-weight: bold;
247
- min-width: 16px;
248
- -webkit-border-radius: 3px;
249
- -moz-border-radius: 3px;
250
- border-radius: 3px;
251
- background: #c91106;
252
- padding: 1px 2px;
253
- font-family: $font-family-sans-serif;
254
- }
255
- }
256
-
257
- .unread-count[data-content]:not([data-content=""]):not([data-content="0"]):after {
258
- content: attr(data-content);
259
- }
260
-
261
- .navbar-toggler {
262
- .notification-icon {
263
- position: absolute;
264
- &[component="unread/icon"]::after {
265
- left: -10px;
266
- }
267
- &[component="notifications/icon"]:after {
268
- left: -5px;
269
- top: -5px;
270
- }
271
- &[component="chat/icon"]:after {
272
- left: 20px;
273
- top: -5px;
274
- }
275
-
276
- &:before {
277
- display: none;
278
- }
279
- }
280
- }
281
-
282
- .slideout-menu .unread-count:after {
283
- position: relative;
284
- left: -6px;
285
- top: -7px;
286
- }
287
-
288
- #search-form {
289
- #search-button {
290
- max-width: 60px;
291
- width: auto;
292
- transition-property: max-width, padding-left, padding-right;
293
- transition-duration: .2s;
294
- transition-timing-function: ease;
295
- overflow: hidden;
296
- }
297
- #search-button.hidden {
298
- display: inline-block !important;
299
- visibility: visible !important;
300
- max-width: 0;
301
- padding-left: 0;
302
- padding-right: 0;
303
- }
304
- #search-fields {
305
- overflow: hidden;
306
- transition: max-width 0.2s ease 0s;
307
- display: inline-block !important;
308
- visibility: visible !important;
309
-
310
- &.hidden {
311
- max-width: 0;
312
- }
313
-
314
- input.form-control {
315
- white-space: nowrap;
316
- outline: none;
317
- box-shadow: none;
318
- }
319
- }
320
- }
321
-
322
- body.skin-default .header {
323
- .notification-list {
324
- li {
325
- a {
326
- color: inherit;
327
- }
328
- }
329
- }
330
- }
331
-
332
- label.dropdown-toggle {
333
- cursor: pointer;
334
- margin: 0;
335
- }
336
-
337
- #user-control-list-check:checked + #user-control-list {
338
- display: block;
339
- }
340
-
341
- .dropdown-menu > li > form {
342
- > button, > .btn-link {
343
- text-align: left;
344
- width: 100%;
345
- background: none;
346
- border: none;
347
- display: block;
348
- padding: 3px 20px;
349
- clear: both;
350
- font-weight: normal;
351
- line-height: $line-height-base;
352
- white-space: nowrap; // prevent links from randomly breaking onto new lines
353
-
354
- &:hover,
355
- &:focus {
356
- text-decoration: none;
357
- color: $dropdown-link-hover-color;
358
- background-color: $dropdown-link-hover-bg;
359
- }
360
- }
361
- }
1
+ .header {
2
+ .notification-list, .chat-list {
3
+ overflow-x: hidden;
4
+ overflow-y: auto;
5
+ max-height: 250px;
6
+ padding: 0;
7
+ width: 300px;
8
+ min-width: 300px;
9
+ }
10
+ }
11
+
12
+ .header {
13
+
14
+ [component="navbar/title"] {
15
+ display: none !important; //temp
16
+ }
17
+
18
+ #user_dropdown {
19
+ padding: 9px 15px;
20
+
21
+ img, .user-icon {
22
+ @include user-icon-style(30px, 1.8rem, 50%);
23
+ border: 0px none;
24
+
25
+ span {
26
+ font-size: 14px;
27
+ font-weight: 400;
28
+ }
29
+ }
30
+ }
31
+
32
+ .forum-logo {
33
+ max-height: 50px;
34
+ width: auto;
35
+ }
36
+
37
+ .header-topic-title {
38
+ text-align: right;
39
+ padding: 15px 15px;
40
+ font-size: 18px;
41
+ line-height: 20px;
42
+ text-overflow: ellipsis;
43
+ overflow: hidden;
44
+ white-space: nowrap;
45
+ span {
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ color: $primary;
49
+ }
50
+ }
51
+ }
52
+
53
+ .breadcrumb {
54
+ li {
55
+ max-width: 100%;
56
+ @include text-ellipsis;
57
+ position: relative;
58
+ }
59
+
60
+ .fa {
61
+ margin-left: 10px;
62
+ color: rgb(153, 153, 153);
63
+ }
64
+
65
+ @include media-breakpoint-down(sm) {
66
+ li {
67
+ display: none;
68
+ }
69
+
70
+ li:nth-last-child(2), li:nth-last-child(1), li:last-child {
71
+ display: inline-block;
72
+ }
73
+
74
+ li:nth-last-child(2):before {
75
+ display: none;
76
+ }
77
+
78
+ li:last-child {
79
+ white-space: normal;
80
+ }
81
+ }
82
+ }
83
+
84
+ #reconnect {
85
+ font-size: 14px;
86
+ -webkit-transition: opacity 250ms linear;
87
+ -moz-transition: opacity 250ms linear;
88
+ -ms-transition: opacity 250ms linear;
89
+ -o-transition: opacity 250ms linear;
90
+ transition: opacity 250ms linear;
91
+ -moz-opacity: 0.00;
92
+ opacity: 0.00;
93
+ min-width: 45px;
94
+
95
+ &.active {
96
+ -moz-opacity: 1;
97
+ opacity: 1;
98
+ }
99
+
100
+ & +div.tooltip .tooltip-inner {
101
+ width: 350px;
102
+ }
103
+ }
104
+ .unread-count {
105
+ position: relative;
106
+ &:after {
107
+ position: absolute;
108
+ left: 10px;
109
+ top: -10px;
110
+ font-size: 10px;
111
+ text-align: center;
112
+ border: 1px solid #890405;
113
+ color: #fff;
114
+ font-weight: bold;
115
+ min-width: 16px;
116
+ -webkit-border-radius: 3px;
117
+ -moz-border-radius: 3px;
118
+ border-radius: 3px;
119
+ background: #c91106;
120
+ padding: 1px 2px;
121
+ font-family: $font-family-sans-serif;
122
+ }
123
+ }
124
+
125
+ .unread-count[data-content]:not([data-content=""]):not([data-content="0"]):after {
126
+ content: attr(data-content);
127
+ }
128
+
129
+ .navbar-toggler {
130
+ .notification-icon {
131
+ position: absolute;
132
+ &[component="unread/icon"]::after {
133
+ left: -10px;
134
+ }
135
+ &[component="notifications/icon"]:after {
136
+ left: -5px;
137
+ top: -5px;
138
+ }
139
+ &[component="chat/icon"]:after {
140
+ left: 20px;
141
+ top: -5px;
142
+ }
143
+
144
+ &:before {
145
+ display: none;
146
+ }
147
+ }
148
+ }
149
+
150
+ .slideout-menu .unread-count:after {
151
+ position: relative;
152
+ left: -6px;
153
+ top: -7px;
154
+ }
155
+
156
+ #search-form {
157
+ #search-button {
158
+ max-width: 60px;
159
+ width: auto;
160
+ transition-property: max-width, padding-left, padding-right;
161
+ transition-duration: .2s;
162
+ transition-timing-function: ease;
163
+ overflow: hidden;
164
+ }
165
+ #search-button.hidden {
166
+ display: inline-block !important;
167
+ visibility: visible !important;
168
+ max-width: 0;
169
+ padding-left: 0;
170
+ padding-right: 0;
171
+ }
172
+ #search-fields {
173
+ overflow: hidden;
174
+ transition: max-width 0.2s ease 0s;
175
+ display: inline-block !important;
176
+ visibility: visible !important;
177
+
178
+ &.hidden {
179
+ max-width: 0;
180
+ }
181
+
182
+ input.form-control {
183
+ white-space: nowrap;
184
+ outline: none;
185
+ box-shadow: none;
186
+ }
187
+ }
188
+ }
189
+
190
+ body.skin-default .header {
191
+ .notification-list {
192
+ li {
193
+ a {
194
+ color: inherit;
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ label.dropdown-toggle {
201
+ cursor: pointer;
202
+ margin: 0;
203
+ }
204
+
205
+ #user-control-list-check:checked + #user-control-list {
206
+ display: block;
207
+ }
208
+
209
+ .dropdown-menu > li > form {
210
+ > button, > .btn-link {
211
+ text-align: left;
212
+ width: 100%;
213
+ background: none;
214
+ border: none;
215
+ display: block;
216
+ padding: 3px 20px;
217
+ clear: both;
218
+ font-weight: normal;
219
+ line-height: $line-height-base;
220
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
221
+
222
+ &:hover,
223
+ &:focus {
224
+ text-decoration: none;
225
+ color: $dropdown-link-hover-color;
226
+ background-color: $dropdown-link-hover-bg;
227
+ }
228
+ }
229
+ }