Files
omniai-web/src/styles/pages/size-template.css
T
2026-06-02 12:38:01 +08:00

477 lines
10 KiB
CSS

.product-clone-page[data-tool="clone"].size-template-workbench {
--clone-settings-panel-width: 640px;
--size-green: #34d399;
--size-cyan: #38bdf8;
--size-violet: #a78bfa;
--size-amber: #fbbf24;
}
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"] {
padding-left: 92px;
}
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"] > .product-clone-shell {
width: 100%;
grid-template-columns: var(--clone-settings-panel-width) minmax(0, 1fr);
}
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
grid-template-columns: 0 minmax(0, 1fr);
}
.size-template-workbench .product-clone-panel {
background: #15171c;
}
.size-template-workbench .size-template-settings-panel {
gap: 18px;
padding: 22px 22px;
}
.size-template-workbench .size-template-upload-card,
.size-template-workbench .size-template-generate-card {
border-color: #303540;
border-radius: 14px;
background: #1b1d23;
padding: 16px;
}
.size-template-workbench .size-template-upload-card h2,
.size-template-workbench .size-template-generate-card h2 {
margin-bottom: 11px;
color: #b8c0cd;
font-size: 12px;
font-weight: 900;
}
.size-template-workbench .size-template-upload-zone {
min-height: 174px;
border-radius: 10px;
}
.size-template-workbench .size-template-uploaded-files {
margin-top: 10px;
}
.size-template-empty-state.has-upload {
gap: 12px;
}
.size-template-empty-state__image {
width: min(72%, 420px);
max-height: min(46vh, 420px);
object-fit: contain;
border: 1px solid #303540;
border-radius: 14px;
background: #101115;
}
.size-template-workbench .size-template-category-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.size-template-workbench .size-template-category-grid button {
height: 54px;
padding: 0 12px;
font-size: 13px;
line-height: 1.2;
white-space: normal;
}
.size-template-workbench .clone-ai-settings-section {
gap: 10px;
}
.size-template-workbench .clone-ai-settings-section + .clone-ai-settings-section {
margin-top: 16px;
}
.size-template-workbench .clone-ai-select-group {
gap: 12px;
}
.size-template-workbench .size-template-static-field > button {
height: 66px;
padding: 10px 38px 10px 14px;
}
.size-template-workbench .size-template-static-field > button {
cursor: default;
}
.size-template-workbench .size-template-static-field.is-clickable > button {
cursor: pointer;
}
.size-template-workbench .size-template-static-field.is-clickable > button:hover,
.size-template-workbench .size-template-static-field.is-clickable > button[aria-expanded="true"] {
border-color: #34d399;
background: #202c28;
}
.size-template-workbench .size-template-static-field > button:active {
transform: none;
}
.size-template-workbench .size-template-static-field > button i {
display: none;
}
.size-template-workbench .size-template-static-field.is-clickable > button i {
display: block;
}
.size-template-platform-dialog {
position: absolute;
z-index: 40;
top: calc(100% + 8px);
left: 0;
right: 0;
display: grid;
gap: 5px;
overflow: hidden;
border: 1px solid #303540;
border-radius: 10px;
background: #20232a;
padding: 6px;
box-shadow: 0 18px 40px rgb(0 0 0 / 34%);
animation: size-template-dialog-rise 150ms ease both;
}
.size-template-platform-dialog button {
min-height: 38px;
border: 0;
border-radius: 7px;
background: transparent;
color: #b7bfcc;
padding: 0 12px;
text-align: left;
font-size: 13px;
font-weight: 900;
cursor: pointer;
}
.size-template-platform-dialog button:hover,
.size-template-platform-dialog button.is-active {
background: #17352a;
color: #34d399;
}
@keyframes size-template-dialog-rise {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.size-template-workbench .size-template-preset-panel {
max-height: none;
}
.size-template-workbench .size-template-preset-list button span {
display: block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.size-template-workbench .size-template-option-panel {
flex: 1 1 auto;
min-height: 238px;
height: auto;
max-height: none;
gap: 12px;
padding: 14px;
}
.size-template-workbench .clone-ai-model-tabs {
gap: 10px;
}
.size-template-workbench .clone-ai-model-tabs button {
height: 42px;
font-size: 13px;
}
.size-template-workbench .clone-ai-model-scroll {
padding-right: 6px;
}
.size-template-workbench .size-template-option-grid {
align-content: start;
gap: 10px;
}
.size-template-workbench .size-template-option-grid button {
justify-content: flex-start;
min-height: 50px;
padding: 11px 12px;
font-size: 13px;
text-align: left;
line-height: 1.3;
}
.size-template-workbench .size-template-submit {
flex: 0 0 auto;
min-height: 58px;
margin-top: 0;
font-size: 16px;
}
.size-template-workbench .size-template-demo-board {
display: grid;
grid-template-columns: minmax(220px, 300px) 54px minmax(330px, 520px);
align-items: center;
gap: 20px;
width: min(100%, 930px);
}
.size-template-workbench .size-template-demo-board::before {
content: "";
display: block;
grid-column: 2;
grid-row: 1;
width: 54px;
height: 2px;
border-radius: 999px;
background: linear-gradient(90deg, #34d399, rgb(52 211 153 / 0%));
box-shadow: 0 0 18px rgb(52 211 153 / 35%);
}
.size-template-main-frame {
--size-template-ratio: 1 / 1;
--size-tone: var(--size-green);
display: grid;
grid-column: 1;
grid-row: 1;
width: min(100%, 300px);
aspect-ratio: var(--size-template-ratio);
min-height: 180px;
max-height: 360px;
align-content: center;
justify-items: center;
gap: 10px;
overflow: hidden;
border: 1px solid color-mix(in srgb, var(--size-tone) 48%, #2c3038);
border-left: 6px solid var(--size-tone);
border-radius: 14px;
background:
linear-gradient(90deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
linear-gradient(180deg, rgb(255 255 255 / 8%) 1px, transparent 1px),
linear-gradient(135deg, color-mix(in srgb, var(--size-tone) 18%, transparent), rgb(255 255 255 / 5%)),
#1b1d23;
background-size: 20px 20px, 20px 20px, auto, auto;
color: #eef2f6;
cursor: pointer;
box-shadow: 0 26px 70px rgb(0 0 0 / 35%);
}
.size-template-main-frame span {
color: #eef2f6;
font-size: clamp(42px, 6vw, 72px);
font-weight: 950;
line-height: 1;
}
.size-template-main-frame strong {
color: rgb(238 242 246 / 72%);
font-size: 15px;
font-weight: 900;
}
.size-template-main-frame.is-green {
--size-tone: var(--size-green);
}
.size-template-main-frame.is-cyan {
--size-tone: var(--size-cyan);
}
.size-template-main-frame.is-violet {
--size-tone: var(--size-violet);
}
.size-template-main-frame.is-amber {
--size-tone: var(--size-amber);
}
.size-template-spec-grid {
display: grid;
grid-column: 3;
grid-row: 1;
grid-template-columns: repeat(2, minmax(130px, 1fr));
gap: 12px;
}
.size-template-spec-grid span {
display: grid;
min-height: 112px;
align-content: center;
gap: 8px;
border: 1px solid #2c3038;
border-radius: 14px;
background: #1b1d23;
color: #8f98a8;
padding: 16px;
font-size: 13px;
font-weight: 850;
}
.size-template-spec-grid b {
color: #eef2f6;
font-size: 18px;
font-weight: 950;
}
.size-template-preview-note {
position: absolute;
left: 46px;
right: 46px;
bottom: 118px;
display: grid;
grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
align-items: center;
gap: 14px;
border: 1px solid #2c3038;
border-radius: 18px;
background: #1b1d23;
padding: 14px 16px;
}
.size-template-preview-note > div:first-child {
display: inline-flex;
align-items: center;
gap: 10px;
color: #eef2f6;
font-size: 14px;
font-weight: 900;
}
.size-template-preview-note > div:first-child .anticon {
color: #34d399;
}
.size-template-preview-note p {
min-width: 0;
margin: 0;
overflow: hidden;
color: #8f98a8;
font-size: 13px;
font-weight: 750;
line-height: 1.5;
text-overflow: ellipsis;
white-space: nowrap;
}
.size-template-detail-card {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
width: min(100%, 930px);
}
.size-template-detail-card span {
display: flex;
min-height: 44px;
align-items: center;
border: 1px solid #2c3038;
border-radius: 12px;
background: #1b1d23;
color: #b7bfcc;
padding: 10px 12px;
font-size: 13px;
font-weight: 800;
line-height: 1.45;
}
.size-template-check-list {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.size-template-check-list span {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 30px;
border: 1px solid #303540;
border-radius: 999px;
background: #22252d;
color: #b7bfcc;
padding: 0 10px;
font-size: 12px;
font-weight: 850;
white-space: nowrap;
}
.size-template-check-list .anticon {
color: #34d399;
}
@media (max-width: 1320px) {
.size-template-workbench .size-template-demo-board {
grid-template-columns: minmax(180px, 260px) 44px minmax(280px, 1fr);
}
.size-template-preview-note {
left: 30px;
right: 30px;
}
.size-template-detail-card {
width: min(100%, 840px);
}
}
@media (max-width: 980px) {
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"] {
--clone-settings-panel-width: 100%;
padding-left: 0;
}
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"] > .product-clone-shell,
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"].is-settings-collapsed > .product-clone-shell {
grid-template-columns: 1fr;
}
.web-shell[data-view="sizeTemplate"] .product-clone-page[data-tool="clone"].is-settings-collapsed .product-clone-panel {
display: none;
}
.size-template-workbench .size-template-demo-board {
grid-template-columns: 1fr;
max-width: 430px;
}
.size-template-workbench .size-template-demo-board::before {
display: none;
}
.size-template-main-frame,
.size-template-spec-grid {
grid-column: 1;
grid-row: auto;
}
.size-template-spec-grid,
.size-template-preview-note,
.size-template-detail-card {
grid-template-columns: 1fr;
}
.size-template-preview-note,
.size-template-detail-card {
position: static;
width: min(100%, 430px);
}
}