feat: enhance ecommerce UI — sidebar, transitions, ratio options, cancel buttons, i18n fixes

This commit is contained in:
Codex
2026-06-11 20:38:35 +08:00
parent 31c0e79e2e
commit 9b9a276014
10 changed files with 555 additions and 196 deletions
+207 -7
View File
@@ -718,7 +718,7 @@
.ecommerce-auth-modal__panel {
border-color: rgba(16, 115, 204, 0.14) !important;
color: #10202c !important;
background: rgba(254, 255, 255, 0.96) !important;
background: #feffff !important;
box-shadow: 0 28px 90px rgba(16, 115, 204, 0.16), 0 12px 34px rgba(20, 80, 100, 0.08) !important;
animation: ecommerce-auth-panel-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@@ -2701,6 +2701,10 @@
width: min(1036px, calc(100% - 56px)) !important;
margin-right: 0 !important;
margin-left: 0 !important;
;
transition: top 520ms cubic-bezier(0.16, 1, 0.3, 1),
transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
width 520ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ecommerce-standalone .product-clone-page[data-tool="clone"] .ecom-command-composer-wrap.is-before-generate {
@@ -2709,7 +2713,7 @@
}
.ecommerce-standalone .product-clone-page[data-tool="clone"] .ecom-command-composer-wrap.has-generated {
top: 24px !important;
top: 48px !important;
transform: translateX(-50%) !important;
}
@@ -4123,7 +4127,127 @@
pointer-events: none !important;
}
/* ── Hot Video Page (爆款视频) ──────────────────────── */
/* ── Quick Page Sidebar — shared left nav for set / detail / hot-video ── */
.ecommerce-standalone .ecom-quick-page-wrap {
position: absolute !important;
inset: 0 !important;
display: flex !important;
min-height: 0 !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar {
display: flex !important;
flex-direction: column !important;
align-items: center !important;
gap: 4px !important;
flex: 0 0 88px !important;
width: 88px !important;
padding: 20px 10px !important;
border-right: 1px solid rgba(30, 189, 219, 0.1) !important;
background:
linear-gradient(180deg,
rgba(255, 255, 255, 0.96) 0%,
rgba(248, 250, 252, 0.94) 50%,
rgba(243, 247, 250, 0.92) 100%) !important;
backdrop-filter: blur(20px) !important;
-webkit-backdrop-filter: blur(20px) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button {
position: relative !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
gap: 4px !important;
width: 100% !important;
min-height: 66px !important;
padding: 10px 6px !important;
border: 0 !important;
border-radius: 12px !important;
background: transparent !important;
color: #7c8a96 !important;
font-size: 10px !important;
font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
font-weight: 500 !important;
letter-spacing: 0.01em !important;
line-height: 1.2 !important;
cursor: pointer !important;
transition:
background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button .anticon {
font-size: 22px !important;
transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button span:last-child {
display: block !important;
font-size: 10px !important;
font-weight: 500 !important;
letter-spacing: 0.02em !important;
line-height: 1.2 !important;
white-space: nowrap !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button:hover {
background: rgba(30, 189, 219, 0.07) !important;
color: #0d6bb8 !important;
transform: translateY(-1px) !important;
box-shadow: 0 4px 12px rgba(16, 115, 204, 0.08) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button:hover .anticon {
transform: scale(1.08) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button:active {
transform: translateY(0) !important;
box-shadow: none !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button.is-active {
background:
linear-gradient(135deg,
rgba(16, 115, 204, 0.12) 0%,
rgba(30, 189, 219, 0.08) 100%) !important;
color: #0d6bb8 !important;
font-weight: 700 !important;
box-shadow:
0 2px 8px rgba(16, 115, 204, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button.is-active::before {
content: "" !important;
position: absolute !important;
left: 0 !important;
top: 14px !important;
bottom: 14px !important;
width: 3px !important;
border-radius: 0 3px 3px 0 !important;
background:
linear-gradient(180deg,
#1073cc 0%,
#1ebddb 100%) !important;
}
.ecommerce-standalone .ecom-quick-page-sidebar button.is-active .anticon {
color: #1073cc !important;
}
.ecommerce-standalone .ecom-quick-page-wrap > :not(.ecom-quick-page-sidebar) {
flex: 1 1 0% !important;
min-width: 0 !important;
min-height: 0 !important;
}
/* ── Hot Video Page (广告视频) ──────────────────────── */
.ecommerce-standalone .product-clone-page[data-tool="clone"].is-hot-video-page {
display: block !important;
overflow: hidden !important;
@@ -6417,6 +6541,14 @@
font-weight: 950 !important;
}
.ecommerce-standalone .ecom-quick-set-page-title {
margin-right: auto !important;
color: #10202c !important;
font-size: 17px !important;
font-weight: 950 !important;
letter-spacing: 0.02em !important;
}
.ecommerce-standalone .ecom-quick-set-panel-head strong {
color: #132435 !important;
font-size: 15px !important;
@@ -7017,12 +7149,76 @@
font-weight: 950 !important;
}
.ecommerce-standalone .ecom-quick-set-primary--cancel {
display: block !important;
position: static !important;
left: auto !important;
right: auto !important;
bottom: auto !important;
width: 100% !important;
margin-top: 8px !important;
min-height: 40px !important;
color: #ff4d4f !important;
background: rgba(255, 77, 79, 0.06) !important;
border: 1px solid rgba(255, 77, 79, 0.18) !important;
border-radius: 12px !important;
box-shadow: none !important;
font-size: 14px !important;
font-weight: 700 !important;
cursor: pointer !important;
transition: background 180ms ease, color 180ms ease, border-color 180ms ease !important;
}
.ecommerce-standalone .ecom-quick-set-primary--cancel:hover {
color: #ffffff !important;
background: #ff4d4f !important;
border-color: #ff4d4f !important;
}
.ecommerce-standalone .ecom-quick-set-primary:disabled {
color: #8fa1af !important;
background: #eef2f5 !important;
box-shadow: none !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-primary {
position: static !important;
left: auto !important;
right: auto !important;
bottom: auto !important;
width: 100% !important;
margin-top: auto !important;
flex: 0 0 auto !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel {
overflow-y: auto !important;
padding-bottom: 16px !important;
scrollbar-width: auto !important;
scrollbar-color: rgba(16, 115, 204, 0.56) rgba(16, 115, 204, 0.08) !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar {
display: block !important;
width: 14px !important;
height: 14px !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar-track {
border-radius: 999px !important;
background: rgba(16, 115, 204, 0.08) !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar-thumb {
border: 3px solid rgba(248, 249, 250, 0.95) !important;
border-radius: 999px !important;
background: rgba(16, 115, 204, 0.56) !important;
}
.ecommerce-standalone .ecom-quick-set-page .ecom-quick-set-panel::-webkit-scrollbar-thumb:hover {
background: rgba(16, 115, 204, 0.72) !important;
}
.ecommerce-standalone .ecom-quick-detail-page .ecom-quick-set-primary {
position: static !important;
left: auto !important;
@@ -7384,7 +7580,8 @@
box-shadow: 0 8px 18px rgba(16, 115, 204, 0.18) !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition {
.ecommerce-standalone .ecom-smart-cutout-transition,
.ecommerce-standalone .ecom-quick-page-transition {
position: fixed !important;
inset: 64px 0 0 !important;
z-index: 30 !important;
@@ -7399,7 +7596,8 @@
animation: ecom-smart-transition-in 260ms ease both !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition span {
.ecommerce-standalone .ecom-smart-cutout-transition span,
.ecommerce-standalone .ecom-quick-page-transition span {
width: 56px !important;
height: 56px !important;
border: 4px solid rgba(30, 189, 219, 0.16) !important;
@@ -7409,14 +7607,16 @@
animation: ecom-smart-transition-spin 860ms linear infinite !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition strong {
.ecommerce-standalone .ecom-smart-cutout-transition strong,
.ecommerce-standalone .ecom-quick-page-transition strong {
margin-top: 8px !important;
color: #10202c !important;
font-size: 20px !important;
font-weight: 800 !important;
}
.ecommerce-standalone .ecom-smart-cutout-transition em {
.ecommerce-standalone .ecom-smart-cutout-transition em,
.ecommerce-standalone .ecom-quick-page-transition em {
color: #6d7d88 !important;
font-size: 13px !important;
font-style: normal !important;