nodebb-theme-persona 12.1.6 → 12.1.8
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/README.md +16 -14
- package/{scss/account.scss → less/account.less} +97 -13
- package/less/bootstrap/.csscomb.json +297 -0
- package/less/bootstrap/.csslintrc +19 -0
- package/less/bootstrap/alerts.less +73 -0
- package/less/bootstrap/badges.less +66 -0
- package/less/bootstrap/bootstrap.less +50 -0
- package/less/bootstrap/breadcrumbs.less +26 -0
- package/less/bootstrap/button-groups.less +243 -0
- package/less/bootstrap/buttons.less +160 -0
- package/less/bootstrap/carousel.less +269 -0
- package/less/bootstrap/close.less +34 -0
- package/less/bootstrap/code.less +69 -0
- package/less/bootstrap/component-animations.less +33 -0
- package/less/bootstrap/dropdowns.less +214 -0
- package/less/bootstrap/forms.less +574 -0
- package/less/bootstrap/glyphicons.less +305 -0
- package/less/bootstrap/grid.less +84 -0
- package/less/bootstrap/input-groups.less +166 -0
- package/less/bootstrap/jumbotron.less +50 -0
- package/less/bootstrap/labels.less +64 -0
- package/less/bootstrap/list-group.less +124 -0
- package/less/bootstrap/media.less +61 -0
- package/less/bootstrap/mixins/alerts.less +14 -0
- package/less/bootstrap/mixins/background-variant.less +8 -0
- package/less/bootstrap/mixins/border-radius.less +18 -0
- package/less/bootstrap/mixins/buttons.less +52 -0
- package/less/bootstrap/mixins/center-block.less +7 -0
- package/less/bootstrap/mixins/clearfix.less +22 -0
- package/less/bootstrap/mixins/forms.less +85 -0
- package/less/bootstrap/mixins/gradients.less +59 -0
- package/less/bootstrap/mixins/grid-framework.less +91 -0
- package/less/bootstrap/mixins/grid.less +122 -0
- package/less/bootstrap/mixins/hide-text.less +21 -0
- package/less/bootstrap/mixins/image.less +33 -0
- package/less/bootstrap/mixins/labels.less +12 -0
- package/less/bootstrap/mixins/list-group.less +29 -0
- package/less/bootstrap/mixins/nav-divider.less +10 -0
- package/less/bootstrap/mixins/nav-vertical-align.less +9 -0
- package/less/bootstrap/mixins/opacity.less +8 -0
- package/less/bootstrap/mixins/pagination.less +23 -0
- package/less/bootstrap/mixins/panels.less +24 -0
- package/less/bootstrap/mixins/progress-bar.less +10 -0
- package/less/bootstrap/mixins/reset-filter.less +8 -0
- package/less/bootstrap/mixins/resize.less +6 -0
- package/less/bootstrap/mixins/responsive-visibility.less +15 -0
- package/less/bootstrap/mixins/size.less +10 -0
- package/less/bootstrap/mixins/tab-focus.less +9 -0
- package/less/bootstrap/mixins/table-row.less +28 -0
- package/less/bootstrap/mixins/text-emphasis.less +8 -0
- package/less/bootstrap/mixins/text-overflow.less +8 -0
- package/less/bootstrap/mixins/vendor-prefixes.less +227 -0
- package/less/bootstrap/mixins.less +39 -0
- package/less/bootstrap/modals.less +150 -0
- package/less/bootstrap/navbar.less +660 -0
- package/less/bootstrap/navs.less +242 -0
- package/less/bootstrap/normalize.less +427 -0
- package/less/bootstrap/pager.less +54 -0
- package/less/bootstrap/pagination.less +88 -0
- package/less/bootstrap/panels.less +265 -0
- package/less/bootstrap/popovers.less +135 -0
- package/less/bootstrap/print.less +107 -0
- package/less/bootstrap/progress-bars.less +87 -0
- package/less/bootstrap/responsive-embed.less +35 -0
- package/less/bootstrap/responsive-utilities.less +194 -0
- package/less/bootstrap/scaffolding.less +162 -0
- package/less/bootstrap/tables.less +234 -0
- package/less/bootstrap/theme.less +273 -0
- package/less/bootstrap/thumbnails.less +36 -0
- package/less/bootstrap/tooltip.less +102 -0
- package/less/bootstrap/type.less +302 -0
- package/less/bootstrap/utilities.less +55 -0
- package/less/bootstrap/variables.less +861 -0
- package/less/bootstrap/wells.less +29 -0
- package/less/bootstrap-flipped.css +1550 -0
- package/{scss/categories.scss → less/categories.less} +40 -10
- package/{scss/category.scss → less/category.less} +75 -26
- package/{scss/chats.scss → less/chats.less} +88 -35
- package/{scss/flags.scss → less/flags.less} +3 -3
- package/{scss/footer.scss → less/footer.less} +1 -0
- package/{scss/groups.scss → less/groups.less} +38 -14
- package/{scss/header.scss → less/header.less} +139 -63
- package/{scss/helpers.scss → less/helpers.less} +0 -0
- package/less/ip-blacklist.less +7 -0
- package/{scss/keyframes.scss → less/keyframes.less} +0 -0
- package/{scss/mixins.scss → less/mixins.less} +59 -17
- package/{scss/mobile.scss → less/mobile.less} +18 -13
- package/{scss/modules/alerts.scss → less/modules/alerts.less} +21 -21
- package/less/modules/bottom-sheet.less +60 -0
- package/{scss/modules/composer-default.scss → less/modules/composer-default.less} +2 -2
- package/{scss/modules/cookie-consent.scss → less/modules/cookie-consent.less} +1 -1
- package/{scss/modules/fab.scss → less/modules/fab.less} +2 -2
- package/{scss/modules/morph.scss → less/modules/morph.less} +1 -1
- package/{scss/modules/necro-post.scss → less/modules/necro-post.less} +0 -0
- package/less/modules/nprogress.less +80 -0
- package/{scss/modules/taskbar.scss → less/modules/taskbar.less} +10 -11
- package/{scss/modules/usercard.scss → less/modules/usercard.less} +0 -0
- package/{scss/noscript.scss → less/noscript.less} +7 -5
- package/less/notifications.less +38 -0
- package/{scss/outgoing.scss → less/outgoing.less} +0 -0
- package/{scss/persona.scss → less/persona.less} +13 -1
- package/less/post-queue.less +19 -0
- package/{scss/posts_list.scss → less/posts_list.less} +14 -11
- package/{scss/register.scss → less/register.less} +7 -2
- package/less/rtl.less +132 -0
- package/less/search.less +96 -0
- package/{scss/style.scss → less/style.less} +47 -23
- package/less/tags.less +37 -0
- package/{scss/topic.scss → less/topic.less} +94 -57
- package/less/topics_list.less +16 -0
- package/less/users.less +73 -0
- package/{scss/variables.scss → less/variables.less} +3 -3
- package/package.json +2 -2
- package/public/persona.js +22 -11
- package/templates/account/blocks.tpl +26 -24
- package/templates/account/categories.tpl +6 -6
- package/templates/account/consent.tpl +10 -10
- package/templates/account/edit/password.tpl +10 -8
- package/templates/account/edit/username.tpl +10 -6
- package/templates/account/edit.tpl +23 -23
- package/templates/account/followers.tpl +3 -3
- package/templates/account/following.tpl +3 -3
- package/templates/account/groups.tpl +2 -2
- package/templates/account/info.tpl +72 -67
- package/templates/account/posts.tpl +1 -1
- package/templates/account/profile.tpl +18 -20
- package/templates/account/sessions.tpl +3 -3
- package/templates/account/settings.tpl +81 -93
- package/templates/account/topics.tpl +5 -5
- package/templates/account/uploads.tpl +2 -2
- package/templates/admin/plugins/persona.tpl +3 -3
- package/templates/alert.tpl +15 -0
- package/templates/category.tpl +14 -15
- package/templates/chat.tpl +9 -16
- package/templates/chats.tpl +3 -5
- package/templates/flags/detail.tpl +80 -86
- package/templates/flags/list.tpl +4 -4
- package/templates/footer.tpl +1 -1
- package/templates/groups/details.tpl +218 -23
- package/templates/groups/list.tpl +9 -11
- package/templates/groups/members.tpl +4 -1
- package/templates/header.tpl +4 -10
- package/templates/ip-blacklist.tpl +20 -22
- package/templates/login.tpl +14 -17
- package/templates/modules/taskbar.tpl +1 -1
- package/templates/modules/usercard.tpl +2 -2
- package/templates/notifications.tpl +38 -40
- package/templates/partials/acceptTos.tpl +8 -8
- package/templates/partials/account/category-item.tpl +5 -6
- package/templates/partials/account/header.tpl +2 -2
- package/templates/partials/account/menu.tpl +37 -37
- package/templates/partials/breadcrumbs.tpl +1 -1
- package/templates/partials/buttons/newTopic.tpl +3 -10
- package/templates/partials/categories/item.tpl +10 -24
- package/templates/partials/categories/lastpost.tpl +3 -3
- package/templates/partials/categories/link.tpl +10 -10
- package/templates/partials/category/sort.tpl +7 -7
- package/templates/partials/category/subcategory.tpl +3 -3
- package/templates/partials/category/tags.tpl +5 -3
- package/templates/partials/category/tools.tpl +16 -16
- package/templates/partials/category/watch.tpl +10 -8
- package/templates/partials/category-filter-content.tpl +5 -17
- package/templates/partials/category-filter-right.tpl +1 -1
- package/templates/partials/category-selector-content.tpl +4 -17
- package/templates/partials/category-selector-right.tpl +1 -1
- package/templates/partials/change_owner_modal.tpl +22 -0
- package/templates/partials/chats/message-window.tpl +8 -10
- package/templates/partials/chats/message.tpl +11 -11
- package/templates/partials/chats/options.tpl +8 -8
- package/templates/partials/chats/recent_room.tpl +1 -1
- package/templates/partials/chats/system-message.tpl +1 -1
- package/templates/partials/chats/user.tpl +1 -1
- package/templates/partials/chats-menu.tpl +11 -11
- package/templates/partials/cookie-consent.tpl +1 -1
- package/templates/partials/delete_posts_modal.tpl +19 -0
- package/templates/partials/flags/filters.tpl +32 -34
- package/templates/partials/fork_thread_modal.tpl +22 -0
- package/templates/partials/groups/list.tpl +6 -6
- package/templates/partials/groups/memberlist.tpl +10 -11
- package/templates/partials/menu.tpl +156 -149
- package/templates/partials/merge_topics_modal.tpl +58 -0
- package/templates/partials/modals/change_picture_modal.tpl +73 -0
- package/templates/partials/modals/flag_modal.tpl +45 -0
- package/templates/partials/modals/manage_room.tpl +11 -0
- package/templates/partials/modals/manage_room_users.tpl +7 -0
- package/templates/partials/modals/post_history.tpl +36 -0
- package/templates/partials/modals/rename_room.tpl +4 -0
- package/templates/partials/modals/upload_file_modal.tpl +44 -0
- package/templates/partials/modals/upload_picture_from_url_modal.tpl +17 -0
- package/templates/partials/modals/votes_modal.tpl +10 -0
- package/templates/partials/move_thread_modal.tpl +17 -0
- package/templates/partials/notifications_list.tpl +2 -2
- package/templates/partials/paginator.tpl +21 -21
- package/templates/partials/post_bar.tpl +4 -4
- package/templates/partials/posts_list.tpl +1 -1
- package/templates/partials/posts_list_item.tpl +2 -2
- package/templates/partials/quick-search-results.tpl +11 -14
- package/templates/partials/slideout-menu.tpl +1 -1
- package/templates/partials/tags_list.tpl +3 -3
- package/templates/partials/thread_tools.tpl +4 -4
- package/templates/partials/topic/badge.tpl +5 -0
- package/templates/partials/topic/deleted-message.tpl +2 -2
- package/templates/partials/topic/event.tpl +2 -2
- package/templates/partials/topic/navigation-post.tpl +3 -3
- package/templates/partials/topic/navigator.tpl +7 -7
- package/templates/partials/topic/necro-post.tpl +1 -1
- package/templates/partials/topic/post-menu-list.tpl +23 -26
- package/templates/partials/topic/post-menu.tpl +3 -3
- package/templates/partials/topic/post.tpl +44 -49
- package/templates/partials/topic/quickreply.tpl +3 -3
- package/templates/partials/topic/reply-button.tpl +3 -3
- package/templates/partials/topic/sort.tpl +5 -5
- package/templates/partials/topic/tags.tpl +5 -3
- package/templates/partials/topic/topic-menu-list.tpl +16 -18
- package/templates/partials/topic/watch.tpl +10 -11
- package/templates/partials/topics_list.tpl +25 -27
- package/templates/partials/users_list.tpl +10 -22
- package/templates/partials/users_list_menu.tpl +9 -19
- package/templates/popular.tpl +35 -9
- package/templates/post-queue.tpl +35 -42
- package/templates/recent.tpl +24 -10
- package/templates/register.tpl +17 -17
- package/templates/registerComplete.tpl +10 -14
- package/templates/reset.tpl +5 -7
- package/templates/reset_code.tpl +9 -9
- package/templates/search.tpl +87 -100
- package/templates/tag.tpl +10 -8
- package/templates/tags.tpl +3 -5
- package/templates/top.tpl +35 -9
- package/templates/topic.tpl +10 -8
- package/templates/tos.tpl +4 -4
- package/templates/unread.tpl +22 -10
- package/templates/users.tpl +20 -7
- package/theme.json +6 -6
- package/theme.less +2 -0
- package/scss/modules/nprogress.scss +0 -80
- package/scss/overrides.scss +0 -44
- package/scss/search.scss +0 -39
- package/scss/tags.scss +0 -11
- package/scss/topics_list.scss +0 -17
- package/templates/partials/groups/admin.tpl +0 -195
- package/templates/partials/groups/badge.tpl +0 -1
- package/templates/partials/toast.tpl +0 -14
- package/templates/partials/topic/tag.tpl +0 -1
- package/templates/partials/topic-filters.tpl +0 -12
- package/templates/partials/topic-terms.tpl +0 -12
- package/theme.scss +0 -1
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
font-size: 24px;
|
|
13
13
|
color:inherit;
|
|
14
14
|
line-height: 32px;
|
|
15
|
-
@
|
|
15
|
+
@media (max-width: @screen-sm-max) {
|
|
16
16
|
font-size: 18px;
|
|
17
17
|
line-height: 24px;
|
|
18
18
|
margin-top: 0px;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
> span {
|
|
23
23
|
text-transform: uppercase;
|
|
24
|
-
color:
|
|
24
|
+
color: @gray-light;
|
|
25
25
|
display: inline-block;
|
|
26
26
|
margin-top: 8px;
|
|
27
27
|
}
|
|
@@ -33,26 +33,42 @@
|
|
|
33
33
|
|
|
34
34
|
[component="topic/labels"] {
|
|
35
35
|
font-size: 20px;
|
|
36
|
-
color:
|
|
36
|
+
color: @text-muted;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
[component="topic/browsing-users"] {
|
|
40
40
|
margin-bottom: -5px;
|
|
41
41
|
}
|
|
42
42
|
.topic-header {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
position: sticky;
|
|
44
|
+
top: calc(var(--panel-offset) - 20px);
|
|
45
|
+
background-color: @body-bg;
|
|
46
|
+
z-index: @zindex-navbar;
|
|
47
|
+
margin-left: -15px;
|
|
48
|
+
margin-right: -15px;
|
|
49
|
+
padding-left: 15px;
|
|
50
|
+
padding-right: 15px;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
.topic-info {
|
|
49
|
-
border-bottom: 1px solid
|
|
54
|
+
border-bottom: 1px solid @post-border-color;
|
|
50
55
|
margin-bottom: 10px;
|
|
51
56
|
padding-bottom: 10px;
|
|
52
57
|
> * {
|
|
53
58
|
padding-top: 10px;
|
|
54
59
|
}
|
|
55
60
|
}
|
|
61
|
+
.category-item {
|
|
62
|
+
.icon {
|
|
63
|
+
min-width: 23px;
|
|
64
|
+
min-height: 23px;
|
|
65
|
+
font-size: 10px;
|
|
66
|
+
line-height: 12px;
|
|
67
|
+
padding: 5px;
|
|
68
|
+
margin-right: 5px;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
56
72
|
|
|
57
73
|
.posts {
|
|
58
74
|
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
|
|
@@ -102,7 +118,7 @@
|
|
|
102
118
|
top: 0px;
|
|
103
119
|
z-index: 1;
|
|
104
120
|
|
|
105
|
-
@
|
|
121
|
+
@media (min-width: @screen-md-min) {
|
|
106
122
|
top: 2px;
|
|
107
123
|
font-size: 16px;
|
|
108
124
|
}
|
|
@@ -121,23 +137,24 @@
|
|
|
121
137
|
.login-required {
|
|
122
138
|
display: inline-block;
|
|
123
139
|
padding: 0 0.5em;
|
|
124
|
-
border: 1px dashed
|
|
140
|
+
border: 1px dashed @gray-light;
|
|
125
141
|
}
|
|
126
142
|
|
|
127
143
|
.bookmarked {
|
|
128
144
|
font-size: 16px;
|
|
129
|
-
color: darken(
|
|
145
|
+
color: darken(@post-highlight, 20%);
|
|
130
146
|
opacity: 0;
|
|
131
|
-
|
|
147
|
+
.transition(0.75s ease-in-out opacity);
|
|
132
148
|
margin-left: 5px;
|
|
133
149
|
}
|
|
134
150
|
|
|
135
151
|
[component="post/anchor"] {
|
|
136
152
|
position: relative;
|
|
137
|
-
top:
|
|
153
|
+
top: -@post-padding;
|
|
138
154
|
}
|
|
139
155
|
|
|
140
156
|
[component="post/upvote"], [component="post/downvote"] {
|
|
157
|
+
color: @gray-light;
|
|
141
158
|
display: inline-block;
|
|
142
159
|
padding: 1rem;
|
|
143
160
|
|
|
@@ -146,14 +163,14 @@
|
|
|
146
163
|
}
|
|
147
164
|
}
|
|
148
165
|
|
|
149
|
-
[component="post/upvote"].upvoted {
|
|
150
|
-
|
|
151
|
-
|
|
166
|
+
[component="post/upvote"].upvoted i::before {
|
|
167
|
+
content: @fa-var-chevron-circle-up;
|
|
168
|
+
color: @brand-primary;
|
|
152
169
|
}
|
|
153
170
|
|
|
154
|
-
[component="post/downvote"].downvoted {
|
|
155
|
-
|
|
156
|
-
|
|
171
|
+
[component="post/downvote"].downvoted i::before {
|
|
172
|
+
content: @fa-var-chevron-circle-down;
|
|
173
|
+
color: @brand-primary;
|
|
157
174
|
}
|
|
158
175
|
|
|
159
176
|
[component="post/vote-count"] {
|
|
@@ -173,7 +190,7 @@
|
|
|
173
190
|
font-size: 11px;
|
|
174
191
|
|
|
175
192
|
img, .user-icon {
|
|
176
|
-
|
|
193
|
+
.user-icon-style(16px, 10px, 50%);
|
|
177
194
|
vertical-align: 1px;
|
|
178
195
|
}
|
|
179
196
|
|
|
@@ -185,6 +202,10 @@
|
|
|
185
202
|
margin-left: 3px;
|
|
186
203
|
}
|
|
187
204
|
|
|
205
|
+
.replies-last {
|
|
206
|
+
color: @gray-light;
|
|
207
|
+
}
|
|
208
|
+
|
|
188
209
|
.fa {
|
|
189
210
|
font-size: 80%;
|
|
190
211
|
}
|
|
@@ -212,7 +233,7 @@
|
|
|
212
233
|
|
|
213
234
|
[component="post/replies"] {
|
|
214
235
|
margin-left: 61px;
|
|
215
|
-
margin-top:
|
|
236
|
+
margin-top: @post-padding;
|
|
216
237
|
border-left: 5px solid #eee;
|
|
217
238
|
padding-left: 20px;
|
|
218
239
|
|
|
@@ -236,16 +257,16 @@
|
|
|
236
257
|
margin-top: 2px;
|
|
237
258
|
display: block;
|
|
238
259
|
|
|
239
|
-
color:
|
|
260
|
+
color: @gray-light;
|
|
240
261
|
|
|
241
262
|
strong {
|
|
242
|
-
color:
|
|
263
|
+
color: @gray-dark;
|
|
243
264
|
}
|
|
244
265
|
}
|
|
245
266
|
}
|
|
246
267
|
|
|
247
268
|
.content {
|
|
248
|
-
margin-top:
|
|
269
|
+
margin-top: @post-padding;
|
|
249
270
|
padding-bottom: 1px;
|
|
250
271
|
margin-top: -43px;
|
|
251
272
|
margin-left: 38px;
|
|
@@ -257,7 +278,7 @@
|
|
|
257
278
|
.post-tools {
|
|
258
279
|
a {
|
|
259
280
|
padding: 1rem 10px;
|
|
260
|
-
|
|
281
|
+
.pointer;
|
|
261
282
|
}
|
|
262
283
|
}
|
|
263
284
|
|
|
@@ -274,7 +295,7 @@
|
|
|
274
295
|
background: white !important;
|
|
275
296
|
color: #333;
|
|
276
297
|
&:hover {
|
|
277
|
-
background:
|
|
298
|
+
background: @brand-primary !important;
|
|
278
299
|
}
|
|
279
300
|
}
|
|
280
301
|
}
|
|
@@ -285,12 +306,12 @@
|
|
|
285
306
|
}
|
|
286
307
|
|
|
287
308
|
.btn {
|
|
288
|
-
background:
|
|
309
|
+
background: @body-bg;
|
|
289
310
|
text-transform: uppercase;
|
|
290
311
|
font-weight: 600;
|
|
291
312
|
box-shadow: none !important;
|
|
292
313
|
font-size: 11px;
|
|
293
|
-
color:
|
|
314
|
+
color: @gray-light;
|
|
294
315
|
padding: 0;
|
|
295
316
|
}
|
|
296
317
|
}
|
|
@@ -307,7 +328,7 @@
|
|
|
307
328
|
word-wrap: break-word;
|
|
308
329
|
}
|
|
309
330
|
|
|
310
|
-
@
|
|
331
|
+
@media (max-width: @screen-sm-max) {
|
|
311
332
|
.content {
|
|
312
333
|
margin-left: 0;
|
|
313
334
|
margin-top: -10px;
|
|
@@ -328,7 +349,7 @@
|
|
|
328
349
|
margin-top: -3px;
|
|
329
350
|
|
|
330
351
|
.avatar {
|
|
331
|
-
|
|
352
|
+
.user-icon-style(23px, 1.3rem, 50%);
|
|
332
353
|
}
|
|
333
354
|
}
|
|
334
355
|
|
|
@@ -356,7 +377,7 @@
|
|
|
356
377
|
font-size: 12px;
|
|
357
378
|
top: 0px;
|
|
358
379
|
|
|
359
|
-
@
|
|
380
|
+
@media (min-width: @screen-md-min) {
|
|
360
381
|
top: 2px;
|
|
361
382
|
font-size: 16px;
|
|
362
383
|
}
|
|
@@ -368,10 +389,10 @@
|
|
|
368
389
|
}
|
|
369
390
|
|
|
370
391
|
.quickreply-message {
|
|
371
|
-
margin-left:
|
|
392
|
+
margin-left: 61px;
|
|
372
393
|
margin-bottom: 5px;
|
|
373
394
|
|
|
374
|
-
@
|
|
395
|
+
@media (max-width: @screen-sm-max) {
|
|
375
396
|
margin-left: 0;
|
|
376
397
|
|
|
377
398
|
[component="topic/quickreply/text"] {
|
|
@@ -399,7 +420,7 @@
|
|
|
399
420
|
|
|
400
421
|
.posts {
|
|
401
422
|
&.timeline {
|
|
402
|
-
|
|
423
|
+
.timeline-style;
|
|
403
424
|
}
|
|
404
425
|
|
|
405
426
|
list-style-type: none;
|
|
@@ -407,7 +428,7 @@
|
|
|
407
428
|
|
|
408
429
|
[component="post"] {
|
|
409
430
|
position: relative;
|
|
410
|
-
|
|
431
|
+
.transition(0.75s ease-in-out border-color);
|
|
411
432
|
|
|
412
433
|
.edit-icon {
|
|
413
434
|
vertical-align: -2%;
|
|
@@ -424,8 +445,8 @@
|
|
|
424
445
|
}
|
|
425
446
|
|
|
426
447
|
&.highlight {
|
|
427
|
-
border-color: darken(
|
|
428
|
-
box-shadow: 0px 2px 2px -2px
|
|
448
|
+
border-color: darken(@post-highlight, 20%);
|
|
449
|
+
box-shadow: 0px 2px 2px -2px @post-highlight;
|
|
429
450
|
|
|
430
451
|
.bookmarked {
|
|
431
452
|
opacity: 1;
|
|
@@ -434,7 +455,7 @@
|
|
|
434
455
|
}
|
|
435
456
|
|
|
436
457
|
.content {
|
|
437
|
-
|
|
458
|
+
.fix-lists;
|
|
438
459
|
|
|
439
460
|
blockquote {
|
|
440
461
|
font-size: 12px;
|
|
@@ -454,7 +475,7 @@
|
|
|
454
475
|
}
|
|
455
476
|
}
|
|
456
477
|
|
|
457
|
-
iframe, .img-
|
|
478
|
+
iframe, .img-responsive {
|
|
458
479
|
max-width: 85%;
|
|
459
480
|
display: inline;
|
|
460
481
|
}
|
|
@@ -478,7 +499,7 @@
|
|
|
478
499
|
}
|
|
479
500
|
}
|
|
480
501
|
|
|
481
|
-
@
|
|
502
|
+
@media (max-width: @screen-sm-min) {
|
|
482
503
|
pre {
|
|
483
504
|
max-height: 250px;
|
|
484
505
|
}
|
|
@@ -488,7 +509,7 @@
|
|
|
488
509
|
|
|
489
510
|
.pagination-block {
|
|
490
511
|
position: fixed;
|
|
491
|
-
background-color:
|
|
512
|
+
background-color: @gray-lighter;
|
|
492
513
|
bottom: 0px;
|
|
493
514
|
right: 0px;
|
|
494
515
|
z-index: 100;
|
|
@@ -496,7 +517,7 @@
|
|
|
496
517
|
opacity: 0;
|
|
497
518
|
|
|
498
519
|
.pagination-text {
|
|
499
|
-
color:
|
|
520
|
+
color: @text-color;
|
|
500
521
|
position: relative;
|
|
501
522
|
top: -3px;
|
|
502
523
|
font-weight: bolder;
|
|
@@ -512,6 +533,7 @@
|
|
|
512
533
|
padding-left: 20px;
|
|
513
534
|
padding-right: 20px;
|
|
514
535
|
padding-top: 10px;
|
|
536
|
+
padding-bottom: 10px;
|
|
515
537
|
}
|
|
516
538
|
.dropdown-menu {
|
|
517
539
|
width: 475px;
|
|
@@ -525,7 +547,7 @@
|
|
|
525
547
|
}
|
|
526
548
|
.scroller-container {
|
|
527
549
|
height: 300px;
|
|
528
|
-
border-right: 3px solid
|
|
550
|
+
border-right: 3px solid @gray-lighter;
|
|
529
551
|
margin-right: 3px;
|
|
530
552
|
cursor: pointer;
|
|
531
553
|
.scroller-thumb {
|
|
@@ -539,7 +561,7 @@
|
|
|
539
561
|
.scroller-thumb-icon {
|
|
540
562
|
width: 9px;
|
|
541
563
|
height: 40px;
|
|
542
|
-
background-color:
|
|
564
|
+
background-color: @brand-primary;
|
|
543
565
|
position: relative;
|
|
544
566
|
display: inline-block;
|
|
545
567
|
border-radius: 3px;
|
|
@@ -554,22 +576,21 @@
|
|
|
554
576
|
}
|
|
555
577
|
}
|
|
556
578
|
}
|
|
557
|
-
@
|
|
579
|
+
@media (max-width: @screen-sm-min) {
|
|
558
580
|
.dropdown-menu {
|
|
559
581
|
width: 100%;
|
|
560
582
|
}
|
|
561
583
|
}
|
|
562
584
|
}
|
|
563
585
|
.progress-bar {
|
|
564
|
-
background-color:
|
|
586
|
+
background-color: @brand-info;
|
|
565
587
|
display:block;
|
|
566
588
|
z-index: -1;
|
|
567
589
|
position: absolute;
|
|
568
590
|
transition: width 50ms ease-in;
|
|
569
|
-
height: 100%;
|
|
570
591
|
}
|
|
571
592
|
}
|
|
572
|
-
@
|
|
593
|
+
@media (max-width: @screen-sm-min) {
|
|
573
594
|
.pagination-block {
|
|
574
595
|
width: 100%;
|
|
575
596
|
}
|
|
@@ -583,7 +604,7 @@
|
|
|
583
604
|
position: relative;
|
|
584
605
|
|
|
585
606
|
img, .user-icon {
|
|
586
|
-
|
|
607
|
+
.user-icon-style(20px, 1rem, 50%);
|
|
587
608
|
vertical-align: middle;
|
|
588
609
|
margin: 0 7px;
|
|
589
610
|
}
|
|
@@ -599,13 +620,13 @@
|
|
|
599
620
|
top: -36px;
|
|
600
621
|
left: 7px;
|
|
601
622
|
|
|
602
|
-
|
|
623
|
+
.transition(~"opacity ease 250ms, top ease 250ms")
|
|
603
624
|
}
|
|
604
625
|
|
|
605
626
|
&.replying::after {
|
|
606
627
|
opacity: 1;
|
|
607
628
|
top: -50px;
|
|
608
|
-
animation
|
|
629
|
+
.animation(topic-reply-pulse 2s ease-in infinite);
|
|
609
630
|
}
|
|
610
631
|
}
|
|
611
632
|
|
|
@@ -618,17 +639,34 @@
|
|
|
618
639
|
}
|
|
619
640
|
}
|
|
620
641
|
|
|
642
|
+
.fork-thread-card {
|
|
643
|
+
position: fixed;
|
|
644
|
+
bottom: 10%;
|
|
645
|
+
right: 2rem;
|
|
646
|
+
z-index: 1;
|
|
647
|
+
}
|
|
648
|
+
|
|
621
649
|
.selection-tooltip-container {
|
|
622
650
|
position: absolute;
|
|
623
651
|
padding: 5px;
|
|
624
|
-
border: 1px solid
|
|
625
|
-
background-color:
|
|
652
|
+
border: 1px solid @well-border;
|
|
653
|
+
background-color: @well-bg;
|
|
626
654
|
border-radius: 3px;
|
|
627
655
|
margin: 10px 0px 0px 0px;
|
|
628
656
|
z-index: 1;
|
|
629
657
|
}
|
|
630
658
|
|
|
659
|
+
@media screen and (min-width: @screen-sm-min) {
|
|
660
|
+
.fork-thread-card {
|
|
661
|
+
max-width: 33%;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
631
665
|
[component="post"] {
|
|
666
|
+
.avatar.avatar-sm2x {
|
|
667
|
+
font-size: 2.875rem;
|
|
668
|
+
}
|
|
669
|
+
|
|
632
670
|
>.post-header [component="user/picture"], >.post-header [component="user/status"] {
|
|
633
671
|
opacity: 1;
|
|
634
672
|
}
|
|
@@ -637,16 +675,15 @@
|
|
|
637
675
|
opacity: 0;
|
|
638
676
|
}
|
|
639
677
|
|
|
640
|
-
&.
|
|
678
|
+
&.bg-success {
|
|
641
679
|
background-color: initial;
|
|
642
680
|
|
|
643
681
|
>.post-header .icon:before {
|
|
644
|
-
border: 1px solid
|
|
645
|
-
color:
|
|
646
|
-
background-color: $success;
|
|
682
|
+
border: 1px solid #5cb85c;
|
|
683
|
+
color: #5cb85c;
|
|
647
684
|
-webkit-transition: .2s ease-in-out all;
|
|
648
685
|
transition: .2s ease-in-out all;
|
|
649
|
-
|
|
686
|
+
content: "\f00c";
|
|
650
687
|
padding: 14px;
|
|
651
688
|
border-radius: 50%;
|
|
652
689
|
opacity: 1;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#new-topics-alert {
|
|
2
|
+
margin-bottom: 0px;
|
|
3
|
+
padding: 10px 16px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.topic-list-header {
|
|
7
|
+
position: sticky;
|
|
8
|
+
top: @navbar-height;
|
|
9
|
+
background-color: @body-bg;
|
|
10
|
+
z-index: @zindex-navbar;
|
|
11
|
+
padding-top: 10px;
|
|
12
|
+
padding-bottom: 10px;
|
|
13
|
+
margin-bottom: 10px;
|
|
14
|
+
border-top: 1px solid @post-border-color;
|
|
15
|
+
border-bottom: 1px solid @post-border-color;
|
|
16
|
+
}
|
package/less/users.less
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.users {
|
|
2
|
+
|
|
3
|
+
&.admin {
|
|
4
|
+
#users-container {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.users-box{
|
|
9
|
+
display: inline-block;
|
|
10
|
+
margin-top: 20px;
|
|
11
|
+
text-align: center;
|
|
12
|
+
vertical-align: top;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
text-overflow: ellipsis;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
height: auto;
|
|
17
|
+
max-width: 125px;
|
|
18
|
+
|
|
19
|
+
img {
|
|
20
|
+
width:80px;
|
|
21
|
+
height:80px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
margin-bottom:5px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.users-container {
|
|
32
|
+
padding: 0;
|
|
33
|
+
list-style-type: none;
|
|
34
|
+
|
|
35
|
+
li {
|
|
36
|
+
padding-bottom: 10px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.users-box{
|
|
40
|
+
display: inline-block;
|
|
41
|
+
margin-top: 20px;
|
|
42
|
+
text-align: center;
|
|
43
|
+
vertical-align: top;
|
|
44
|
+
width: 104px;
|
|
45
|
+
|
|
46
|
+
a {
|
|
47
|
+
max-width: 94px;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.user-info {
|
|
55
|
+
>span {
|
|
56
|
+
max-width: 94px;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
display: inline-block;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.user-img {
|
|
65
|
+
.user-icon-style(20px, 1rem, 50%);
|
|
66
|
+
vertical-align: middle;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.anon-user .avatar {
|
|
70
|
+
background: @gray-lighter;
|
|
71
|
+
color: white;
|
|
72
|
+
}
|
|
73
|
+
}
|
package/package.json
CHANGED
package/public/persona.js
CHANGED
|
@@ -7,21 +7,30 @@ $(document).ready(function () {
|
|
|
7
7
|
setupMobileMenu();
|
|
8
8
|
setupQuickReply();
|
|
9
9
|
configureNavbarHiding();
|
|
10
|
+
updatePanelOffset();
|
|
10
11
|
|
|
11
12
|
$(window).on('resize', utils.debounce(configureNavbarHiding, 200));
|
|
12
13
|
$(window).on('resize', updatePanelOffset);
|
|
13
14
|
|
|
14
15
|
function updatePanelOffset() {
|
|
15
|
-
const
|
|
16
|
+
const headerEl = document.getElementById('header-menu');
|
|
16
17
|
|
|
17
|
-
if (!
|
|
18
|
+
if (!headerEl) {
|
|
18
19
|
console.warn('[persona/updatePanelOffset] Could not find #header-menu, panel offset unchanged.');
|
|
19
20
|
return;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
const
|
|
23
|
-
const
|
|
23
|
+
const headerRect = headerEl.getBoundingClientRect();
|
|
24
|
+
const headerStyle = window.getComputedStyle(headerEl);
|
|
25
|
+
|
|
26
|
+
let offset =
|
|
27
|
+
headerRect.y + headerRect.height +
|
|
28
|
+
(parseInt(headerStyle.marginTop, 10) || 0) +
|
|
29
|
+
(parseInt(headerStyle.marginBottom, 10) || 0);
|
|
30
|
+
|
|
31
|
+
offset = Math.max(0, offset);
|
|
24
32
|
document.documentElement.style.setProperty('--panel-offset', `${offset}px`);
|
|
33
|
+
localStorage.setItem('panelOffset', offset);
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
var lastBSEnv = '';
|
|
@@ -178,7 +187,7 @@ $(document).ready(function () {
|
|
|
178
187
|
}
|
|
179
188
|
|
|
180
189
|
icon = el.closest('[data-pid]').find('.edit-icon').first();
|
|
181
|
-
icon.prop('title', el.text()).tooltip().removeClass('hidden');
|
|
190
|
+
icon.prop('title', el.text()).tooltip('fixTitle').removeClass('hidden');
|
|
182
191
|
});
|
|
183
192
|
}
|
|
184
193
|
|
|
@@ -188,7 +197,7 @@ $(document).ready(function () {
|
|
|
188
197
|
return parseInt($(el).closest('[data-pid]').attr('data-pid'), 10) === parseInt(data.post.pid, 10);
|
|
189
198
|
});
|
|
190
199
|
var el = parent.find('[component="post/editor"]').first();
|
|
191
|
-
icon.prop('title', el.text()).tooltip().removeClass('hidden');
|
|
200
|
+
icon.prop('title', el.text()).tooltip('fixTitle').removeClass('hidden');
|
|
192
201
|
});
|
|
193
202
|
|
|
194
203
|
$(window).on('action:topic.loaded', activateEditedTooltips);
|
|
@@ -212,8 +221,8 @@ $(document).ready(function () {
|
|
|
212
221
|
var margin = window.innerWidth;
|
|
213
222
|
|
|
214
223
|
if (swapped) {
|
|
215
|
-
$('#mobile-menu').removeClass('
|
|
216
|
-
$('#mobile-chats').addClass('
|
|
224
|
+
$('#mobile-menu').removeClass('pull-left');
|
|
225
|
+
$('#mobile-chats').addClass('pull-left');
|
|
217
226
|
}
|
|
218
227
|
|
|
219
228
|
if (document.documentElement.getAttribute('data-dir') === 'rtl') {
|
|
@@ -343,8 +352,8 @@ $(document).ready(function () {
|
|
|
343
352
|
});
|
|
344
353
|
}
|
|
345
354
|
|
|
346
|
-
const searchInputEl = $('.navbar .navbar-search input[name="term"]');
|
|
347
|
-
const searchButton = $('.navbar .navbar-search button[type="button"]');
|
|
355
|
+
const searchInputEl = $('.navbar-header .navbar-search input[name="term"]');
|
|
356
|
+
const searchButton = $('.navbar-header .navbar-search button[type="button"]');
|
|
348
357
|
searchButton.off('click').on('click', function () {
|
|
349
358
|
if (!config.loggedIn && !app.user.privileges['search:content']) {
|
|
350
359
|
alerts.alert({
|
|
@@ -366,7 +375,7 @@ $(document).ready(function () {
|
|
|
366
375
|
search.enableQuickSearch({
|
|
367
376
|
searchElements: {
|
|
368
377
|
inputEl: searchInputEl,
|
|
369
|
-
resultEl: $('.navbar .navbar-search .quick-search-container'),
|
|
378
|
+
resultEl: $('.navbar-header .navbar-search .quick-search-container'),
|
|
370
379
|
},
|
|
371
380
|
searchOptions: {
|
|
372
381
|
in: config.searchDefaultInQuick,
|
|
@@ -491,6 +500,8 @@ $(document).ready(function () {
|
|
|
491
500
|
}
|
|
492
501
|
});
|
|
493
502
|
}
|
|
503
|
+
|
|
504
|
+
$('.topic-main-buttons [title]').tooltip();
|
|
494
505
|
}
|
|
495
506
|
});
|
|
496
507
|
}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
<div class="account">
|
|
2
2
|
<!-- IMPORT partials/account/header.tpl -->
|
|
3
|
-
<h1>[[pages:account/blocks, {username}]]</h1>
|
|
4
|
-
<div class="row justify-content-end mb-2">
|
|
5
|
-
<div class="col-3">
|
|
6
|
-
<div class="dropdown">
|
|
7
|
-
<input class="form-control" type="text" id="user-search" placeholder="[[users:enter_username]]" data-bs-toggle="dropdown" autocomplete="off"/>
|
|
8
|
-
|
|
9
|
-
<ul class="dropdown-menu block-edit list-unstyled">
|
|
10
|
-
<li><a href="#" class="dropdown-item">[[admin/menu:search.start-typing]]</a></li>
|
|
11
|
-
{{{ each edit }}}
|
|
12
|
-
<li class="">
|
|
13
|
-
<div class="dropdown-item d-flex flex-nowrap gap-2 justify-content-between">
|
|
14
|
-
<div class="text-truncate">
|
|
15
|
-
<a href="{config.relative_path}/uid/{../uid}">{buildAvatar(edit, "24px", true)} {../username}</a>
|
|
16
|
-
</div>
|
|
17
|
-
<button class="btn btn-sm btn-primary text-nowrap" data-uid="{../uid}" data-action="toggle">[[user:block_toggle]]</button>
|
|
18
|
-
</div>
|
|
19
|
-
</li>
|
|
20
|
-
{{{ end }}}
|
|
21
|
-
</ul>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
3
|
|
|
26
4
|
<div class="users row">
|
|
27
|
-
<
|
|
28
|
-
|
|
5
|
+
<h1>[[pages:account/blocks, {username}]]</h1>
|
|
6
|
+
|
|
7
|
+
<div class="col-sm-8 col-xs-12">
|
|
8
|
+
<ul id="users-container" class="users-container" data-nextstart="{nextStart}">
|
|
9
|
+
<!-- IMPORT partials/users_list.tpl -->
|
|
10
|
+
</ul>
|
|
29
11
|
<div class="alert alert-warning text-center"<!-- IF users.length --> style="display: none;"<!-- END -->>[[user:has_no_blocks]]</div>
|
|
30
12
|
<!-- IMPORT partials/paginator.tpl -->
|
|
31
13
|
</div>
|
|
14
|
+
<div class="col-sm-4 col-xs-12">
|
|
15
|
+
<div class="panel panel-default">
|
|
16
|
+
<div class="panel-body form">
|
|
17
|
+
<div class="form-group">
|
|
18
|
+
<label for="user-search">[[users:search]]</label>
|
|
19
|
+
<input class="form-control" type="text" id="user-search" placeholder="[[users:enter_username]]" />
|
|
20
|
+
<ul class="block-edit list-group">
|
|
21
|
+
{{{ each edit }}}
|
|
22
|
+
<li class="list-group-item clearfix">
|
|
23
|
+
<button class="btn btn-sm btn-primary pull-right" data-uid="{../uid}" data-action="toggle">[[user:block_toggle]]</button>
|
|
24
|
+
<div class="pull-left">
|
|
25
|
+
<a href="{config.relative_path}/uid/{../uid}">{buildAvatar(edit, "sm", true)} {../username}</a>
|
|
26
|
+
</div>
|
|
27
|
+
</li>
|
|
28
|
+
{{{ end }}}
|
|
29
|
+
</ul>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
32
34
|
</div>
|
|
33
35
|
</div>
|