完成视频复刻和优化
This commit is contained in:
@@ -136,6 +136,50 @@
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.vrep-page .replace-mode-switch {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
margin: 16px 0 22px;
|
||||
padding: 5px;
|
||||
border: 1px solid rgba(34, 42, 54, 0.09);
|
||||
border-radius: 14px;
|
||||
background: rgba(241, 244, 249, 0.88);
|
||||
}
|
||||
|
||||
.vrep-page .replace-mode-button {
|
||||
min-height: 48px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 9px;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
color: #69758a;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
.vrep-page .replace-mode-button svg {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.vrep-page .replace-mode-button.active {
|
||||
color: var(--klein);
|
||||
background: #fff;
|
||||
box-shadow: 0 7px 18px rgba(22, 45, 92, 0.09), inset 0 0 0 1px rgba(0, 47, 167, 0.11);
|
||||
}
|
||||
|
||||
.vrep-page .replace-mode-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.vrep-page .video-flow-step {
|
||||
margin-top: 22px;
|
||||
}
|
||||
@@ -216,7 +260,9 @@
|
||||
}
|
||||
|
||||
.vrep-page .primary-action,
|
||||
.vrep-page .secondary-action {
|
||||
.vrep-page .secondary-action,
|
||||
.asset-library-layer .primary-action,
|
||||
.asset-library-layer .secondary-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -227,7 +273,8 @@
|
||||
transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
|
||||
}
|
||||
|
||||
.vrep-page .primary-action {
|
||||
.vrep-page .primary-action,
|
||||
.asset-library-layer .primary-action {
|
||||
min-width: 158px;
|
||||
height: 50px;
|
||||
padding: 0 22px;
|
||||
@@ -237,19 +284,22 @@
|
||||
box-shadow: 0 9px 18px rgba(0, 47, 167, 0.18);
|
||||
}
|
||||
|
||||
.vrep-page .primary-action:hover:not(:disabled) {
|
||||
.vrep-page .primary-action:hover:not(:disabled),
|
||||
.asset-library-layer .primary-action:hover:not(:disabled) {
|
||||
transform: translateY(-2px);
|
||||
background: var(--klein-hover);
|
||||
}
|
||||
|
||||
.vrep-page .primary-action:disabled {
|
||||
.vrep-page .primary-action:disabled,
|
||||
.asset-library-layer .primary-action:disabled {
|
||||
opacity: 0.38;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.vrep-page .secondary-action {
|
||||
.vrep-page .secondary-action,
|
||||
.asset-library-layer .secondary-action {
|
||||
min-width: 132px;
|
||||
height: 46px;
|
||||
padding: 0 18px;
|
||||
@@ -258,12 +308,15 @@
|
||||
background: rgba(34, 42, 54, 0.05);
|
||||
}
|
||||
|
||||
.vrep-page .secondary-action:hover:not(:disabled) {
|
||||
.vrep-page .secondary-action:hover:not(:disabled),
|
||||
.asset-library-layer .secondary-action:hover:not(:disabled) {
|
||||
background: rgba(34, 42, 54, 0.10);
|
||||
}
|
||||
|
||||
.vrep-page .primary-action svg,
|
||||
.vrep-page .secondary-action svg {
|
||||
.vrep-page .secondary-action svg,
|
||||
.asset-library-layer .primary-action svg,
|
||||
.asset-library-layer .secondary-action svg {
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
}
|
||||
@@ -541,6 +594,7 @@
|
||||
}
|
||||
|
||||
.vrep-page .replace-result-panel.has-result .replace-preview,
|
||||
.vrep-page .replace-result-panel.has-result .replace-preview-meta,
|
||||
.vrep-page .replace-result-panel.has-result .replace-result-actions {
|
||||
margin-top: 0;
|
||||
}
|
||||
@@ -616,7 +670,8 @@
|
||||
}
|
||||
|
||||
.vrep-page .video-result-panel.has-result .video-analysis-result {
|
||||
display: block;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.vrep-page .replace-generating-state {
|
||||
@@ -752,47 +807,37 @@
|
||||
|
||||
.vrep-page .replace-preview {
|
||||
position: relative;
|
||||
min-height: 250px;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin-top: 18px;
|
||||
margin-top: 16px;
|
||||
overflow: hidden;
|
||||
border-radius: 13px;
|
||||
color: #fff;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(12, 17, 27, 0.08), rgba(12, 17, 27, 0.62)),
|
||||
#101012;
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
background: #101012;
|
||||
}
|
||||
|
||||
.vrep-page .replace-preview video,
|
||||
.vrep-page .replace-preview img {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 420px;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
object-fit: contain;
|
||||
background: #101012;
|
||||
}
|
||||
|
||||
.vrep-page .replace-preview-copy {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
align-self: end;
|
||||
width: 100%;
|
||||
padding: 26px;
|
||||
background: linear-gradient(180deg, transparent, rgba(12, 17, 27, 0.72));
|
||||
.vrep-page .replace-preview-meta {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.vrep-page .replace-preview-copy strong {
|
||||
display: block;
|
||||
font-size: 18px;
|
||||
.vrep-page .replace-preview-meta strong {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.vrep-page .replace-preview-copy span {
|
||||
display: block;
|
||||
margin-top: 7px;
|
||||
color: rgba(255, 255, 255, 0.76);
|
||||
.vrep-page .replace-preview-meta span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
@@ -822,13 +867,13 @@
|
||||
|
||||
.vrep-page .replace-history-list {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-empty {
|
||||
padding: 28px 16px;
|
||||
border: 1px solid rgba(0, 47, 167, 0.12);
|
||||
border-radius: 15px;
|
||||
border-radius: 12px;
|
||||
color: var(--muted);
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
font-size: 13px;
|
||||
@@ -837,16 +882,11 @@
|
||||
|
||||
.vrep-page .replace-history-card {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 184px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
padding: 12px;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(0, 47, 167, 0.12);
|
||||
border-radius: 15px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
box-shadow: 0 12px 30px rgba(22, 45, 92, 0.055);
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.92);
|
||||
box-shadow: 0 8px 20px rgba(22, 45, 92, 0.05);
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-card::before {
|
||||
@@ -857,13 +897,31 @@
|
||||
background: var(--klein);
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-summary {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 148px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 12px 14px 12px 16px;
|
||||
border: 0;
|
||||
color: inherit;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-summary:hover {
|
||||
background: rgba(0, 47, 167, 0.035);
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-cover {
|
||||
position: relative;
|
||||
height: 108px;
|
||||
height: 84px;
|
||||
overflow: hidden;
|
||||
border-radius: 10px;
|
||||
border-radius: 8px;
|
||||
background: #e9eef8;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-cover img,
|
||||
@@ -878,76 +936,143 @@
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
bottom: 8px;
|
||||
padding: 4px 7px;
|
||||
border-radius: 6px;
|
||||
padding: 3px 6px;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
background: rgba(16, 16, 18, 0.76);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-copy > span {
|
||||
width: fit-content;
|
||||
display: inline-flex;
|
||||
padding: 4px 8px;
|
||||
padding: 3px 8px;
|
||||
border-radius: 999px;
|
||||
color: var(--klein);
|
||||
background: #eef3ff;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-copy h3 {
|
||||
margin: 9px 0 0;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #1d2940;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-copy p {
|
||||
margin: 7px 0 0;
|
||||
.vrep-page .replace-history-copy strong {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-copy small {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-open {
|
||||
min-height: 38px;
|
||||
.vrep-page .replace-history-toggle {
|
||||
min-height: 36px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
padding: 0 13px;
|
||||
border: 1px solid rgba(0, 47, 167, 0.22);
|
||||
border-radius: 9px;
|
||||
gap: 6px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid rgba(0, 47, 167, 0.18);
|
||||
border-radius: 8px;
|
||||
color: var(--klein);
|
||||
background: #fff;
|
||||
font: inherit;
|
||||
font-size: 11px;
|
||||
font-weight: 650;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-open svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
.vrep-page .replace-history-toggle svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
transition: transform 180ms ease;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-layer {
|
||||
.vrep-page .replace-history-card.is-open .replace-history-toggle svg {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
padding: 0 14px 14px 16px;
|
||||
border-top: 1px solid rgba(34, 42, 54, 0.08);
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare-pane {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare-pane > span {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare-pane video,
|
||||
.vrep-page .replace-history-compare-empty {
|
||||
width: 100%;
|
||||
aspect-ratio: 9 / 16;
|
||||
max-height: 360px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
background: #101012;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare-pane video {
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.vrep-page .replace-history-compare-empty {
|
||||
color: rgba(255, 255, 255, 0.62);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/* 挂到 body,盖住顶栏。变量写在本层,不依赖 .vrep-page */
|
||||
.asset-library-layer {
|
||||
--klein: #002fa7;
|
||||
--klein-hover: #002680;
|
||||
--muted: #6f747c;
|
||||
--text: #17181a;
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 90;
|
||||
z-index: var(--z-overlay);
|
||||
visibility: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: visibility 0s linear 260ms, opacity 220ms ease;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-layer.open {
|
||||
.asset-library-layer.open {
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-scrim {
|
||||
.asset-library-scrim {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
border: 0;
|
||||
@@ -955,7 +1080,7 @@
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-drawer {
|
||||
.asset-library-drawer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@@ -970,11 +1095,11 @@
|
||||
transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-layer.open .asset-library-drawer {
|
||||
.asset-library-layer.open .asset-library-drawer {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-head {
|
||||
.asset-library-head {
|
||||
min-height: 82px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -984,18 +1109,18 @@
|
||||
border-bottom: 1px solid rgba(34, 42, 54, 0.09);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-head h2 {
|
||||
.asset-library-head h2 {
|
||||
margin: 0 0 4px;
|
||||
font-size: 21px;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-head p {
|
||||
.asset-library-head p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.vrep-page .product-drawer-close {
|
||||
.asset-library-layer .product-drawer-close {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
display: grid;
|
||||
@@ -1008,17 +1133,17 @@
|
||||
transition: color 160ms ease, background-color 160ms ease;
|
||||
}
|
||||
|
||||
.vrep-page .product-drawer-close:hover {
|
||||
.asset-library-layer .product-drawer-close:hover {
|
||||
color: var(--text);
|
||||
background: rgba(34, 42, 54, 0.09);
|
||||
}
|
||||
|
||||
.vrep-page .product-drawer-close svg {
|
||||
.asset-library-layer .product-drawer-close svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-grid {
|
||||
.asset-library-grid {
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
@@ -1029,7 +1154,7 @@
|
||||
padding: 22px 24px;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice {
|
||||
.asset-library-choice {
|
||||
position: relative;
|
||||
min-height: 214px;
|
||||
overflow: hidden;
|
||||
@@ -1042,18 +1167,18 @@
|
||||
transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice:hover {
|
||||
.asset-library-choice:hover {
|
||||
transform: translateY(-2px);
|
||||
border-color: rgba(0, 47, 167, 0.32);
|
||||
box-shadow: 0 10px 24px rgba(20, 27, 38, 0.08);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice.selected {
|
||||
.asset-library-choice.selected {
|
||||
border-color: var(--klein);
|
||||
box-shadow: 0 0 0 2px rgba(0, 47, 167, 0.1);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice img {
|
||||
.asset-library-choice img {
|
||||
width: 100%;
|
||||
height: 164px;
|
||||
display: block;
|
||||
@@ -1061,17 +1186,17 @@
|
||||
background: #e9eef8;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice > span:not(.asset-choice-check) {
|
||||
.asset-library-choice > span:not(.asset-choice-check) {
|
||||
display: grid;
|
||||
gap: 3px;
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice strong { font-size: 11px; }
|
||||
.vrep-page .asset-library-choice small { color: var(--muted); font-size: 9px; }
|
||||
.asset-library-choice strong { font-size: 11px; }
|
||||
.asset-library-choice small { color: var(--muted); font-size: 9px; }
|
||||
|
||||
.vrep-page .asset-choice-check {
|
||||
.asset-choice-check {
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
right: 9px;
|
||||
@@ -1084,10 +1209,10 @@
|
||||
background: var(--klein);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-choice.selected .asset-choice-check { display: grid; }
|
||||
.vrep-page .asset-choice-check svg { width: 13px; height: 13px; }
|
||||
.asset-library-choice.selected .asset-choice-check { display: grid; }
|
||||
.asset-choice-check svg { width: 13px; height: 13px; }
|
||||
|
||||
.vrep-page .asset-library-footer {
|
||||
.asset-library-footer {
|
||||
min-height: 82px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1099,7 +1224,7 @@
|
||||
box-shadow: 0 -10px 24px rgba(20, 27, 38, 0.045);
|
||||
}
|
||||
|
||||
.vrep-page .asset-library-empty {
|
||||
.asset-library-empty {
|
||||
grid-column: 1 / -1;
|
||||
padding: 36px 12px;
|
||||
color: var(--muted);
|
||||
@@ -1110,16 +1235,19 @@
|
||||
@media (max-width: 1120px) {
|
||||
.vrep-page .video-flow-grid { grid-template-columns: 1fr; }
|
||||
.vrep-page .product-replace-options { grid-template-columns: 1fr; }
|
||||
.vrep-page .replace-history-card {
|
||||
.vrep-page .replace-history-summary {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.vrep-page .replace-history-open {
|
||||
.vrep-page .replace-history-toggle {
|
||||
justify-self: start;
|
||||
}
|
||||
.vrep-page .asset-library-drawer {
|
||||
.vrep-page .replace-history-compare {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.asset-library-drawer {
|
||||
width: min(650px, 100vw);
|
||||
}
|
||||
.vrep-page .asset-library-grid {
|
||||
.asset-library-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user