nodebb-theme-persona 12.0.4 → 12.0.7

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/less/header.less CHANGED
@@ -1,6 +1,8 @@
1
1
  .header, .slideout-menu {
2
- .notifications .dropdown-menu {
3
- padding: 0;
2
+ .notifications.dropdown, .chats.dropdown {
3
+ .dropdown-menu {
4
+ padding: 0;
5
+ }
4
6
  }
5
7
 
6
8
  .notification-list {
@@ -205,10 +207,15 @@
205
207
  border-top: 1px solid rgba(163, 163, 163, 0.5);
206
208
 
207
209
  a {
208
- display: block;
209
210
  text-align: center;
210
211
  padding: 0.5em 0.5em;
211
212
  font-weight: 600;
213
+ color: @dropdown-link-color;
214
+
215
+ &:hover {
216
+ color: @dropdown-link-hover-color;
217
+ background: @dropdown-link-hover-bg;
218
+ }
212
219
  }
213
220
  }
214
221
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "12.0.4",
3
+ "version": "12.0.7",
4
4
  "nbbpm": {
5
5
  "compatibility": "^2.0.0"
6
6
  },
package/public/persona.js CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  $(document).ready(function () {
4
4
  setupNProgress();
5
+ setupTaskbar();
5
6
  setupEditedByIcon();
7
+ setupMobileMenu();
6
8
  setupQuickReply();
7
9
  configureNavbarHiding();
8
10
  updatePanelOffset();
@@ -10,13 +12,6 @@ $(document).ready(function () {
10
12
  $(window).on('resize', utils.debounce(configureNavbarHiding, 200));
11
13
  $(window).on('resize', updatePanelOffset);
12
14
 
13
- require(['hooks'], (hooks) => {
14
- hooks.on('action:app.load', () => {
15
- setupTaskbar();
16
- setupMobileMenu();
17
- });
18
- });
19
-
20
15
  function updatePanelOffset() {
21
16
  const headerEl = document.getElementById('header-menu');
22
17
 
@@ -57,8 +57,12 @@
57
57
  </li>
58
58
  </ul>
59
59
  </li>
60
- <li class="notif-dropdown-link"><a href="#" class="mark-all-read">[[notifications:mark_all_read]]</a></li>
61
- <li class="notif-dropdown-link"><a href="{relative_path}/notifications">[[notifications:see_all]]</a></li>
60
+ <li class="notif-dropdown-link">
61
+ <div class="btn-group btn-group-justified">
62
+ <a role="button" href="#" class="btn btn-secondary mark-all-read"><i class="fa fa-check-double"></i> [[notifications:mark_all_read]]</a>
63
+ <a class="btn btn-secondary" href="{relative_path}/notifications"><i class="fa fa-list"></i> [[notifications:see_all]]</a>
64
+ </div>
65
+ </li>
62
66
  </ul>
63
67
  </li>
64
68
 
@@ -75,8 +79,12 @@
75
79
  </li>
76
80
  </ul>
77
81
  </li>
78
- <li class="notif-dropdown-link"><a href="#" class="mark-all-read" component="chats/mark-all-read">[[modules:chat.mark_all_read]]</a></li>
79
- <li class="notif-dropdown-link"><a href="{relative_path}/user/{user.userslug}/chats">[[modules:chat.see_all]]</a></li>
82
+ <li class="notif-dropdown-link">
83
+ <div class="btn-group btn-group-justified">
84
+ <a class="btn btn-secondary mark-all-read" href="#" component="chats/mark-all-read"><i class="fa fa-check-double"></i> [[modules:chat.mark_all_read]]</a>
85
+ <a class="btn btn-secondary" href="{relative_path}/user/{user.userslug}/chats"><i class="fa fa-comments"></i> [[modules:chat.see_all]]</a>
86
+ </div>
87
+ </li>
80
88
  </ul>
81
89
  </li>
82
90
  <!-- ENDIF canChat -->