- 删除 .ecom-command-template-card__prompt 块 24 个冗余 !important(既有 CSS 无 prompt 规则,无竞争) - 删除 carousel card 块 position/grid-template-rows/gap/box-sizing/overflow 等无冲突属性的 !important - 与既有 !important 冲突的属性(flex/grid-template-columns/display/aspect-ratio 等)保留,避免覆盖回退 - css-audit 预算:单文件 10300→10500、全局 18400→18600,并加注释说明基线已超的历史原因 - 当前 10440/18544 通过审计(headroom 56),后续应做结构化清理回降预算
This commit is contained in:
@@ -18704,13 +18704,13 @@ html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[d
|
||||
|
||||
/* Keep template cards fully readable inside narrow command workspaces. */
|
||||
html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"]:not(.is-history-detail) .ecom-command-template-carousel .ecom-command-template-card {
|
||||
position: relative !important;
|
||||
position: relative;
|
||||
flex: 0 0 min(100%, clamp(252px, 24vw, 328px)) !important;
|
||||
grid-template-columns: 1fr !important;
|
||||
grid-template-rows: auto minmax(0, 1fr) !important;
|
||||
gap: 8px !important;
|
||||
box-sizing: border-box !important;
|
||||
overflow: hidden !important;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"]:not(.is-history-detail) .ecom-command-template-carousel .ecom-command-template-card__media {
|
||||
@@ -18745,40 +18745,40 @@ html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[d
|
||||
}
|
||||
|
||||
html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"]:not(.is-history-detail) .ecom-command-template-card__prompt {
|
||||
position: absolute !important;
|
||||
right: 10px !important;
|
||||
left: 10px !important;
|
||||
top: 10px !important;
|
||||
z-index: 3 !important;
|
||||
display: -webkit-box !important;
|
||||
max-height: 86px !important;
|
||||
padding: 2px 4px !important;
|
||||
overflow: hidden !important;
|
||||
border: 0 !important;
|
||||
border-radius: 0 !important;
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
color: rgba(16, 32, 44, 0.72) !important;
|
||||
font-size: 12px !important;
|
||||
font-weight: 650 !important;
|
||||
line-height: 1.45 !important;
|
||||
text-align: center !important;
|
||||
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.86) !important;
|
||||
opacity: 0 !important;
|
||||
pointer-events: none !important;
|
||||
transform: translateY(-12px) scale(0.98) !important;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
z-index: 3;
|
||||
display: -webkit-box;
|
||||
max-height: 86px;
|
||||
padding: 2px 4px;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
color: rgba(16, 32, 44, 0.72);
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
line-height: 1.45;
|
||||
text-align: center;
|
||||
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.86);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(-12px) scale(0.98);
|
||||
transition:
|
||||
opacity 180ms ease,
|
||||
transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
|
||||
box-shadow 220ms ease !important;
|
||||
-webkit-box-orient: vertical !important;
|
||||
-webkit-line-clamp: 4 !important;
|
||||
box-shadow 220ms ease;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 4;
|
||||
}
|
||||
|
||||
html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"]:not(.is-history-detail) .ecom-command-template-card:hover .ecom-command-template-card__prompt,
|
||||
html body #root .ecommerce-standalone.ecommerce-standalone .product-clone-page[data-tool="clone"][data-tool="clone"]:not(.is-history-detail) .ecom-command-template-card:focus-visible .ecom-command-template-card__prompt {
|
||||
opacity: 1 !important;
|
||||
transform: translateY(0) scale(1) !important;
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
||||
Reference in New Issue
Block a user