Files
dbx-main/app/static/live.css
T
king 2224eb6c22 style(라이브): 방송·호스트 편집 창을 애니메이션으로 표시
창이 나타날 때 0.2초 동안 아래에서 올라오며 커지고 뒤 배경은 서서히 어두워진다.
브라우저의 움직임 줄이기 설정이면 애니메이션 없이 바로 뜬다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 19:14:38 +09:00

135 lines
11 KiB
CSS

/* 라이브 커머스(2026-11-04) — 스케줄표·호스트 설정 */
/* 공용 .erp-page 는 폭 100% + 안쪽 여백이라 그대로면 화면보다 넓어진다. 라이브 커머스는 화면 전체 너비를 쓴다(공용 최대 1550px 해제). */
.erp-page:has(> .lv), .erp-page:has(> .lv-split) { box-sizing: border-box; max-width: none; padding: var(--sp-16, 16px); }
.lv { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lv *, .lv-dlg *, .lv-dlg *::before, .lv-dlg *::after { box-sizing: border-box; }
.lv-dlg [hidden] { display: none !important; }
.lv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-gap { flex: 1 1 auto; }
.lv-month { margin: 0 6px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.lv-note { margin: 0; padding: 10px 14px; border-radius: 8px; background: #eef6ff; color: #0b4a8b; border: 1px solid #cfe3fb; font-size: 13px; }
.lv-table td { vertical-align: middle; overflow-wrap: anywhere; }
.lv-table th { white-space: nowrap; }
.lv-table tr.lv-off td { color: var(--color-midtone-gray, #666); }
.lv-r { text-align: right; }
.lv-table th.lv-r { text-align: right; }
.lv-num { font-variant-numeric: tabular-nums; }
.lv-nowrap { white-space: nowrap; }
.lv-sub { margin: 0; font-size: 12px; color: var(--color-midtone-gray, #666); }
.lv-actions { white-space: nowrap; text-align: right; }
.lv-thumbs { display: flex; flex-wrap: wrap; gap: 4px; }
.lv-thumbs img { display: block; width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-subtle-ash, #e5e5e5); }
/* 공용 .erp-table 은 640px 아래에서 제목 줄을 숨기고 카드로 바뀐다 — 칸 이름을 칸마다 보여 준다 */
@media (max-width: 640px) {
.lv-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 400; color: var(--color-midtone-gray, #666); text-align: left; }
.lv-table td.lv-r { text-align: left; }
}
.lv-views { display: inline-flex; gap: 4px; margin-left: 10px; }
.lv-lang { display: inline-flex; padding: 2px; border: 1px solid var(--color-subtle-ash, #e5e5e5); border-radius: 999px; background: #fff; }
.lv-lang button { min-width: 40px; padding: 4px 10px; border: 0; border-radius: 999px; background: none; font-size: 12px; font-weight: 600; color: #4b5563; cursor: pointer; }
.lv-lang button.is-active { background: #111; color: #fff; }
/* 영문 화면은 받은 화면처럼 대문자 */
.lv[lang="en"] .lv-kpi span, .lv[lang="en"] .lv-card-nums span, .lv[lang="en"] .lv-cal thead .lv-cal-time, .lv[lang="en"] .lv-cal tfoot .lv-cal-time, .lv[lang="en"] .lv-total dt { text-transform: uppercase; }
/* ── 달력 보기 ── */
.lv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.lv-kpi { display: flex; flex-direction: column; gap: 0; padding: 4px 12px; border: 1px solid var(--color-subtle-ash, #e5e5e5); border-radius: 10px; background: #fff; }
.lv-kpi span { font-size: 10px; font-weight: 600; letter-spacing: .04em; color: var(--color-midtone-gray, #666); }
.lv-kpi b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lv-tip { margin: 0; padding: 2px 12px; border: 1px solid var(--color-subtle-ash, #e5e5e5); border-radius: 10px; background: #f6f8fb; font-size: 11.5px; color: #374151; }
/* 달력 보기 = 세로 2분할: 왼쪽 표 + 오른쪽 위에 붙는 달력(공용 erp-datepop 서식) */
.lv-split { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; }
.lv-split > .lv { gap: 6px; }
/* 풀HD 브라우저(세로 약 880~940px)에서 페이지 세로 스크롤 없이 한 화면 — 표 상자가 남은 높이를 쓰고, 더 좁은 창이나 카드가 겹친 칸은 표 안에서 스크롤 */
@media (min-width: 1101px) {
.erp-page:has(> .lv-split) { overflow: hidden; padding: 10px 12px; }
.lv-split { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.lv-split > .lv { min-height: 0; }
.lv-split .lv-cal-wrap { flex: 1 1 auto; min-height: 0; max-height: none; }
.lv-split .lv-cal { height: 100%; }
}
@media (max-width: 1100px) {
.lv-split { grid-template-columns: minmax(0, 1fr); }
.lv-side-cal { order: -1; max-width: 340px; }
}
/* 오른쪽 달력 = 공용 달력의 80% */
.lv-side-cal { align-self: start; box-sizing: border-box; padding: 10px; border: 1px solid #cfd4dc; border-radius: 10px; background: #fff; font-size: 10.4px; }
.lv-side-cal .pj-dp-nav { margin: 0 0 4px; }
.lv-side-cal .pj-dp-title { font-size: 11.2px; }
.lv-side-cal .pj-dp-navbtn { width: 22px; height: 22px; }
.lv-side-cal .pj-dp-navbtn .material-symbols-outlined { font-size: 18px; }
.lv-side-cal .pj-dp-wd { padding: 3px 0 4px; font-size: 9.6px; }
.lv-side-cal .pj-dp-day { height: 27px; font-size: 10.8px; }
.lv-side-cal .pj-dp-day::before { width: 24px; height: 24px; top: 13.5px; }
.lv-side-cal .pj-dp-num { height: 27px; }
.lv-side-cal .pj-dp-day.has-hol { height: 37px; }
.lv-side-cal .pj-dp-hol { margin-top: -2px; font-size: 8px; }
.lv-cal-wrap { overflow: auto; max-height: calc(100vh - 150px); border: 1px solid #cfd4dc; border-radius: 10px; background: #fff; }
.lv-cal { border-collapse: separate; border-spacing: 0; min-width: max-content; }
.lv-cal th, .lv-cal td { border-right: 1px solid #e3e6eb; border-bottom: 1px solid #e3e6eb; }
.lv-cal thead th { position: sticky; top: 0; z-index: 2; width: 182px; min-width: 182px; height: 1px; padding: 3px 6px; background: #e4e8ee; text-align: center; font-weight: 700; }
.lv-cal thead th.is-weekend { background: #f5efd3; color: #7a5c00; }
.lv-cal thead th.is-today { box-shadow: inset 0 -3px 0 #111; }
.lv-cal-weekday { font-size: 11.5px; letter-spacing: .03em; }
.lv-cal-count { display: inline-block; min-width: 15px; padding: 0 3px; margin-left: 2px; border: 1px solid #cfd4dc; border-radius: 4px; background: #fff; color: #374151; font-size: 9.5px; font-weight: 600; }
.lv-cal-date { margin-top: 0; font-size: 9.5px; font-weight: 600; color: #6b7280; }
.lv-cal .lv-cal-time { position: sticky; left: 0; z-index: 1; width: 112px; min-width: 112px; padding: 2px 6px; background: #f6f7f9; text-align: center; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.lv-cal thead .lv-cal-time { z-index: 3; background: #d9dee6; }
.lv-cal .lv-cal-time small { display: block; margin-top: 0; font-size: 9px; font-weight: 600; color: #6b7280; }
.lv-cell { padding: 2px; vertical-align: top; background: #fff; }
.lv-cell.is-weekend { background: #fffdf3; }
.lv-cell.is-drop { background: #e8f1ff; box-shadow: inset 0 0 0 2px #3b82f6; }
.lv-cell-add { display: block; width: 100%; height: 100%; min-height: 52px; border: 1px dashed #d8dce3; border-radius: 6px; background: transparent; color: #b0b6c0; font-size: 14px; cursor: pointer; }
.lv-cell-add:hover, .lv-cell-add:focus-visible { border-color: #6b7280; color: #374151; }
.lv-card + .lv-card { margin-top: 2px; }
.lv-card { border: 1px solid #1f2937; border-radius: 6px; background: #fff; overflow: hidden; }
.lv-card-head { display: flex; align-items: center; gap: 3px; padding: 1px 4px; border-bottom: 1px solid #1f2937; cursor: grab; }
.lv-card-head:active { cursor: grabbing; }
.lv-card-name small { display: block; overflow: hidden; text-overflow: ellipsis; text-transform: none; font-size: 9px; line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.lv-card-grip { font-size: 10px; color: #374151; }
.lv-card-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .03em; color: #111; }
.lv-card-edit { padding: 0 2px; border: 0; background: none; color: #374151; font-size: 11px; cursor: pointer; }
.lv-card-nums { display: grid; grid-template-columns: 1fr 1fr; }
.lv-card-nums div { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 1px 2px; white-space: nowrap; }
.lv-card-nums div + div { border-left: 1px solid #e3e6eb; }
.lv-card-nums span { font-size: 9px; font-weight: 600; color: #4b5563; }
.lv-card-nums b { font-size: 11px; font-variant-numeric: tabular-nums; }
.lv-card-foot { display: flex; justify-content: space-between; gap: 4px; padding: 0 4px; border-top: 1px solid #e3e6eb; background: #f6f7f9; font-size: 9px; font-weight: 600; color: #4b5563; }
.lv-card-foot b { color: #8a2c0d; }
.lv-card-foot a { color: #1d4f91; }
.lv-cal tfoot th, .lv-cal tfoot td { position: sticky; bottom: 0; z-index: 2; height: 1px; padding: 3px 6px; background: #101a33; color: #fff; border-color: #2a3550; }
.lv-cal tfoot .lv-cal-time { z-index: 3; background: #101a33; font-size: 11px; }
.lv-total { display: flex; flex-direction: column; gap: 0; margin: 0; font-size: 9.5px; line-height: 1.25; font-weight: 600; }
.lv-total div { display: flex; justify-content: space-between; gap: 6px; }
.lv-total dt { color: #aab3c5; }
.lv-total dd { margin: 0; font-variant-numeric: tabular-nums; color: #fbbf72; white-space: nowrap; }
.lv-total dd.is-sales { color: #6ee7a8; }
.lv-total-edit { padding: 0 2px; border: 0; background: none; color: #cbd5e1; font-size: 9.5px; line-height: 1; cursor: pointer; }
.lv-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--color-subtle-ash, #e5e5e5); border-radius: 12px; }
.lv-dlg::backdrop { background: rgba(0, 0, 0, .35); }
/* 창이 나타날 때 — 살짝 아래에서 올라오며 커지고, 뒤 배경은 서서히 어두워짐. 움직임 줄이기 설정이면 바로 뜬다 */
@media (prefers-reduced-motion: no-preference) {
.lv-dlg[open] { animation: lv-dlg-in .2s cubic-bezier(.2, .8, .2, 1); }
.lv-dlg[open]::backdrop { animation: lv-dlg-fade .2s ease-out; }
}
@keyframes lv-dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes lv-dlg-fade { from { opacity: 0; } to { opacity: 1; } }
.lv-dlg form { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.lv-dlg h3 { margin: 0; font-size: 17px; font-weight: 600; }
.lv-field { display: flex; flex: 1 1 0; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; font-weight: 500; }
.lv-field .erp-input, .lv-field .erp-select { width: 100%; min-width: 0; font-weight: 400; }
.lv-field textarea { resize: vertical; }
.lv-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lv-row .lv-field { flex-basis: 140px; }
.lv-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lv-saved { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.lv-saved li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-saved a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-msg { margin: 0; padding: 9px 12px; border-radius: 8px; background: #fbe9e6; color: #a1261b; border: 1px solid #efc6bf; font-size: 13px; }
.lv-foot { display: flex; justify-content: flex-end; gap: 8px; }