Files
douyi_guaji_main/webui/css/panels.css
T

436 lines
11 KiB
CSS

/* Feature panel rules extracted from styles.css */`r`n`r`n.preview {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: var(--shot-height-desktop);
min-height: 0;
max-height: none;
width: 100%;
aspect-ratio: 9 / 16;
margin-top: 14px;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--preview-bg);
transition: border-color var(--motion), box-shadow var(--motion);
isolation: isolate;
}
.preview:hover {
border-color: var(--primary-border);
box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 20%, transparent), 0 14px 36px -12px color-mix(in oklab, var(--primary) 25%, transparent);
}
/* Viewfinder corner brackets */
.previewBracket {
position: absolute;
width: 18px;
height: 18px;
z-index: 3;
pointer-events: none;
border: 2px solid var(--primary);
filter: drop-shadow(0 0 6px color-mix(in oklab, var(--primary) 50%, transparent));
transition: width var(--motion), height var(--motion), border-color var(--motion-fast), filter var(--motion-fast);
}
.preview:hover .previewBracket {
width: 22px;
height: 22px;
filter: drop-shadow(0 0 10px color-mix(in oklab, var(--primary) 75%, transparent));
}
.previewBracketTL { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.previewBracketTR { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.previewBracketBL { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.previewBracketBR { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
/* REC tag (visible only when body.is-running) */
.previewRec {
position: absolute;
top: 12px;
right: 36px;
z-index: 3;
display: none;
align-items: center;
gap: 6px;
height: 22px;
padding: 0 8px 0 7px;
border-radius: 99px;
background: color-mix(in oklab, var(--danger) 22%, rgba(0, 0, 0, 0.65));
color: #fff;
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.12em;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
}
body.is-running .previewRec {
display: inline-flex;
}
.previewRecDot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--danger);
box-shadow: 0 0 8px var(--danger);
animation: recBlink 1s ease-in-out infinite;
}
@keyframes recBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
.preview.isShotEmpty {
border-style: dashed;
background:
radial-gradient(circle at 30% 20%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 55%),
radial-gradient(circle at 70% 80%, color-mix(in oklab, var(--secondary) 14%, transparent), transparent 55%),
repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in oklab, var(--border) 50%, transparent) 12px 13px),
var(--surface-soft);
}
.preview.isShotEmpty::before {
position: absolute;
inset: 0;
content: "";
pointer-events: none;
background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--primary) 22%, transparent), transparent);
background-size: 100% 200%;
animation: previewScan 2.4s ease-in-out infinite;
mix-blend-mode: plus-lighter;
}
@keyframes previewScan {
0% {
background-position: 0 -100%;
opacity: 0;
}
40% {
opacity: 1;
}
100% {
background-position: 0 100%;
opacity: 0;
}
}
.preview img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
opacity: 0;
transform: scale(0.985);
color: transparent;
font-size: 0;
transition: opacity 280ms ease, transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.preview img[src*="screenshot.png"][data-loading="false"] {
opacity: 1;
transform: scale(1);
}
.previewTs {
position: absolute;
left: 8px;
bottom: 8px;
z-index: 2;
padding: 3px 7px;
border-radius: 99px;
background: color-mix(in oklab, var(--surface) 70%, transparent);
border: 1px solid var(--border);
color: var(--muted);
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 12px;
font-variant-numeric: tabular-nums;
letter-spacing: 0.02em;
pointer-events: none;
backdrop-filter: blur(8px);
}
.previewFullscreen {
position: absolute;
right: 8px;
top: 8px;
z-index: 2;
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: color-mix(in oklab, var(--surface) 70%, transparent);
color: var(--muted);
cursor: pointer;
opacity: 0;
backdrop-filter: blur(8px);
transition: opacity var(--motion-fast), color var(--motion-fast),
background var(--motion-fast), border-color var(--motion-fast);
}
.preview:hover .previewFullscreen,
.previewFullscreen:focus-visible {
opacity: 1;
}
.previewFullscreen:hover {
color: var(--text);
border-color: var(--hover-border);
background: var(--surface);
}
.preview.isShotEmpty img {
display: none;
}
#liveShotStatus {
align-self: flex-start;
margin-top: 10px;
}
.reservationsContent {
display: flex;
flex-direction: column;
gap: 8px;
min-width: 0;
margin-top: 12px;
}
.reservationsInfo {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 6px 14px;
min-width: 0;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background: var(--surface-soft);
color: var(--text);
font-size: var(--text-sm);
line-height: var(--leading-snug);
font-variant-numeric: tabular-nums;
}
.reservationsInfo > div {
min-width: 0;
overflow-wrap: anywhere;
}
.reservationsList {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 10px;
min-width: 0;
max-height: var(--queue-height-desktop);
overflow: auto;
padding-right: 2px;
}
.reservationItem {
position: relative;
min-width: 0;
overflow: hidden;
border: 1px solid var(--border);
border-radius: var(--radius-md);
background:
radial-gradient(at 100% 0%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 50%),
var(--surface);
transition: border-color var(--motion-fast), box-shadow var(--motion-fast), transform var(--motion-fast);
}
.reservationItem::before {
position: absolute;
left: 0;
top: 10px;
bottom: 10px;
width: 3px;
content: "";
border-radius: 0 3px 3px 0;
background: linear-gradient(180deg, var(--primary), var(--secondary));
opacity: 0;
transition: opacity var(--motion-fast);
}
.reservationItem:hover {
border-color: var(--primary-border);
transform: translateY(-1px);
box-shadow: var(--shadow-soft), 0 0 0 1px color-mix(in oklab, var(--primary) 22%, transparent), 0 12px 28px -10px color-mix(in oklab, var(--primary) 28%, transparent);
}
.reservationItem:hover::before {
opacity: 1;
}
.reservationItem.isImminent::before,
.reservationItem.isDue::before {
display: none;
}
.reservationItem.isImminent {
border-color: var(--warning);
background:
radial-gradient(at 100% 0%, color-mix(in oklab, var(--warning) 18%, transparent), transparent 50%),
color-mix(in oklab, var(--warning-soft) 60%, var(--surface));
animation: imminentPulse 1.6s ease-in-out infinite;
}
.reservationItem.isImminent .reservationValue {
border-color: var(--warning);
background: var(--warning);
color: var(--on-primary);
}
.reservationItem.isDue {
border-color: var(--danger);
background:
radial-gradient(at 100% 0%, color-mix(in oklab, var(--danger) 22%, transparent), transparent 50%),
color-mix(in oklab, var(--danger-soft) 50%, var(--surface));
}
.reservationItem.isDue .reservationValue {
border-color: var(--danger);
background: var(--danger);
color: var(--on-primary);
}
@keyframes imminentPulse {
0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--warning) 45%, transparent); }
50% { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) {
.reservationItem.isImminent {
animation: none;
}
}
.reservationHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-width: 0;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, var(--surface-soft), transparent);
}
.reservationHeader.isClickable {
cursor: pointer;
}
.reservationIndex {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--text-strong);
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
font-size: var(--text-sm);
font-weight: 700;
letter-spacing: 0.04em;
}
.reservationIndex::before {
display: inline-block;
width: 7px;
height: 7px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #fef3c7, var(--primary));
box-shadow: 0 0 8px var(--primary);
content: "";
}
.reservationValue {
max-width: 68%;
padding: 3px 10px;
overflow: hidden;
border: 1px solid var(--warning-border);
border-radius: 99px;
color: var(--warning);
background: var(--warning-soft);
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
text-overflow: ellipsis;
white-space: nowrap;
}
.reservationBody {
display: grid;
gap: 6px;
min-width: 0;
padding: 10px 12px;
color: var(--text);
font-size: var(--text-sm);
line-height: var(--leading-snug);
font-variant-numeric: tabular-nums;
}
.reservationBody > div {
min-width: 0;
overflow-wrap: anywhere;
}
.reservationBody.isCollapsed,
.reservationsList.isListCollapsed {
display: none;
}
details {
min-width: 0;
}
summary {
cursor: pointer;
list-style: none;
}
summary::-webkit-details-marker {
display: none;
}
summary.sectionTitle {
justify-content: flex-start;
gap: 10px;
}
summary.sectionTitle::before {
width: 14px;
height: 14px;
flex: 0 0 14px;
display: inline-block;
content: "";
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") no-repeat center / contain;
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>") no-repeat center / contain;
filter: drop-shadow(0 0 4px color-mix(in oklab, var(--primary) 50%, transparent));
opacity: 0.85;
transition: transform var(--motion), opacity var(--motion-fast), filter var(--motion-fast);
}
details[open] > summary.sectionTitle::before {
transform: rotate(90deg);
opacity: 1;
filter: drop-shadow(0 0 6px color-mix(in oklab, var(--primary) 70%, transparent));
}
.summaryActions {
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 6px;
flex-wrap: wrap;
margin-left: auto;
font-weight: 500;
}