nodebb-theme-persona 12.1.4 → 13.0.0

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 (247) hide show
  1. package/README.md +14 -14
  2. package/package.json +2 -2
  3. package/public/persona.js +11 -23
  4. package/{less/account.less → scss/account.scss} +13 -97
  5. package/{less/categories.less → scss/categories.scss} +10 -40
  6. package/{less/category.less → scss/category.scss} +26 -75
  7. package/{less/chats.less → scss/chats.scss} +35 -88
  8. package/{less/flags.less → scss/flags.scss} +3 -3
  9. package/{less/footer.less → scss/footer.scss} +0 -1
  10. package/{less/groups.less → scss/groups.scss} +14 -38
  11. package/{less/header.less → scss/header.scss} +63 -139
  12. package/{less/helpers.less → scss/helpers.scss} +0 -0
  13. package/{less/keyframes.less → scss/keyframes.scss} +0 -0
  14. package/{less/mixins.less → scss/mixins.scss} +17 -59
  15. package/{less/mobile.less → scss/mobile.scss} +13 -18
  16. package/{less/modules/alerts.less → scss/modules/alerts.scss} +21 -21
  17. package/{less/modules/composer-default.less → scss/modules/composer-default.scss} +2 -2
  18. package/{less/modules/cookie-consent.less → scss/modules/cookie-consent.scss} +1 -1
  19. package/{less/modules/fab.less → scss/modules/fab.scss} +2 -2
  20. package/{less/modules/morph.less → scss/modules/morph.scss} +1 -1
  21. package/{less/modules/necro-post.less → scss/modules/necro-post.scss} +0 -0
  22. package/scss/modules/nprogress.scss +80 -0
  23. package/{less/modules/taskbar.less → scss/modules/taskbar.scss} +11 -10
  24. package/{less/modules/usercard.less → scss/modules/usercard.scss} +0 -0
  25. package/{less/noscript.less → scss/noscript.scss} +5 -7
  26. package/{less/outgoing.less → scss/outgoing.scss} +0 -0
  27. package/scss/overrides.scss +44 -0
  28. package/{less/persona.less → scss/persona.scss} +1 -13
  29. package/{less/posts_list.less → scss/posts_list.scss} +11 -14
  30. package/{less/register.less → scss/register.scss} +2 -7
  31. package/scss/search.scss +39 -0
  32. package/{less/style.less → scss/style.scss} +23 -47
  33. package/scss/tags.scss +11 -0
  34. package/{less/topic.less → scss/topic.scss} +53 -90
  35. package/scss/topics_list.scss +17 -0
  36. package/{less/variables.less → scss/variables.scss} +3 -3
  37. package/templates/account/blocks.tpl +24 -26
  38. package/templates/account/categories.tpl +6 -6
  39. package/templates/account/consent.tpl +10 -10
  40. package/templates/account/edit/password.tpl +8 -10
  41. package/templates/account/edit/username.tpl +6 -10
  42. package/templates/account/edit.tpl +23 -23
  43. package/templates/account/followers.tpl +3 -3
  44. package/templates/account/following.tpl +3 -3
  45. package/templates/account/groups.tpl +2 -2
  46. package/templates/account/info.tpl +67 -72
  47. package/templates/account/posts.tpl +1 -1
  48. package/templates/account/profile.tpl +20 -18
  49. package/templates/account/sessions.tpl +3 -3
  50. package/templates/account/settings.tpl +93 -81
  51. package/templates/account/topics.tpl +5 -5
  52. package/templates/account/uploads.tpl +2 -2
  53. package/templates/admin/plugins/persona.tpl +3 -3
  54. package/templates/category.tpl +15 -14
  55. package/templates/chat.tpl +16 -9
  56. package/templates/chats.tpl +5 -3
  57. package/templates/flags/detail.tpl +86 -80
  58. package/templates/flags/list.tpl +4 -4
  59. package/templates/footer.tpl +1 -1
  60. package/templates/groups/details.tpl +23 -218
  61. package/templates/groups/list.tpl +11 -9
  62. package/templates/groups/members.tpl +1 -4
  63. package/templates/header.tpl +10 -4
  64. package/templates/ip-blacklist.tpl +22 -20
  65. package/templates/login.tpl +17 -14
  66. package/templates/modules/taskbar.tpl +1 -1
  67. package/templates/modules/usercard.tpl +2 -2
  68. package/templates/notifications.tpl +40 -38
  69. package/templates/partials/acceptTos.tpl +8 -8
  70. package/templates/partials/account/category-item.tpl +6 -5
  71. package/templates/partials/account/header.tpl +2 -2
  72. package/templates/partials/account/menu.tpl +37 -37
  73. package/templates/partials/breadcrumbs.tpl +1 -1
  74. package/templates/partials/buttons/newTopic.tpl +10 -3
  75. package/templates/partials/categories/item.tpl +24 -10
  76. package/templates/partials/categories/lastpost.tpl +3 -3
  77. package/templates/partials/categories/link.tpl +10 -10
  78. package/templates/partials/category/sort.tpl +7 -7
  79. package/templates/partials/category/subcategory.tpl +3 -3
  80. package/templates/partials/category/tags.tpl +3 -5
  81. package/templates/partials/category/tools.tpl +16 -16
  82. package/templates/partials/category/watch.tpl +8 -10
  83. package/templates/partials/category-filter-content.tpl +17 -5
  84. package/templates/partials/category-filter-right.tpl +1 -1
  85. package/templates/partials/category-selector-content.tpl +17 -4
  86. package/templates/partials/category-selector-right.tpl +1 -1
  87. package/templates/partials/chats/message-window.tpl +10 -8
  88. package/templates/partials/chats/message.tpl +11 -11
  89. package/templates/partials/chats/options.tpl +8 -8
  90. package/templates/partials/chats/recent_room.tpl +1 -1
  91. package/templates/partials/chats/system-message.tpl +1 -1
  92. package/templates/partials/chats/user.tpl +1 -1
  93. package/templates/partials/chats-menu.tpl +11 -11
  94. package/templates/partials/cookie-consent.tpl +1 -1
  95. package/templates/partials/flags/filters.tpl +34 -32
  96. package/templates/partials/groups/admin.tpl +195 -0
  97. package/templates/partials/groups/badge.tpl +1 -0
  98. package/templates/partials/groups/list.tpl +6 -6
  99. package/templates/partials/groups/memberlist.tpl +11 -10
  100. package/templates/partials/menu.tpl +149 -156
  101. package/templates/partials/notifications_list.tpl +2 -2
  102. package/templates/partials/paginator.tpl +21 -21
  103. package/templates/partials/post_bar.tpl +4 -4
  104. package/templates/partials/posts_list.tpl +1 -1
  105. package/templates/partials/posts_list_item.tpl +2 -2
  106. package/templates/partials/quick-search-results.tpl +14 -11
  107. package/templates/partials/slideout-menu.tpl +1 -1
  108. package/templates/partials/tags_list.tpl +3 -3
  109. package/templates/partials/thread_tools.tpl +4 -4
  110. package/templates/partials/toast.tpl +14 -0
  111. package/templates/partials/topic/deleted-message.tpl +2 -2
  112. package/templates/partials/topic/event.tpl +26 -0
  113. package/templates/partials/topic/navigation-post.tpl +3 -3
  114. package/templates/partials/topic/navigator.tpl +7 -7
  115. package/templates/partials/topic/necro-post.tpl +1 -1
  116. package/templates/partials/topic/post-menu-list.tpl +26 -23
  117. package/templates/partials/topic/post-menu.tpl +3 -3
  118. package/templates/partials/topic/post.tpl +49 -44
  119. package/templates/partials/topic/quickreply.tpl +3 -3
  120. package/templates/partials/topic/reply-button.tpl +3 -3
  121. package/templates/partials/topic/sort.tpl +5 -5
  122. package/templates/partials/topic/tag.tpl +1 -0
  123. package/templates/partials/topic/tags.tpl +3 -5
  124. package/templates/partials/topic/topic-menu-list.tpl +18 -16
  125. package/templates/partials/topic/watch.tpl +11 -10
  126. package/templates/partials/topic-filters.tpl +12 -0
  127. package/templates/partials/topic-terms.tpl +12 -0
  128. package/templates/partials/topics_list.tpl +27 -25
  129. package/templates/partials/users_list.tpl +22 -10
  130. package/templates/partials/users_list_menu.tpl +19 -9
  131. package/templates/popular.tpl +9 -35
  132. package/templates/post-queue.tpl +42 -35
  133. package/templates/recent.tpl +10 -24
  134. package/templates/register.tpl +17 -17
  135. package/templates/registerComplete.tpl +14 -10
  136. package/templates/reset.tpl +7 -5
  137. package/templates/reset_code.tpl +9 -9
  138. package/templates/search.tpl +100 -87
  139. package/templates/tag.tpl +8 -10
  140. package/templates/tags.tpl +5 -3
  141. package/templates/top.tpl +9 -35
  142. package/templates/topic.tpl +13 -11
  143. package/templates/tos.tpl +4 -4
  144. package/templates/unread.tpl +10 -22
  145. package/templates/users.tpl +7 -20
  146. package/theme.json +6 -6
  147. package/theme.scss +1 -0
  148. package/less/bootstrap/.csscomb.json +0 -297
  149. package/less/bootstrap/.csslintrc +0 -19
  150. package/less/bootstrap/alerts.less +0 -73
  151. package/less/bootstrap/badges.less +0 -66
  152. package/less/bootstrap/bootstrap.less +0 -50
  153. package/less/bootstrap/breadcrumbs.less +0 -26
  154. package/less/bootstrap/button-groups.less +0 -243
  155. package/less/bootstrap/buttons.less +0 -160
  156. package/less/bootstrap/carousel.less +0 -269
  157. package/less/bootstrap/close.less +0 -34
  158. package/less/bootstrap/code.less +0 -69
  159. package/less/bootstrap/component-animations.less +0 -33
  160. package/less/bootstrap/dropdowns.less +0 -214
  161. package/less/bootstrap/forms.less +0 -574
  162. package/less/bootstrap/glyphicons.less +0 -305
  163. package/less/bootstrap/grid.less +0 -84
  164. package/less/bootstrap/input-groups.less +0 -166
  165. package/less/bootstrap/jumbotron.less +0 -50
  166. package/less/bootstrap/labels.less +0 -64
  167. package/less/bootstrap/list-group.less +0 -124
  168. package/less/bootstrap/media.less +0 -61
  169. package/less/bootstrap/mixins/alerts.less +0 -14
  170. package/less/bootstrap/mixins/background-variant.less +0 -8
  171. package/less/bootstrap/mixins/border-radius.less +0 -18
  172. package/less/bootstrap/mixins/buttons.less +0 -52
  173. package/less/bootstrap/mixins/center-block.less +0 -7
  174. package/less/bootstrap/mixins/clearfix.less +0 -22
  175. package/less/bootstrap/mixins/forms.less +0 -85
  176. package/less/bootstrap/mixins/gradients.less +0 -59
  177. package/less/bootstrap/mixins/grid-framework.less +0 -91
  178. package/less/bootstrap/mixins/grid.less +0 -122
  179. package/less/bootstrap/mixins/hide-text.less +0 -21
  180. package/less/bootstrap/mixins/image.less +0 -33
  181. package/less/bootstrap/mixins/labels.less +0 -12
  182. package/less/bootstrap/mixins/list-group.less +0 -29
  183. package/less/bootstrap/mixins/nav-divider.less +0 -10
  184. package/less/bootstrap/mixins/nav-vertical-align.less +0 -9
  185. package/less/bootstrap/mixins/opacity.less +0 -8
  186. package/less/bootstrap/mixins/pagination.less +0 -23
  187. package/less/bootstrap/mixins/panels.less +0 -24
  188. package/less/bootstrap/mixins/progress-bar.less +0 -10
  189. package/less/bootstrap/mixins/reset-filter.less +0 -8
  190. package/less/bootstrap/mixins/resize.less +0 -6
  191. package/less/bootstrap/mixins/responsive-visibility.less +0 -15
  192. package/less/bootstrap/mixins/size.less +0 -10
  193. package/less/bootstrap/mixins/tab-focus.less +0 -9
  194. package/less/bootstrap/mixins/table-row.less +0 -28
  195. package/less/bootstrap/mixins/text-emphasis.less +0 -8
  196. package/less/bootstrap/mixins/text-overflow.less +0 -8
  197. package/less/bootstrap/mixins/vendor-prefixes.less +0 -227
  198. package/less/bootstrap/mixins.less +0 -39
  199. package/less/bootstrap/modals.less +0 -150
  200. package/less/bootstrap/navbar.less +0 -660
  201. package/less/bootstrap/navs.less +0 -242
  202. package/less/bootstrap/normalize.less +0 -427
  203. package/less/bootstrap/pager.less +0 -54
  204. package/less/bootstrap/pagination.less +0 -88
  205. package/less/bootstrap/panels.less +0 -265
  206. package/less/bootstrap/popovers.less +0 -135
  207. package/less/bootstrap/print.less +0 -107
  208. package/less/bootstrap/progress-bars.less +0 -87
  209. package/less/bootstrap/responsive-embed.less +0 -35
  210. package/less/bootstrap/responsive-utilities.less +0 -194
  211. package/less/bootstrap/scaffolding.less +0 -162
  212. package/less/bootstrap/tables.less +0 -234
  213. package/less/bootstrap/theme.less +0 -273
  214. package/less/bootstrap/thumbnails.less +0 -36
  215. package/less/bootstrap/tooltip.less +0 -102
  216. package/less/bootstrap/type.less +0 -302
  217. package/less/bootstrap/utilities.less +0 -55
  218. package/less/bootstrap/variables.less +0 -861
  219. package/less/bootstrap/wells.less +0 -29
  220. package/less/bootstrap-flipped.css +0 -1550
  221. package/less/ip-blacklist.less +0 -7
  222. package/less/modules/bottom-sheet.less +0 -60
  223. package/less/modules/nprogress.less +0 -80
  224. package/less/notifications.less +0 -38
  225. package/less/post-queue.less +0 -19
  226. package/less/rtl.less +0 -132
  227. package/less/search.less +0 -96
  228. package/less/tags.less +0 -37
  229. package/less/topics_list.less +0 -16
  230. package/less/users.less +0 -73
  231. package/templates/alert.tpl +0 -15
  232. package/templates/partials/change_owner_modal.tpl +0 -22
  233. package/templates/partials/delete_posts_modal.tpl +0 -19
  234. package/templates/partials/fork_thread_modal.tpl +0 -22
  235. package/templates/partials/merge_topics_modal.tpl +0 -58
  236. package/templates/partials/modals/change_picture_modal.tpl +0 -73
  237. package/templates/partials/modals/flag_modal.tpl +0 -45
  238. package/templates/partials/modals/manage_room.tpl +0 -11
  239. package/templates/partials/modals/manage_room_users.tpl +0 -7
  240. package/templates/partials/modals/post_history.tpl +0 -36
  241. package/templates/partials/modals/rename_room.tpl +0 -4
  242. package/templates/partials/modals/upload_file_modal.tpl +0 -44
  243. package/templates/partials/modals/upload_picture_from_url_modal.tpl +0 -17
  244. package/templates/partials/modals/votes_modal.tpl +0 -10
  245. package/templates/partials/move_thread_modal.tpl +0 -17
  246. package/templates/partials/topic/badge.tpl +0 -5
  247. package/theme.less +0 -2
