hexo-theme-linen 1.0.24 → 1.0.26
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/layout/series.ejs +3 -3
- package/package.json +1 -1
- package/source/linen-theme/css/_mediaquery.scss +10 -11
- package/source/linen-theme/css/leaflet.css +661 -661
- package/source/linen-theme/css/linen.scss +43 -16
- package/source/linen-theme/css/noscript.css +0 -3
- package/source/linen-theme/css/vars.scss +0 -3
package/layout/series.ejs
CHANGED
|
@@ -95,7 +95,7 @@ const travelPlacesJson = encodeURIComponent(JSON.stringify(travelPlaces));
|
|
|
95
95
|
|
|
96
96
|
<% if (isTravelSeries && travelPlaces.length) { %>
|
|
97
97
|
<noscript>
|
|
98
|
-
<link rel="stylesheet" href="<%-url_for('/css/leaflet.css')%>" />
|
|
98
|
+
<link rel="stylesheet" href="<%-url_for('/linen-theme/css/leaflet.css')%>" />
|
|
99
99
|
</noscript>
|
|
100
100
|
<section class="travel-map-section" aria-label="<%=page.series === 'Travel' ? 'Travel map' : '旅行地图'%>">
|
|
101
101
|
<div class="travel-map-panel">
|
|
@@ -289,7 +289,7 @@ const travelPlacesJson = encodeURIComponent(JSON.stringify(travelPlaces));
|
|
|
289
289
|
if (!document.querySelector('link[href*="leaflet.css"]')) {
|
|
290
290
|
const link = document.createElement('link');
|
|
291
291
|
link.rel = 'stylesheet';
|
|
292
|
-
link.href = '<%-url_for("/css/leaflet.css")%>';
|
|
292
|
+
link.href = '<%-url_for("/linen-theme/css/leaflet.css")%>';
|
|
293
293
|
document.head.appendChild(link);
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -298,7 +298,7 @@ const travelPlacesJson = encodeURIComponent(JSON.stringify(travelPlaces));
|
|
|
298
298
|
initMap();
|
|
299
299
|
} else {
|
|
300
300
|
const script = document.createElement('script');
|
|
301
|
-
script.src = '<%-url_for("/js/leaflet.js")%>';
|
|
301
|
+
script.src = '<%-url_for("/linen-theme/js/leaflet.js")%>';
|
|
302
302
|
script.async = true;
|
|
303
303
|
script.onload = initMap;
|
|
304
304
|
script.onerror = () => {
|
package/package.json
CHANGED
|
@@ -17,12 +17,6 @@
|
|
|
17
17
|
.nav-header.is-post.hide {
|
|
18
18
|
transform: translateY(-100%);
|
|
19
19
|
}
|
|
20
|
-
.nav-header .header-inner .right .buttonSet .button.rss {
|
|
21
|
-
margin-right: 16px;
|
|
22
|
-
&:last-child {
|
|
23
|
-
margin-right: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
20
|
.nav-header .header-inner .right .buttonSet .button.toc {
|
|
27
21
|
display: block;
|
|
28
22
|
}
|
|
@@ -49,9 +43,14 @@
|
|
|
49
43
|
-ms-overflow-style: unset;
|
|
50
44
|
scrollbar-width: unset;
|
|
51
45
|
@include safe-padding(15px);
|
|
52
|
-
.toc-item-wrap
|
|
53
|
-
opacity: unset;
|
|
46
|
+
.toc-item-wrap {
|
|
54
47
|
transition: unset;
|
|
48
|
+
will-change: auto;
|
|
49
|
+
transform: none;
|
|
50
|
+
&:not(.active) {
|
|
51
|
+
opacity: unset;
|
|
52
|
+
transition: unset;
|
|
53
|
+
}
|
|
55
54
|
}
|
|
56
55
|
&:hover {
|
|
57
56
|
.toc-item-wrap:not(.active) {
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
}
|
|
90
89
|
body.resizing {
|
|
91
90
|
#toc,
|
|
92
|
-
post-series {
|
|
91
|
+
.post-series {
|
|
93
92
|
display: none;
|
|
94
93
|
}
|
|
95
94
|
.nav-header {
|
|
@@ -568,8 +567,8 @@
|
|
|
568
567
|
.nav-header .header-inner .right .navItems .navItem:not(:last-child) {
|
|
569
568
|
margin-right: 10px;
|
|
570
569
|
}
|
|
571
|
-
.nav-header .header-inner .right .buttonSet
|
|
572
|
-
|
|
570
|
+
.nav-header .header-inner .right .buttonSet {
|
|
571
|
+
gap: 10px;
|
|
573
572
|
}
|
|
574
573
|
.nav-header .header-inner .right .buttonSet .button.hdr-switch {
|
|
575
574
|
display: none;
|