feat(web): add schedule editor screen
This commit is contained in:
@@ -984,6 +984,330 @@
|
||||
font-size: var(--text-xs, 12px);
|
||||
}
|
||||
|
||||
.ctv-schedule-screen {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
gap: var(--space-6, 12px);
|
||||
}
|
||||
|
||||
.ctv-schedule-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-6, 12px);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-md, 7px);
|
||||
background: var(--surface-card);
|
||||
padding: var(--space-6, 12px) var(--space-8, 20px);
|
||||
}
|
||||
|
||||
.ctv-schedule-header-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: var(--radius-sm, 5px);
|
||||
background: var(--ctv-accent-soft);
|
||||
color: var(--ctv-accent);
|
||||
}
|
||||
|
||||
.ctv-schedule-header > div {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ctv-schedule-header h2,
|
||||
.ctv-schedule-inspector-head strong {
|
||||
margin: 0;
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-md, 15px);
|
||||
font-weight: var(--weight-semibold, 600);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.ctv-schedule-header p,
|
||||
.ctv-schedule-inspector-head span {
|
||||
margin: var(--space-2, 4px) 0 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-xs, 12px);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.ctv-schedule-header code,
|
||||
.ctv-schedule-block-duration,
|
||||
.ctv-schedule-rail code,
|
||||
.ctv-schedule-fill-chip code {
|
||||
font-family: var(--font-mono, ui-monospace, monospace);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.ctv-schedule-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(420px, 1fr) minmax(360px, 460px);
|
||||
gap: var(--space-8, 20px);
|
||||
min-height: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.ctv-schedule-lineup-panel,
|
||||
.ctv-schedule-inspector {
|
||||
min-height: 0;
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-md, 7px);
|
||||
background: var(--surface-card);
|
||||
}
|
||||
|
||||
.ctv-schedule-lineup-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ctv-schedule-panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-5, 10px);
|
||||
border-bottom: 1px solid var(--border-hairline);
|
||||
padding: var(--space-5, 10px) var(--space-7, 16px);
|
||||
}
|
||||
|
||||
.ctv-schedule-panel-head > span {
|
||||
color: var(--text-disabled);
|
||||
font-size: var(--text-2xs, 11px);
|
||||
font-weight: var(--weight-semibold, 600);
|
||||
line-height: 1;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.ctv-schedule-lineup {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
padding: var(--space-6, 12px);
|
||||
}
|
||||
|
||||
.ctv-schedule-lineup-row {
|
||||
display: grid;
|
||||
grid-template-columns: 58px minmax(0, 1fr);
|
||||
gap: var(--space-5, 10px);
|
||||
}
|
||||
|
||||
.ctv-schedule-rail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--space-2, 4px);
|
||||
padding-top: var(--space-7, 16px);
|
||||
color: var(--text-faint);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.ctv-schedule-rail-dot,
|
||||
.ctv-schedule-rail-dot-fixed {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border: 2px solid var(--border-control);
|
||||
border-radius: var(--radius-pill, 999px);
|
||||
}
|
||||
|
||||
.ctv-schedule-rail-dot-fixed {
|
||||
border-color: var(--ctv-accent);
|
||||
background: var(--ctv-accent);
|
||||
}
|
||||
|
||||
.ctv-schedule-block {
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: var(--space-4, 8px);
|
||||
margin-bottom: var(--space-6, 12px);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-md, 7px);
|
||||
background: var(--ctv-surface-1);
|
||||
padding: var(--space-5, 10px);
|
||||
transition:
|
||||
background var(--dur-fast) var(--ease-standard),
|
||||
border-color var(--dur-fast) var(--ease-standard),
|
||||
opacity var(--dur-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-active {
|
||||
border-color: var(--action-primary);
|
||||
background: var(--ctv-accent-soft);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-dragging {
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.ctv-schedule-block-over {
|
||||
box-shadow: inset 0 2px 0 var(--action-primary);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-main {
|
||||
display: grid;
|
||||
grid-template-columns: 16px 38px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: var(--space-5, 10px);
|
||||
width: 100%;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ctv-schedule-block-main > svg {
|
||||
color: var(--text-faint);
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.ctv-schedule-block-title {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: var(--space-2, 4px);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-title strong {
|
||||
overflow: hidden;
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-md, 15px);
|
||||
font-weight: var(--weight-semibold, 600);
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ctv-schedule-block-title small,
|
||||
.ctv-schedule-block-meta {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-xs, 12px);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.ctv-schedule-fill-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3, 6px);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-sm, 5px);
|
||||
background: var(--ctv-bg-sunken);
|
||||
color: var(--text-primary);
|
||||
padding: var(--space-3, 6px) var(--space-4, 8px);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ctv-schedule-fill-chip svg,
|
||||
.ctv-schedule-block-meta svg,
|
||||
.ctv-schedule-note svg {
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-4, 8px);
|
||||
flex-wrap: wrap;
|
||||
padding-left: 64px;
|
||||
}
|
||||
|
||||
.ctv-schedule-block-meta > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2, 4px);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-duration {
|
||||
margin-left: auto;
|
||||
color: var(--text-disabled);
|
||||
font-size: var(--text-2xs, 11px);
|
||||
}
|
||||
|
||||
.ctv-schedule-block-actions {
|
||||
position: absolute;
|
||||
right: var(--space-3, 6px);
|
||||
bottom: var(--space-3, 6px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.ctv-schedule-up-icon {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.ctv-schedule-empty {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 180px;
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm, 13px);
|
||||
}
|
||||
|
||||
.ctv-schedule-inspector {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ctv-schedule-inspector-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-5, 10px);
|
||||
border-bottom: 1px solid var(--border-hairline);
|
||||
padding: var(--space-7, 16px);
|
||||
}
|
||||
|
||||
.ctv-schedule-inspector-head > div {
|
||||
display: grid;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
gap: var(--space-2, 4px);
|
||||
}
|
||||
|
||||
.ctv-schedule-inspector-badges {
|
||||
display: flex;
|
||||
gap: var(--space-3, 6px);
|
||||
flex-wrap: wrap;
|
||||
padding: var(--space-5, 10px) var(--space-7, 16px);
|
||||
}
|
||||
|
||||
.ctv-schedule-inspector .ctv-tabs {
|
||||
padding: 0 var(--space-7, 16px);
|
||||
}
|
||||
|
||||
.ctv-schedule-inspector-body {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
gap: var(--space-6, 12px);
|
||||
overflow: auto;
|
||||
padding: var(--space-7, 16px);
|
||||
}
|
||||
|
||||
.ctv-schedule-form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-6, 12px);
|
||||
}
|
||||
|
||||
.ctv-schedule-note {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-5, 10px);
|
||||
border: 1px solid var(--border-hairline);
|
||||
border-radius: var(--radius-sm, 5px);
|
||||
background: var(--ctv-bg-sunken);
|
||||
color: var(--text-secondary);
|
||||
padding: var(--space-6, 12px);
|
||||
font-size: var(--text-xs, 12px);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.ctv-app-shell {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -1045,4 +1369,23 @@
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.ctv-schedule-header {
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ctv-schedule-grid,
|
||||
.ctv-schedule-form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.ctv-schedule-block-main {
|
||||
grid-template-columns: 16px 38px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.ctv-schedule-fill-chip {
|
||||
grid-column: 2 / -1;
|
||||
justify-self: start;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user