@etspress/netflix 0.1.19 → 0.1.21
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 +2 -2
- package/plugin.json +1 -1
- package/public/home.css +5 -2
- package/public/home.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etspress/netflix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "流媒体合租主题插件",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"id": "netflix",
|
|
19
19
|
"name": "流媒体合租主题",
|
|
20
20
|
"description": "流媒体合租商店主题与页面展示配置",
|
|
21
|
-
"version": "0.1.
|
|
21
|
+
"version": "0.1.21",
|
|
22
22
|
"runtime": {
|
|
23
23
|
"type": "npm-static",
|
|
24
24
|
"publicRoot": "public"
|
package/plugin.json
CHANGED
package/public/home.css
CHANGED
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
line-height: 1.5;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
html.nfh-theme-active,
|
|
16
|
+
body.nfh-theme-active { background-color: #ef5350 !important; }
|
|
17
|
+
|
|
15
18
|
#netflix-theme-home *, #netflix-theme-home *::before, #netflix-theme-home *::after { box-sizing: border-box; }
|
|
16
19
|
#netflix-theme-home a { color: inherit; text-decoration: none; }
|
|
17
20
|
#netflix-theme-home button { font: inherit; }
|
|
@@ -194,11 +197,11 @@
|
|
|
194
197
|
#netflix-theme-home { padding-top: 0; background-color: var(--nfh-red); }
|
|
195
198
|
#netflix-theme-home .nfh-header { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 54px; background: var(--nfh-red); }
|
|
196
199
|
.nfh-header-inner { height: 54px; padding: 0 12px; }
|
|
197
|
-
#netflix-theme-home .nfh-hero { margin-top:
|
|
200
|
+
#netflix-theme-home .nfh-hero { margin-top: 0; }
|
|
198
201
|
.nfh-logo { min-width: 0; font-size: 18px; }
|
|
199
202
|
.nfh-header-nav { display: none; }
|
|
200
203
|
.nfh-header-actions { gap: 2px; }
|
|
201
|
-
#netflix-theme-home .nfh-hero { padding-top:
|
|
204
|
+
#netflix-theme-home .nfh-hero { padding-top: 54px; padding-bottom: 200px; }
|
|
202
205
|
.nfh-hero h1 { margin-top: 20px; font-size: 22px; }
|
|
203
206
|
.nfh-hero-subtitle { margin-top: 5px; font-size: 12px; }
|
|
204
207
|
.nfh-stats { width: 96vw; min-height: 132px; margin-top: 0; }
|
package/public/home.js
CHANGED
|
@@ -396,6 +396,8 @@
|
|
|
396
396
|
if (!host) { root = null; return false; }
|
|
397
397
|
hostDisplay = host.style.display;
|
|
398
398
|
host.style.display = 'none';
|
|
399
|
+
document.documentElement.classList.add('nfh-theme-active');
|
|
400
|
+
document.body.classList.add('nfh-theme-active');
|
|
399
401
|
document.body.appendChild(root);
|
|
400
402
|
animateThemeEnter(root);
|
|
401
403
|
mountPurchaseDialog(productConfig || {}, products);
|
|
@@ -465,6 +467,8 @@
|
|
|
465
467
|
|
|
466
468
|
function unmount() {
|
|
467
469
|
if (root) root.remove();
|
|
470
|
+
document.documentElement.classList.remove('nfh-theme-active');
|
|
471
|
+
document.body.classList.remove('nfh-theme-active');
|
|
468
472
|
if (host && host.isConnected) host.style.display = hostDisplay;
|
|
469
473
|
if (stylesheet) stylesheet.remove();
|
|
470
474
|
if (scrollHandler) window.removeEventListener('scroll', scrollHandler);
|