@@ -1,69 +0,0 @@
1
- //
2
- // Code (inline and block)
3
- // --------------------------------------------------
4
-
5
-
6
- // Inline and block code styles
7
- code,
8
- kbd,
9
- pre,
10
- samp {
11
- font-family: @font-family-monospace;
12
- }
13
-
14
- // Inline code
15
- code {
16
- padding: 2px 4px;
17
- font-size: 90%;
18
- color: @code-color;
19
- background-color: @code-bg;
20
- border-radius: @border-radius-base;
21
- }
22
-
23
- // User input typically entered via keyboard
24
- kbd {
25
- padding: 2px 4px;
26
- font-size: 90%;
27
- color: @kbd-color;
28
- background-color: @kbd-bg;
29
- border-radius: @border-radius-small;
30
- box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
-
32
- kbd {
33
- padding: 0;
34
- font-size: 100%;
35
- font-weight: bold;
36
- box-shadow: none;
37
- }
38
- }
39
-
40
- // Blocks of code
41
- pre {
42
- display: block;
43
- padding: ((@line-height-computed - 1) / 2);
44
- margin: 0 0 (@line-height-computed / 2);
45
- font-size: (@font-size-base - 1); // 14px to 13px
46
- line-height: @line-height-base;
47
- word-break: break-all;
48
- word-wrap: break-word;
49
- color: @pre-color;
50
- background-color: @pre-bg;
51
- border: 1px solid @pre-border-color;
52
- border-radius: @border-radius-base;
53
-
54
- // Account for some code outputs that place code tags in pre tags
55
- code {
56
- padding: 0;
57
- font-size: inherit;
58
- color: inherit;
59
- white-space: pre-wrap;
60
- background-color: transparent;
61
- border-radius: 0;
62
- }
63
- }
64
-
65
- // Enable scrollable blocks of code
66
- .pre-scrollable {
67
- max-height: @pre-scrollable-max-height;
68
- overflow-y: scroll;
69
- }
@@ -1,33 +0,0 @@
1
- //
2
- // Component animations
3
- // --------------------------------------------------
4
-
5
- // Heads up!
6
- //
7
- // We don't use the `.opacity()` mixin here since it causes a bug with text
8
- // fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
9
-
10
- .fade {
11
- opacity: 0;
12
- .transition(opacity .15s linear);
13
- &.in {
14
- opacity: 1;
15
- }
16
- }
17
-
18
- .collapse {
19
- display: none;
20
-
21
- &.in { display: block; }
22
- tr&.in { display: table-row; }
23
- tbody&.in { display: table-row-group; }
24
- }
25
-
26
- .collapsing {
27
- position: relative;
28
- height: 0;
29
- overflow: hidden;
30
- .transition-property(~"height, visibility");
31
- .transition-duration(.35s);
32
- .transition-timing-function(ease);
33
- }
@@ -1,214 +0,0 @@
1
- //
2
- // Dropdown menus
3
- // --------------------------------------------------
4
-
5
-
6
- // Dropdown arrow/caret
7
- .caret {
8
- display: inline-block;
9
- width: 0;
10
- height: 0;
11
- margin-left: 2px;
12
- vertical-align: middle;
13
- border-top: @caret-width-base dashed;
14
- border-right: @caret-width-base solid transparent;
15
- border-left: @caret-width-base solid transparent;
16
- }
17
-
18
- // The dropdown wrapper (div)
19
- .dropup,
20
- .dropdown {
21
- position: relative;
22
- }
23
-
24
- // Prevent the focus on the dropdown toggle when closing dropdowns
25
- .dropdown-toggle:focus {
26
- outline: 0;
27
- }
28
-
29
- // The dropdown menu (ul)
30
- .dropdown-menu {
31
- position: absolute;
32
- top: 100%;
33
- left: 0;
34
- z-index: @zindex-dropdown;
35
- display: none; // none by default, but block on "open" of the menu
36
- float: left;
37
- min-width: 160px;
38
- padding: 5px 0;
39
- margin: 2px 0 0; // override default ul
40
- list-style: none;
41
- font-size: @font-size-base;
42
- text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
43
- background-color: @dropdown-bg;
44
- border: 1px solid @dropdown-fallback-border; // IE8 fallback
45
- border: 1px solid @dropdown-border;
46
- border-radius: @border-radius-base;
47
- .box-shadow(0 6px 12px rgba(0,0,0,.175));
48
- background-clip: padding-box;
49
-
50
- // Aligns the dropdown menu to right
51
- //
52
- // Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
53
- &.pull-right {
54
- right: 0;
55
- left: auto;
56
- }
57
-
58
- // Dividers (basically an hr) within the dropdown
59
- .divider {
60
- .nav-divider(@dropdown-divider-bg);
61
- }
62
-
63
- // Links within the dropdown menu
64
- > li > a {
65
- display: block;
66
- padding: 3px 20px;
67
- clear: both;
68
- font-weight: normal;
69
- line-height: @line-height-base;
70
- color: @dropdown-link-color;
71
- white-space: nowrap; // prevent links from randomly breaking onto new lines
72
- }
73
- }
74
-
75
- // Hover/Focus state
76
- .dropdown-menu > li > a {
77
- &:hover,
78
- &:focus {
79
- text-decoration: none;
80
- color: @dropdown-link-hover-color;
81
- background-color: @dropdown-link-hover-bg;
82
- }
83
- }
84
-
85
- // Active state
86
- .dropdown-menu > .active > a {
87
- &,
88
- &:hover,
89
- &:focus {
90
- color: @dropdown-link-active-color;
91
- text-decoration: none;
92
- outline: 0;
93
- background-color: @dropdown-link-active-bg;
94
- }
95
- }
96
-
97
- // Disabled state
98
- //
99
- // Gray out text and ensure the hover/focus state remains gray
100
-
101
- .dropdown-menu > .disabled > a {
102
- &,
103
- &:hover,
104
- &:focus {
105
- color: @dropdown-link-disabled-color;
106
- }
107
-
108
- // Nuke hover/focus effects
109
- &:hover,
110
- &:focus {
111
- text-decoration: none;
112
- background-color: transparent;
113
- background-image: none; // Remove CSS gradient
114
- .reset-filter();
115
- cursor: @cursor-disabled;
116
- }
117
- }
118
-
119
- // Open state for the dropdown
120
- .open {
121
- // Show the menu
122
- > .dropdown-menu {
123
- display: block;
124
- }
125
-
126
- // Remove the outline when :focus is triggered
127
- > a {
128
- outline: 0;
129
- }
130
- }
131
-
132
- // Menu positioning
133
- //
134
- // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
135
- // menu with the parent.
136
- .dropdown-menu-right {
137
- left: auto; // Reset the default from `.dropdown-menu`
138
- right: 0;
139
- }
140
- // With v3, we enabled auto-flipping if you have a dropdown within a right
141
- // aligned nav component. To enable the undoing of that, we provide an override
142
- // to restore the default dropdown menu alignment.
143
- //
144
- // This is only for left-aligning a dropdown menu within a `.navbar-right` or
145
- // `.pull-right` nav component.
146
- .dropdown-menu-left {
147
- left: 0;
148
- right: auto;
149
- }
150
-
151
- // Dropdown section headers
152
- .dropdown-header {
153
- display: block;
154
- padding: 3px 20px;
155
- font-size: @font-size-small;
156
- line-height: @line-height-base;
157
- color: @dropdown-header-color;
158
- white-space: nowrap; // as with > li > a
159
- }
160
-
161
- // Backdrop to catch body clicks on mobile, etc.
162
- .dropdown-backdrop {
163
- position: fixed;
164
- left: 0;
165
- right: 0;
166
- bottom: 0;
167
- top: 0;
168
- z-index: @zindex-dropdown;
169
- }
170
-
171
- // Right aligned dropdowns
172
- .pull-right > .dropdown-menu {
173
- right: 0;
174
- left: auto;
175
- }
176
-
177
- // Allow for dropdowns to go bottom up (aka, dropup-menu)
178
- //
179
- // Just add .dropup after the standard .dropdown class and you're set, bro.
180
- // TODO: abstract this so that the navbar fixed styles are not placed here?
181
-
182
- .dropup,
183
- .navbar-fixed-bottom .dropdown {
184
- // Reverse the caret
185
- .caret {
186
- border-top: 0;
187
- border-bottom: @caret-width-base solid;
188
- content: "";
189
- }
190
- // Different positioning for bottom up menu
191
- .dropdown-menu {
192
- top: auto;
193
- bottom: 100%;
194
- margin-bottom: 2px;
195
- }
196
- }
197
-
198
-
199
- // Component alignment
200
- //
201
- // Reiterate per navbar.less and the modified component alignment there.
202
-
203
- @media (min-width: @grid-float-breakpoint) {
204
- .navbar-right {
205
- .dropdown-menu {
206
- .dropdown-menu-right();
207
- }
208
- // Necessary for overrides of the default right aligned menu.
209
- // Will remove come v4 in all likelihood.
210
- .dropdown-menu-left {
211
- .dropdown-menu-left();
212
- }
213
- }
214
- }