nodebb-theme-harmony 1.1.73 → 1.1.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "1.1.73",
3
+ "version": "1.1.75",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.5.0"
6
6
  },
package/scss/sidebar.scss CHANGED
@@ -164,7 +164,7 @@
164
164
  }
165
165
  left: 0!important;
166
166
  right: 0!important;
167
- bottom: $spacer!important;
167
+ bottom: $spacer*0.5!important;
168
168
  box-shadow: none!important;
169
169
  max-height: 60vh!important;
170
170
  overflow: auto!important;
@@ -176,7 +176,6 @@
176
176
  .search-dropdown, .chats-dropdown, .notifications-dropdown, .drafts-dropdown {
177
177
  left: 0 !important;
178
178
  right: 0 !important;
179
- bottom: $spacer * 0.7 !important;
180
179
  box-shadow: none!important;
181
180
 
182
181
  border-left: 0;
@@ -3,76 +3,97 @@
3
3
  <!-- IMPORT partials/topic/navigator-mobile.tpl -->
4
4
 
5
5
  <div class="bottombar-nav p-2 text-dark bg-light d-flex justify-content-between align-items-center w-100">
6
- <div class="">
7
- <a href="#" role="button" class="nav-link nav-btn d-flex justify-content-between align-items-center position-relative" data-bs-toggle="dropdown">
8
- <span class="position-relative">
9
- <i class="fa fa-fw fa-lg fa-bars"></i>
10
- <span component="unread/count" data-unread-url="{unreadCount.unreadUrl}" class="position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !unreadCount.mobileUnread }}}hidden{{{ end }}}">{unreadCount.mobileUnread}</span>
11
- </span>
12
- </a>
13
- <ul class="navigation-dropdown dropdown-menu">
14
- {{{ each navigation }}}
15
- {{{ if displayMenuItem(@root, @index) }}}
16
- <li class="nav-item {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
17
- <a class="nav-link nav-btn navigation-link px-3 py-2 {{{ if ./dropdown }}}dropdown-toggle{{{ end }}}"
18
- {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
19
- <span class="d-inline-flex justify-content-between align-items-center w-100">
20
- <span class="text-nowrap">
21
- {{{ if ./iconClass }}}
22
- <i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
23
- {{{ end }}}
24
- {{{ if ./text }}}
25
- <span class="nav-text px-2 fw-semibold">{./text}</span>
26
- {{{ end }}}
6
+ <div class="bottombar-nav-left d-flex gap-3 align-items-center">
7
+ <div>
8
+ <a href="#" role="button" class="nav-link nav-btn d-flex justify-content-between align-items-center position-relative" data-bs-toggle="dropdown">
9
+ <span class="position-relative">
10
+ <i class="fa fa-fw fa-lg fa-bars"></i>
11
+ <span component="unread/count" data-unread-url="{unreadCount.unreadUrl}" class="position-absolute top-0 start-100 translate-middle badge rounded-1 bg-primary {{{ if !unreadCount.mobileUnread }}}hidden{{{ end }}}">{unreadCount.mobileUnread}</span>
12
+ </span>
13
+ </a>
14
+ <ul class="navigation-dropdown dropdown-menu">
15
+ {{{ each navigation }}}
16
+ {{{ if displayMenuItem(@root, @index) }}}
17
+ <li class="nav-item {./class}{{{ if ./dropdown }}} dropend{{{ end }}}" title="{./title}">
18
+ <a class="nav-link nav-btn navigation-link px-3 py-2 {{{ if ./dropdown }}}dropdown-toggle{{{ end }}}"
19
+ {{{ if ./dropdown }}} href="#" role="button" data-bs-toggle="collapse" data-bs-target="#collapse-target-{@index}" onclick="event.stopPropagation();" {{{ else }}} href="{./route}"{{{ end }}} {{{ if ./id }}}id="{./id}"{{{ end }}}{{{ if ./targetBlank }}} target="_blank"{{{ end }}}>
20
+ <span class="d-inline-flex justify-content-between align-items-center w-100">
21
+ <span class="text-nowrap">
22
+ {{{ if ./iconClass }}}
23
+ <i class="fa fa-fw {./iconClass}" data-content="{./content}"></i>
24
+ {{{ end }}}
25
+ {{{ if ./text }}}
26
+ <span class="nav-text px-2 fw-semibold">{./text}</span>
27
+ {{{ end }}}
28
+ </span>
29
+ <span component="navigation/count" class="badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
27
30
  </span>
28
- <span component="navigation/count" class="badge rounded-1 bg-primary {{{ if !./content }}}hidden{{{ end }}}">{./content}</span>
29
- </span>
30
- </a>
31
- {{{ if ./dropdown }}}
32
- <div class="ps-3">
33
- <ul id="collapse-target-{@index}" class="collapse list-unstyled ps-3">
34
- {./dropdownContent}
35
- </ul>
36
- </div>
31
+ </a>
32
+ {{{ if ./dropdown }}}
33
+ <div class="ps-3">
34
+ <ul id="collapse-target-{@index}" class="collapse list-unstyled ps-3">
35
+ {./dropdownContent}
36
+ </ul>
37
+ </div>
38
+ {{{ end }}}
39
+ </li>
37
40
  {{{ end }}}
38
- </li>
39
- {{{ end }}}
40
- {{{ end }}}
41
- </ul>
41
+ {{{ end }}}
42
+ </ul>
43
+ </div>
42
44
  </div>
45
+ <div class="bottombar-nav-right d-flex gap-3 align-items-center">
46
+ <div>
47
+ {{{ if config.loggedIn }}}
48
+ <ul id="logged-in-menu" class="list-unstyled d-flex align-items-center w-100 gap-3 mb-0">
49
+ {{{ if config.searchEnabled }}}
50
+ <li component="sidebar/search" class="nav-item m-0 search">
51
+ <!-- IMPORT partials/sidebar/search-mobile.tpl -->
52
+ </li>
53
+ {{{ end }}}
43
54
 
44
- <div class="">
45
- {{{ if config.loggedIn }}}
46
- <ul id="logged-in-menu" class="list-unstyled d-flex align-items-center w-100 gap-3 mb-0">
47
- {{{ if config.searchEnabled }}}
48
- <li component="sidebar/search" class="nav-item m-0 search">
49
- <!-- IMPORT partials/sidebar/search-mobile.tpl -->
50
- </li>
51
- {{{ end }}}
55
+ <li component="notifications" class="nav-item m-0 notifications">
56
+ <!-- IMPORT partials/sidebar/notifications.tpl -->
57
+ </li>
52
58
 
53
- <li component="notifications" class="nav-item m-0 notifications">
54
- <!-- IMPORT partials/sidebar/notifications.tpl -->
55
- </li>
59
+ {{{ if canChat }}}
60
+ <li class="nav-item m-0 chats">
61
+ <!-- IMPORT partials/sidebar/chats.tpl -->
62
+ </li>
63
+ {{{ end }}}
56
64
 
57
- {{{ if canChat }}}
58
- <li class="nav-item m-0 chats">
59
- <!-- IMPORT partials/sidebar/chats.tpl -->
60
- </li>
61
- {{{ end }}}
65
+ <li component="sidebar/drafts" class="hidden nav-item m-0 drafts">
66
+ <!-- IMPORT partials/sidebar/drafts.tpl -->
67
+ </li>
62
68
 
63
- <li component="sidebar/drafts" class="hidden nav-item m-0 drafts">
64
- <!-- IMPORT partials/sidebar/drafts.tpl -->
65
- </li>
69
+ <li id="user_label" class="nav-item m-0 usermenu">
70
+ <!-- IMPORT partials/sidebar/user-menu.tpl -->
71
+ </li>
72
+ </ul>
73
+ {{{ else }}}
74
+ <ul id="logged-out-menu" class="list-unstyled d-flex w-100 gap-3 mb-0 logged-out-menu">
75
+ {{{ if (config.searchEnabled && user.privileges.search:content) }}}
76
+ <li component="sidebar/search" class="nav-item mx-2 search">
77
+ <!-- IMPORT partials/sidebar/search-mobile.tpl -->
78
+ </li>
79
+ {{{ end }}}
66
80
 
67
- <li id="user_label" class="nav-item m-0 py-2 usermenu">
68
- <!-- IMPORT partials/sidebar/user-menu.tpl -->
69
- </li>
70
- </ul>
71
- {{{ else }}}
72
- <ul id="logged-out-menu" class="list-unstyled d-flex w-100 gap-3 mb-0 logged-out-menu">
73
- <!-- IMPORT partials/sidebar/logged-out-menu.tpl -->
74
- </ul>
75
- {{{ end }}}
81
+ {{{ if allowRegistration }}}
82
+ <li class="nav-item mx-2" title="[[global:register]]">
83
+ <a class="nav-link nav-btn" href="{relative_path}/register">
84
+ <i class="fa fa-fw fa-user-plus"></i>
85
+ </a>
86
+ </li>
87
+ {{{ end }}}
88
+
89
+ <li class="nav-item mx-2" title="[[global:login]]">
90
+ <a class="nav-link nav-btn" href="{relative_path}/login">
91
+ <i class="fa fa-fw fa-sign-in"></i>
92
+ </a>
93
+ </li>
94
+ </ul>
95
+ {{{ end }}}
96
+ </div>
76
97
  </div>
77
98
  </div>
78
99
  </div>