@etspress/netflix 0.1.19 → 0.1.20

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": "@etspress/netflix",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
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.19",
21
+ "version": "0.1.20",
22
22
  "runtime": {
23
23
  "type": "npm-static",
24
24
  "publicRoot": "public"
package/plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schemaVersion": 1,
4
4
  "id": "netflix",
5
5
  "name": "流媒体合租主题",
6
- "version": "0.1.19",
6
+ "version": "0.1.20",
7
7
  "description": "流媒体合租商店主题与页面展示配置。",
8
8
  "author": "D&J Studio",
9
9
  "license": "MIT",
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; }
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);