nodebb-theme-persona 11.3.0 → 11.3.4
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/mixins.less
CHANGED
|
@@ -100,6 +100,10 @@
|
|
|
100
100
|
&+.timeline-event:before {
|
|
101
101
|
display: none;
|
|
102
102
|
}
|
|
103
|
+
|
|
104
|
+
.timeline-text.timeago {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
|
|
@@ -145,6 +149,8 @@
|
|
|
145
149
|
display: flex;
|
|
146
150
|
align-items: center;
|
|
147
151
|
justify-content: center;
|
|
152
|
+
flex-shrink: 0;
|
|
153
|
+
|
|
148
154
|
width: 32px;
|
|
149
155
|
height: 32px;
|
|
150
156
|
padding: 0;
|
package/less/style.less
CHANGED
package/less/topic.less
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
.topic-header {
|
|
43
43
|
position: sticky;
|
|
44
|
-
top: @navbar-height;
|
|
44
|
+
top: calc(var(--panel-offset) + @navbar-height);
|
|
45
45
|
background-color: @body-bg;
|
|
46
46
|
z-index: @zindex-navbar;
|
|
47
47
|
margin-left: -15px;
|
|
@@ -50,6 +50,12 @@
|
|
|
50
50
|
padding-right: 15px;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
@media (max-width: @screen-md-max) {
|
|
54
|
+
.topic-header {
|
|
55
|
+
top: calc(var(--panel-offset) + @navbar-height - 70px);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
.topic-info {
|
|
54
60
|
border-bottom: 1px solid @post-border-color;
|
|
55
61
|
margin-bottom: 10px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-persona",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.4",
|
|
4
4
|
"nbbpm": {
|
|
5
5
|
"compatibility": "^1.18.0"
|
|
6
6
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"main": "library.js",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/
|
|
11
|
+
"url": "https://github.com/NodeBB/nodebb-theme-persona"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"lint": "eslint ."
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
"contributors": [
|
|
24
24
|
{
|
|
25
25
|
"name": "Andrew Rodrigues",
|
|
26
|
-
"email": "andrew@
|
|
26
|
+
"email": "andrew@nodebb.org",
|
|
27
27
|
"url": "https://github.com/psychobunny"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "Julian Lam",
|
|
31
|
-
"email": "julian@
|
|
31
|
+
"email": "julian@nodebb.org",
|
|
32
32
|
"url": "https://github.com/julianlam"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "Barış Soner Uşaklı",
|
|
36
|
-
"email": "baris@
|
|
36
|
+
"email": "baris@nodebb.org",
|
|
37
37
|
"url": "https://github.com/barisusakli"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"license": "BSD-2-Clause",
|
|
41
41
|
"bugs": {
|
|
42
|
-
"url": "https://github.com/
|
|
42
|
+
"url": "https://github.com/NodeBB/nodebb-theme-persona/issues"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"pulling": "^2.0.0",
|
package/public/persona.js
CHANGED
|
@@ -7,10 +7,10 @@ $(document).ready(function () {
|
|
|
7
7
|
setupEditedByIcon();
|
|
8
8
|
setupQuickReply();
|
|
9
9
|
configureNavbarHiding();
|
|
10
|
-
|
|
10
|
+
updatePanelOffset();
|
|
11
11
|
|
|
12
12
|
$(window).on('resize', utils.debounce(configureNavbarHiding, 200));
|
|
13
|
-
$(window).on('resize',
|
|
13
|
+
$(window).on('resize', updatePanelOffset);
|
|
14
14
|
|
|
15
15
|
$(window).on('action:app.loggedIn', function () {
|
|
16
16
|
setupMobileMenu();
|
|
@@ -21,21 +21,24 @@ $(document).ready(function () {
|
|
|
21
21
|
setupMobileMenu();
|
|
22
22
|
});
|
|
23
23
|
|
|
24
|
-
function
|
|
24
|
+
function updatePanelOffset() {
|
|
25
25
|
var env = utils.findBootstrapEnvironment();
|
|
26
26
|
const headerEl = document.getElementById('header-menu');
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
if (!headerEl) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
const headerRect = headerEl.getBoundingClientRect();
|
|
29
33
|
const headerStyle = window.getComputedStyle(headerEl);
|
|
30
|
-
let paddingTop = headerRect.y + headerRect.height + (parseInt(headerStyle.marginTop, 10) || 0) + (parseInt(headerStyle.marginBottom, 10) || 0);
|
|
31
34
|
|
|
35
|
+
let offset = headerRect.y + headerRect.height + (parseInt(headerStyle.marginTop, 10) || 0) + (parseInt(headerStyle.marginBottom, 10) || 0);
|
|
32
36
|
// body element itself introduces a hardcoded 70px padding on desktop resolution
|
|
33
37
|
if (env === 'lg') {
|
|
34
|
-
|
|
38
|
+
offset -= 70;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
document.documentElement.style.setProperty('--panel-offset', `${offset}px`);
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
var lastBSEnv = '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{{each tags}}}
|
|
2
2
|
<h3 class="pull-left tag-container">
|
|
3
|
-
<a href="{config.relative_path}/tags/{tags.valueEscaped}" data-value="{tags.valueEscaped}"><span class="tag-item" data-tag="{tags.valueEscaped}" style="
|
|
3
|
+
<a href="{config.relative_path}/tags/{tags.valueEscaped}" data-value="{tags.valueEscaped}"><span class="tag-item tag-class-{tags.class}" data-tag="{tags.valueEscaped}" style="{{{ if tags.color }}}color: {tags.color};{{{ end }}}{{{ if tags.bgColor }}}background-color: {tags.bgColor};{{{ end }}}">{tags.valueEscaped}</span><span class="tag-topic-count human-readable-number" title="{tags.score}">{tags.score}</span></a>
|
|
4
4
|
</h3>
|
|
5
5
|
{{{end}}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{{{each tags}}}
|
|
2
|
-
<a href="{config.relative_path}/tags/{tags.
|
|
3
|
-
<span class="tag tag-item tag-{tags.
|
|
2
|
+
<a href="{config.relative_path}/tags/{tags.valueEscaped}">
|
|
3
|
+
<span class="tag tag-item tag-class-{tags.class}" data-tag="{tags.value}" style="{{{ if tags.color }}}color: {tags.color};{{{ end }}}{{{ if tags.bgColor }}}background-color: {tags.bgColor};{{{ end }}}">{tags.valueEscaped}</span>
|
|
4
4
|
</a>
|
|
5
5
|
{{{end}}}
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
</small>
|
|
52
52
|
<!-- ENDIF !template.category -->
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
{{{ if topics.tags.length }}}
|
|
55
55
|
<span class="tag-list hidden-xs">
|
|
56
56
|
{{{each topics.tags}}}
|
|
57
|
-
<a href="{config.relative_path}/tags/{topics.tags.valueEscaped}"><span class="tag tag-{topics.tags.
|
|
57
|
+
<a href="{config.relative_path}/tags/{topics.tags.valueEscaped}"><span class="tag tag-item tag-class-{topics.tags.class}" style="{{{ if topics.tags.color }}}color: {topics.tags.color};{{{ end }}}{{{ if topics.tags.bgColor }}}background-color: {topics.tags.bgColor};{{{ end }}}">{topics.tags.valueEscaped}</span></a>
|
|
58
58
|
{{{end}}}
|
|
59
59
|
<small>•</small>
|
|
60
60
|
</span>
|
|
61
|
-
|
|
61
|
+
{{{ end }}}
|
|
62
62
|
|
|
63
63
|
<small class="hidden-xs"><span class="timeago" title="{topics.timestampISO}"></span> • <a href="<!-- IF topics.user.userslug -->{config.relative_path}/user/{topics.user.userslug}<!-- ELSE -->#<!-- ENDIF topics.user.userslug -->">{topics.user.displayname}</a></small>
|
|
64
64
|
<small class="visible-xs-inline">
|