style(market): 对齐原型并同步验收规范
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 模型超市(/market)页面作用域样式。
|
||||
* 依据:原型 http://192.168.0.161:8888 「模型超市」页 .mm-* 规则(2026-11-04 采集)。
|
||||
* 依据:2026-11-13 本地原型「模型超市」页 .mm-* 规则及顶部筛选展开截图。
|
||||
* 约定:颜色只在 .mm-theme / html.dark .mm-theme 的 --mm-* 变量中定义(浅色、深色均为原型实测值),
|
||||
* 主色 / 正文 / 分隔线由 theme.useToken() 注入 --mm-brand / --mm-text / --mm-border;
|
||||
* 下方样式规则只引用变量。antd CSS-in-JS 未进入 @layer,按选择器优先级竞争;
|
||||
@@ -24,17 +24,13 @@
|
||||
--mm-hero-bg:
|
||||
radial-gradient(at 58% -20%, rgba(255, 215, 140, 0.5), transparent 62%),
|
||||
linear-gradient(110deg, #f8f3e9, #fff9ed 50%, #f0f2f5);
|
||||
--mm-hero-fade: linear-gradient(
|
||||
transparent 48%,
|
||||
rgba(244, 246, 249, 0.19) 65%,
|
||||
rgba(244, 246, 249, 0.72) 85%,
|
||||
#f4f6f9 100%
|
||||
);
|
||||
--mm-art-mask: linear-gradient(#000 0%, #000 48%, transparent 100%);
|
||||
--mm-title: #302c24;
|
||||
--mm-subtitle: #68685f;
|
||||
--mm-search-bg: rgba(255, 255, 255, 0.85);
|
||||
--mm-search-border: #ffffff;
|
||||
--mm-search-bg: #ffffff;
|
||||
--mm-search-border: #e1e6ed;
|
||||
--mm-search-shadow: 0 9px 36px rgba(140, 96, 32, 0.09);
|
||||
--mm-filter-shadow: 0 5px 18px rgba(140, 96, 32, 0.043);
|
||||
--mm-art: #a7722d;
|
||||
--mm-signal-glow: #e8aa42;
|
||||
--mm-core-border: rgba(193, 138, 59, 0.333);
|
||||
@@ -59,8 +55,6 @@
|
||||
--mm-price-extra: #3778b8;
|
||||
--mm-tag-bg: color-mix(in srgb, var(--mm-brand) 6.3%, transparent);
|
||||
--mm-mask: rgba(0, 0, 0, 0.3);
|
||||
--mm-scroll-thumb: #8b8b8b;
|
||||
--mm-scroll-thumb-hover: #636363;
|
||||
--mm-transparent: transparent;
|
||||
}
|
||||
|
||||
@@ -78,17 +72,12 @@ html.dark .mm-theme {
|
||||
--mm-hero-bg:
|
||||
radial-gradient(at 65% 0, rgba(154, 104, 20, 0.17), transparent 70%),
|
||||
linear-gradient(120deg, #1c252f, #29251e 70%, #19212c);
|
||||
--mm-hero-fade: linear-gradient(
|
||||
transparent 48%,
|
||||
rgba(17, 23, 32, 0.19) 65%,
|
||||
rgba(17, 23, 32, 0.72) 85%,
|
||||
#111720 100%
|
||||
);
|
||||
--mm-title: #f3e6ce;
|
||||
--mm-subtitle: #beb7ac;
|
||||
--mm-search-bg: rgba(24, 33, 45, 0.86);
|
||||
--mm-search-border: rgba(108, 87, 59, 0.333);
|
||||
--mm-search-bg: #1b232e;
|
||||
--mm-search-border: #3b4654;
|
||||
--mm-search-shadow: 0 12px 36px rgba(0, 0, 0, 0.133);
|
||||
--mm-filter-shadow: none;
|
||||
--mm-art: #deb572;
|
||||
--mm-core-fill: linear-gradient(
|
||||
120deg,
|
||||
@@ -102,20 +91,13 @@ html.dark .mm-theme {
|
||||
0 12px 32px rgba(0, 0, 0, 0.267), 0 0 20px rgba(212, 154, 62, 0.082);
|
||||
--mm-price-extra: #8cb9e6;
|
||||
--mm-tag-bg: color-mix(in srgb, var(--mm-brand) 8.2%, transparent);
|
||||
--mm-scroll-thumb: #8b8b8b;
|
||||
--mm-scroll-thumb-hover: #636363;
|
||||
}
|
||||
|
||||
/* ---------- 页面骨架:顶栏下方整屏,正文与筛选各自滚动(原型 .market-shell) ---------- */
|
||||
/* ---------- 页面骨架:保留宿主顶栏与公告占位,目录随页面滚动 ---------- */
|
||||
.mm-page {
|
||||
height: calc(100vh - var(--content-top-offset, 0px));
|
||||
padding-top: calc(
|
||||
var(--app-header-height, 72px) - var(--content-top-offset, 0px)
|
||||
);
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
min-height: calc(100dvh - var(--content-top-offset, 0px));
|
||||
padding-top: var(--app-header-height, 72px);
|
||||
isolation: isolate;
|
||||
background: var(--mm-page-bg);
|
||||
color: var(--mm-text);
|
||||
}
|
||||
@@ -125,29 +107,26 @@ html.dark .mm-theme {
|
||||
position: relative;
|
||||
flex-shrink: 0;
|
||||
min-height: 235px;
|
||||
overflow: hidden;
|
||||
overflow: visible;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 24px;
|
||||
padding: 28px 32px;
|
||||
background: var(--mm-hero-bg);
|
||||
}
|
||||
|
||||
.mm-hero::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
background: var(--mm-hero-fade);
|
||||
}
|
||||
|
||||
.mm-art {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
position: fixed;
|
||||
inset: calc(var(--app-header-height, 72px) + var(--content-top-offset, 0px)) 0
|
||||
auto;
|
||||
height: 250px;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
color: var(--mm-art);
|
||||
background: var(--mm-hero-bg);
|
||||
mask-image: var(--mm-art-mask);
|
||||
}
|
||||
|
||||
.mm-art-svg,
|
||||
@@ -236,7 +215,6 @@ html.dark .mm-theme {
|
||||
border: 1px solid var(--mm-search-border);
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--mm-search-shadow);
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.mm-search .ant-input-affix-wrapper {
|
||||
@@ -266,97 +244,110 @@ html.dark .mm-theme {
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
/* ---------- 工作区:筛选侧栏 + 模型目录 ---------- */
|
||||
/* ---------- 工作区:统计栏、横向筛选卡与模型目录 ---------- */
|
||||
.mm-workspace {
|
||||
display: flex;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
min-height: 0;
|
||||
flex: 1 1 0%;
|
||||
gap: 22px;
|
||||
padding: 20px 28px 24px;
|
||||
padding: 18px 28px 24px;
|
||||
max-width: 1920px;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.mm-sidebar {
|
||||
width: 264px;
|
||||
flex-shrink: 0;
|
||||
.mm-filter-panel.ant-card {
|
||||
margin-bottom: 14px;
|
||||
background: var(--mm-surface);
|
||||
border: 1px solid var(--mm-border);
|
||||
border-radius: 12px;
|
||||
padding: 12px 18px 8px;
|
||||
overflow: auto;
|
||||
overscroll-behavior: contain;
|
||||
scrollbar-gutter: stable;
|
||||
box-shadow: var(--mm-filter-shadow);
|
||||
}
|
||||
|
||||
.mm-sidebar::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
.mm-sidebar::-webkit-scrollbar-track {
|
||||
background: var(--mm-transparent);
|
||||
}
|
||||
|
||||
.mm-sidebar::-webkit-scrollbar-thumb {
|
||||
background: var(--mm-transparent);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.mm-sidebar:hover::-webkit-scrollbar-thumb,
|
||||
.mm-sidebar:focus-within::-webkit-scrollbar-thumb {
|
||||
background: var(--mm-scroll-thumb);
|
||||
}
|
||||
|
||||
.mm-sidebar::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--mm-scroll-thumb-hover);
|
||||
.mm-filter-panel.ant-card > .ant-card-body {
|
||||
padding: 14px 18px 10px;
|
||||
}
|
||||
|
||||
.mm-filter-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-bottom: 4px;
|
||||
gap: 14px;
|
||||
padding-bottom: 11px;
|
||||
border-bottom: 1px solid var(--mm-border);
|
||||
}
|
||||
|
||||
.mm-filter-title > div:first-child {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mm-filter-title h2 {
|
||||
font-size: 16px;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
margin: 0;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mm-filter-title > div:first-child > span {
|
||||
font-size: 12px;
|
||||
color: var(--mm-muted);
|
||||
}
|
||||
|
||||
.mm-filter-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
|
||||
.mm-filter-title .ant-btn {
|
||||
padding-inline: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--mm-brand);
|
||||
}
|
||||
|
||||
.mm-filter-group {
|
||||
border-top: 1px solid var(--mm-border);
|
||||
padding: 16px 0;
|
||||
display: grid;
|
||||
grid-template-columns: 72px minmax(0, 1fr);
|
||||
align-items: start;
|
||||
gap: 12px;
|
||||
padding: 10px 0 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mm-filter-rows:not(.is-expanded) .mm-filter-group:nth-child(n + 2) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mm-filter-group h3 {
|
||||
font-size: 15px;
|
||||
margin: 0 0 12px;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
line-height: 30px;
|
||||
margin: 0;
|
||||
color: var(--mm-muted);
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mm-filter-group > div {
|
||||
display: flex;
|
||||
gap: 7px;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.mm-filter-group .ant-btn {
|
||||
height: auto;
|
||||
min-height: 30px;
|
||||
padding: 4px 9px;
|
||||
font-size: 13px;
|
||||
min-height: 28px;
|
||||
padding: 3px 9px;
|
||||
font-size: 12px;
|
||||
border-radius: 6px;
|
||||
gap: 5px;
|
||||
white-space: normal;
|
||||
max-width: 100%;
|
||||
box-shadow: none;
|
||||
line-height: 1.5;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.mm-filter-group .ant-btn.mm-selected {
|
||||
@@ -414,11 +405,8 @@ html.dark .mm-filter-group .mm-logo {
|
||||
}
|
||||
|
||||
.mm-catalog {
|
||||
flex: 1 1 0%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mm-result-bar {
|
||||
@@ -427,7 +415,7 @@ html.dark .mm-filter-group .mm-logo {
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-height: 45px;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 10px;
|
||||
padding: 0 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -449,29 +437,15 @@ html.dark .mm-filter-group .mm-logo {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mm-mobile-filter.ant-btn {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mm-scope-alert {
|
||||
flex-shrink: 0;
|
||||
margin: 0 4px 12px;
|
||||
}
|
||||
|
||||
.mm-scroll {
|
||||
overflow: hidden auto;
|
||||
flex: 1 1 0%;
|
||||
min-height: 0;
|
||||
padding: 4px 8px 18px 4px;
|
||||
overscroll-behavior: contain;
|
||||
padding: 4px 8px 28px 4px;
|
||||
outline-offset: -2px;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.mm-scroll::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.mm-section-title {
|
||||
@@ -948,10 +922,6 @@ html.dark .mm-filter-group .mm-logo {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.mm-sidebar {
|
||||
width: 248px;
|
||||
}
|
||||
|
||||
.mm-core {
|
||||
right: 6%;
|
||||
}
|
||||
@@ -964,16 +934,6 @@ html.dark .mm-filter-group .mm-logo {
|
||||
|
||||
.mm-workspace {
|
||||
padding: 18px 20px 20px;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.mm-sidebar {
|
||||
width: 230px;
|
||||
padding-inline: 14px;
|
||||
}
|
||||
|
||||
.mm-hero {
|
||||
min-height: 215px;
|
||||
}
|
||||
|
||||
.mm-core {
|
||||
@@ -983,10 +943,6 @@ html.dark .mm-filter-group .mm-logo {
|
||||
}
|
||||
|
||||
@media (max-width: 850px) {
|
||||
.mm-sidebar {
|
||||
width: 205px;
|
||||
}
|
||||
|
||||
.mm-grid {
|
||||
gap: 12px;
|
||||
}
|
||||
@@ -1014,8 +970,7 @@ html.dark .mm-filter-group .mm-logo {
|
||||
}
|
||||
|
||||
.mm-workspace {
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
padding-inline: 16px;
|
||||
}
|
||||
|
||||
.mm-intro h1 {
|
||||
@@ -1029,7 +984,6 @@ html.dark .mm-filter-group .mm-logo {
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.mm-hero {
|
||||
min-height: 193px;
|
||||
padding: 22px 16px;
|
||||
gap: 18px;
|
||||
}
|
||||
@@ -1070,49 +1024,58 @@ html.dark .mm-filter-group .mm-logo {
|
||||
}
|
||||
|
||||
.mm-workspace {
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
padding: 10px 12px 14px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.mm-sidebar {
|
||||
display: none;
|
||||
width: 100%;
|
||||
flex-shrink: 1;
|
||||
max-height: 40%;
|
||||
.mm-filter-panel.ant-card {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mm-sidebar.mm-filters-open {
|
||||
.mm-filter-panel.ant-card > .ant-card-body {
|
||||
padding: 12px 12px 8px;
|
||||
}
|
||||
|
||||
.mm-filter-title {
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.mm-filter-title > div:first-child {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.mm-filter-title > div:first-child > span {
|
||||
display: block;
|
||||
margin-top: 3px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mm-filter-group {
|
||||
padding: 12px 0;
|
||||
grid-template-columns: 66px minmax(0, 1fr);
|
||||
gap: 7px;
|
||||
padding: 8px 0 3px;
|
||||
}
|
||||
|
||||
.mm-filter-group h3 {
|
||||
font-size: 11px;
|
||||
line-height: 29px;
|
||||
}
|
||||
|
||||
.mm-filter-group .ant-btn {
|
||||
min-height: 36px;
|
||||
}
|
||||
|
||||
.mm-catalog {
|
||||
flex: 1 1 0%;
|
||||
min-height: 29px;
|
||||
padding-inline: 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mm-result-bar {
|
||||
min-height: 40px;
|
||||
margin-bottom: 8px;
|
||||
min-height: 38px;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.mm-result-bar h2 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.mm-mobile-filter.ant-btn {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.mm-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 14px;
|
||||
@@ -1147,10 +1110,6 @@ html.dark .mm-filter-group .mm-logo {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mm-scroll {
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.mm-section-title h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user