130 lines
3.1 KiB
TypeScript
130 lines
3.1 KiB
TypeScript
export const EVENT_COCKPIT_CSS = `
|
|
.cli-details summary { list-style: none; }
|
|
.cli-details summary::-webkit-details-marker { display: none; }
|
|
|
|
.view-mode-btn {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: var(--radius-sm);
|
|
border: none;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
opacity: 0.75;
|
|
}
|
|
.view-mode-btn.active {
|
|
background: var(--primary);
|
|
color: #ffffff;
|
|
font-weight: 700;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
|
border-radius: var(--radius-sm);
|
|
opacity: 1;
|
|
}
|
|
|
|
.grid-view {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 1rem;
|
|
}
|
|
.grid-view .event-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
.grid-view .event-card-compact-row-2 { display: none; }
|
|
|
|
.compact-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
.compact-view .event-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 0.75rem 1rem;
|
|
box-sizing: border-box;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-height: 70px;
|
|
}
|
|
.compact-view .event-card > div { margin-bottom: 0 !important; }
|
|
.compact-view .event-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
width: 100%;
|
|
margin-bottom: 0.5rem !important;
|
|
}
|
|
.compact-view .event-card-header > div {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
.compact-view .event-card-header h3 {
|
|
margin: 0 !important;
|
|
font-size: 1rem !important;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
max-width: 280px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: inline-block;
|
|
}
|
|
.compact-view .event-card-header > .status-badge { margin-left: auto; }
|
|
|
|
.compact-view .event-card-compact-row-2 {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
.compact-view .compact-pills {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
.compact-view .compact-pill {
|
|
padding: 2px 6px;
|
|
font-size: 0.75rem;
|
|
background: var(--surface-muted);
|
|
border: 1px solid var(--border-subtle);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
color: var(--text-secondary);
|
|
font-family: monospace;
|
|
}
|
|
.compact-view .compact-pill:hover {
|
|
border-color: var(--primary);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.compact-view .compact-actions-right {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.compact-view .event-card-snippets,
|
|
.compact-view .event-card-actions {
|
|
display: none !important;
|
|
}
|
|
|
|
.countdown-pill {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
.countdown-pill.status-green { color: var(--success); }
|
|
.countdown-pill.status-amber { color: var(--warning); }
|
|
.countdown-pill.status-red { color: var(--danger-text); }
|
|
`;
|