-
-
-
-
-
- diff --git a/.claude/launch.json b/.claude/launch.json new file mode 100644 index 0000000..0c4a2ed --- /dev/null +++ b/.claude/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.0.1", + "configurations": [ + { + "name": "h5-static", + "runtimeExecutable": "npx", + "runtimeArgs": ["--yes", "http-server", "-p", "18080", "-c-1"], + "port": 18080 + } + ] +} diff --git a/activity/cp-space/yumi.css b/activity/cp-space/yumi.css index 216ab3d..b7557de 100644 --- a/activity/cp-space/yumi.css +++ b/activity/cp-space/yumi.css @@ -34,6 +34,10 @@ button { } .yumi-cp-stage { + --stage-height: 812px; + --design-width: 375px; + --design-height: 812px; + --design-scale: 1; --accent: #ff0979; --accent-soft: #ff5762; --tab-bg: rgba(94, 13, 35, 0.8); @@ -47,14 +51,22 @@ button { --progress-to: #ffcf67; --exp-pill-bg: rgba(255, 102, 169, 0.74); position: relative; - width: min(100vw, 375px); - height: min(812px, 216.533333vw); - max-height: 812px; + width: 100%; + height: var(--stage-height); overflow: hidden; background: #440b23; flex: 0 0 auto; } +.yumi-stage-design { + /* 资源按 375x812 设计稿导出;统一缩放内层画布,避免逐个重算绝对定位和素材尺寸。 */ + position: relative; + width: var(--design-width); + height: var(--design-height); + transform: scale(var(--design-scale)); + transform-origin: left top; +} + .yumi-cp-page[data-tab='brother'] .yumi-cp-stage { --accent: #5709ff; --accent-soft: #5709ff; @@ -108,7 +120,6 @@ button { object-fit: fill; } -.yumi-status, .yumi-nav, .yumi-tabs, .yumi-card { @@ -116,146 +127,9 @@ button { z-index: 1; } -.yumi-status { - left: 0; - top: 0; - width: 375px; - height: 44px; - color: #fff; - pointer-events: none; - transform-origin: left top; -} - -.yumi-status-time { - position: absolute; - left: 33.87px; - top: 13px; - width: 54px; - font-family: Helvetica, Arial, sans-serif; - font-size: 15px; - line-height: 15px; - text-align: center; -} - -.yumi-status-cellular { - position: absolute; - left: 294.34px; - top: 15px; - display: flex; - align-items: flex-end; - gap: 2px; - width: 17px; - height: 12px; -} - -.yumi-status-cellular i { - display: block; - width: 3px; - border-radius: 2px; - background: #fff; -} - -.yumi-status-cellular i:nth-child(1) { - height: 4px; -} - -.yumi-status-cellular i:nth-child(2) { - height: 7px; -} - -.yumi-status-cellular i:nth-child(3) { - height: 10px; -} - -.yumi-status-cellular i:nth-child(4) { - height: 12px; -} - -.yumi-status-wifi { - position: absolute; - left: 316.34px; - top: 16px; - width: 16px; - height: 12px; - overflow: hidden; -} - -.yumi-status-wifi::before, -.yumi-status-wifi::after, -.yumi-status-wifi i { - position: absolute; - left: 50%; - border: 2px solid #fff; - border-right-color: transparent; - border-bottom-color: transparent; - border-left-color: transparent; - border-radius: 50%; - content: ''; - transform: translateX(-50%); -} - -.yumi-status-wifi::before { - top: 0; - width: 16px; - height: 16px; -} - -.yumi-status-wifi::after { - top: 4px; - width: 10px; - height: 10px; -} - -.yumi-status-wifi i { - top: 8px; - width: 4px; - height: 4px; - background: #fff; -} - -.yumi-status-battery { - position: absolute; - left: 336.67px; - top: 16.33px; - width: 24.33px; - height: 11.33px; -} - -.yumi-status-battery::before { - position: absolute; - left: 0; - top: 0; - width: 21px; - height: 11px; - border: 1.2px solid #fff; - border-radius: 2.7px; - content: ''; -} - -.yumi-status-battery::after { - position: absolute; - right: 0; - top: 3.4px; - width: 1.4px; - height: 4.5px; - border-radius: 0 1px 1px 0; - background: #fff; - content: ''; -} - -.yumi-status-battery i { - position: absolute; - left: 2.3px; - top: 2.3px; - width: 17px; - height: 6.8px; - border-radius: 1.5px; - background: #fff; -} - .yumi-nav { left: 0; - top: 44px; + top: 0; width: 375px; height: 44px; } @@ -318,7 +192,7 @@ button { .yumi-tabs { left: 16px; - top: 109px; + top: 65px; display: grid; grid-template-columns: repeat(3, 1fr); width: 343px; @@ -362,7 +236,7 @@ button { .yumi-card { left: 14px; - top: 169px; + top: 125px; width: 347px; height: 199px; color: var(--accent); @@ -636,13 +510,3 @@ button { [dir='rtl'] .yumi-tabs { direction: ltr; } - -@media (max-width: 374.98px) { - .yumi-status, - .yumi-nav, - .yumi-tabs, - .yumi-card { - transform: scale(calc(100vw / 375)); - transform-origin: left top; - } -} diff --git a/activity/cp-space/yumi.html b/activity/cp-space/yumi.html index d08f68d..cb43cdf 100644 --- a/activity/cp-space/yumi.html +++ b/activity/cp-space/yumi.html @@ -12,7 +12,7 @@ rel="stylesheet" href="../../common/theme.css?v=20260708-yumi-layered" /> - +
-
-
-
-
-
-