Replace remaining hardcoded font-size, padding, and border-radius values with design token variables in layout.css, timeline.css, live.html, and setup.html. Add timeline explain button and selected-event highlight styles. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1268 lines
28 KiB
CSS
1268 lines
28 KiB
CSS
/* Timeline View Styles */
|
|
|
|
/* Timeline Container */
|
|
#timeline-view {
|
|
position: fixed;
|
|
top: 44px; /* Below mode toggle bar */
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: none; /* Hidden by default, shown when timeline mode is active */
|
|
flex-direction: column;
|
|
background: var(--bg-tertiary, var(--bg-card));
|
|
z-index: 50;
|
|
}
|
|
|
|
#timeline-view.visible,
|
|
#timeline-view[style*="flex"] {
|
|
display: flex !important;
|
|
}
|
|
|
|
/* Header */
|
|
.timeline-header {
|
|
padding: 12px 16px;
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border-bottom: 1px solid var(--border-color, var(--bg-hover));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.timeline-title {
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
color: var(--text-primary, var(--slate-11));
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.timeline-title svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
/* Filter Toggle Button */
|
|
.timeline-filter-toggle {
|
|
background: transparent;
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.timeline-filter-toggle:hover {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
color: var(--text-primary, var(--slate-11));
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-filter-toggle svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Filter Bar */
|
|
.timeline-filter-bar {
|
|
padding: 12px 16px;
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border-bottom: 1px solid var(--border-color, var(--bg-hover));
|
|
display: flex;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
transition: max-height 0.3s ease;
|
|
}
|
|
|
|
.timeline-filter-bar.collapsed {
|
|
max-height: 0;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
border-bottom: none;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.timeline-filter-section {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.timeline-filter-section-title {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
/* Category Checkboxes */
|
|
.timeline-category-checkboxes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.timeline-category-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 10px;
|
|
background: var(--bg-primary, var(--bg-page));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: var(--text-xs);
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
}
|
|
|
|
.timeline-category-checkbox:hover {
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
background: var(--bg-tertiary, var(--bg-card));
|
|
}
|
|
|
|
.timeline-category-checkbox input[type="checkbox"] {
|
|
width: 14px;
|
|
height: 14px;
|
|
accent-color: var(--accent-color, var(--blue-9));
|
|
cursor: pointer;
|
|
}
|
|
|
|
.timeline-category-checkbox:has(input:checked) {
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
background: var(--blue-muted);
|
|
color: var(--text-primary, var(--slate-11));
|
|
}
|
|
|
|
.timeline-category-checkbox input[type="checkbox"]:disabled {
|
|
accent-color: var(--text-muted, var(--text-muted));
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.timeline-category-label {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.timeline-category-icon {
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
/* Filter Controls */
|
|
.timeline-filter-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.timeline-filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
flex: 1;
|
|
}
|
|
|
|
.timeline-filter-select {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
color: var(--text-primary, var(--slate-11));
|
|
padding: 6px 10px;
|
|
border-radius: var(--radius-control);
|
|
font-size: 13px;
|
|
min-width: 100px;
|
|
cursor: pointer;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.timeline-filter-select:hover {
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-filter-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
box-shadow: 0 0 0 2px var(--blue-border);
|
|
}
|
|
|
|
.timeline-search {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
color: var(--text-primary, var(--slate-11));
|
|
padding: 6px 10px 6px 32px;
|
|
border-radius: var(--radius-control);
|
|
font-size: 13px;
|
|
min-width: 200px;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: 8px center;
|
|
transition: border-color 0.2s;
|
|
}
|
|
|
|
.timeline-search:hover {
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-search:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
box-shadow: 0 0 0 2px var(--blue-border);
|
|
}
|
|
|
|
.timeline-search::placeholder {
|
|
color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
/* Timeline Events List */
|
|
.timeline-events {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.timeline-events::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.timeline-events::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
}
|
|
|
|
.timeline-events::-webkit-scrollbar-thumb {
|
|
background: var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
}
|
|
|
|
.timeline-events::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
/* Timeline Event Card */
|
|
.timeline-event {
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-card);
|
|
padding: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.timeline-event::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--event-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-event:hover {
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
transform: translateX(2px);
|
|
box-shadow: 0 2px 8px var(--shadow);
|
|
}
|
|
|
|
.timeline-event.severity-critical {
|
|
border-color: var(--color-critical, var(--alert));
|
|
}
|
|
|
|
.timeline-event.severity-critical::before {
|
|
background: var(--color-critical, var(--alert));
|
|
}
|
|
|
|
.timeline-event.severity-warning {
|
|
border-color: var(--color-warning, var(--warn));
|
|
}
|
|
|
|
.timeline-event.severity-warning::before {
|
|
background: var(--color-warning, var(--warn));
|
|
}
|
|
|
|
/* Event Header */
|
|
.timeline-event-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.timeline-event-icon {
|
|
flex-shrink: 0;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--radius-control);
|
|
background: var(--event-color-bg, var(--blue-muted));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--event-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-event-icon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.timeline-event-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.timeline-event-title {
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--text-primary, var(--slate-11));
|
|
margin: 0 0 2px 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.timeline-event-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
font-size: var(--text-xs);
|
|
color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
.timeline-event-time {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.timeline-event-zone {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-event-person {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
/* Event Details */
|
|
.timeline-event-details {
|
|
font-size: 13px;
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
margin-top: 6px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Event Actions */
|
|
.timeline-event-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 8px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border-color, var(--bg-hover));
|
|
}
|
|
|
|
.timeline-feedback-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 11px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.timeline-feedback-btn:hover {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
color: var(--text-primary, var(--slate-11));
|
|
border-color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
.timeline-feedback-btn.positive:hover {
|
|
color: var(--color-success, var(--ok));
|
|
border-color: var(--color-success, var(--ok));
|
|
}
|
|
|
|
.timeline-feedback-btn.negative:hover {
|
|
color: var(--color-critical, var(--alert));
|
|
border-color: var(--color-critical, var(--alert));
|
|
}
|
|
|
|
.timeline-feedback-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.timeline-feedback-btn.active {
|
|
background: var(--event-color-bg, var(--blue-muted));
|
|
border-color: var(--event-color, var(--blue-9));
|
|
color: var(--event-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-feedback-btn.active.positive {
|
|
background: var(--ok-bg);
|
|
border-color: var(--color-success, var(--ok));
|
|
color: var(--color-success, var(--ok));
|
|
}
|
|
|
|
.timeline-feedback-btn.active.negative {
|
|
background: var(--alert-bg);
|
|
border-color: var(--color-critical, var(--alert));
|
|
color: var(--color-critical, var(--alert));
|
|
}
|
|
|
|
.timeline-explain-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 11px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.timeline-explain-btn:hover {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
border-color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
.timeline-seek-btn {
|
|
margin-left: auto;
|
|
background: transparent;
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: 11px;
|
|
color: var(--accent-color, var(--blue-9));
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.timeline-seek-btn:hover {
|
|
background: var(--blue-muted);
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.timeline-seek-btn svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Event Type Colors */
|
|
.timeline-event[data-type="zone_entry"] {
|
|
--event-color: var(--ok);
|
|
--event-color-bg: var(--ok-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="zone_exit"] {
|
|
--event-color: var(--alert);
|
|
--event-color-bg: var(--alert-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="ZoneTransition"] {
|
|
--event-color: var(--warn);
|
|
--event-color-bg: var(--warn-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="portal_crossing"] {
|
|
--event-color: var(--blue-9);
|
|
--event-color-bg: var(--blue-muted);
|
|
}
|
|
|
|
.timeline-event[data-type="anomaly"] {
|
|
--event-color: var(--alert);
|
|
--event-color-bg: var(--alert-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="AnomalyDetected"] {
|
|
--event-color: var(--alert);
|
|
--event-color-bg: var(--alert-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="anomaly_detected"] {
|
|
--event-color: var(--alert);
|
|
--event-color-bg: var(--alert-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="FallDetected"] {
|
|
--event-color: var(--alert);
|
|
--event-color-bg: var(--alert-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="security_alert"] {
|
|
--event-color: var(--warn);
|
|
--event-color-bg: var(--warn-bg);
|
|
}
|
|
|
|
.timeline-event[data-type="learning_milestone"] {
|
|
--event-color: var(--blue-10);
|
|
--event-color-bg: var(--blue-muted);
|
|
}
|
|
|
|
.timeline-event[data-type="system_event"] {
|
|
--event-color: var(--slate-9);
|
|
--event-color-bg: var(--bg-active);
|
|
}
|
|
|
|
.timeline-event[data-type="sleep_session_end"] {
|
|
--event-color: var(--blue-10);
|
|
--event-color-bg: var(--blue-muted);
|
|
}
|
|
|
|
/* Loading States */
|
|
.timeline-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
font-size: var(--text-sm);
|
|
gap: 8px;
|
|
}
|
|
|
|
.timeline-loading-spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid var(--border-color, var(--bg-hover));
|
|
border-top-color: var(--accent-color, var(--blue-9));
|
|
border-radius: 50%;
|
|
animation: timeline-spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes timeline-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Empty State */
|
|
.timeline-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 48px 24px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
text-align: center;
|
|
}
|
|
|
|
.timeline-empty svg {
|
|
width: 48px;
|
|
height: 48px;
|
|
margin-bottom: 16px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.timeline-empty h3 {
|
|
font-size: var(--text-base);
|
|
margin: 0 0 8px 0;
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
}
|
|
|
|
.timeline-empty p {
|
|
font-size: 13px;
|
|
margin: 0;
|
|
max-width: 300px;
|
|
}
|
|
|
|
/* Load More Button */
|
|
.timeline-load-more {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.timeline-load-more-btn {
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
padding: 8px 16px;
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.timeline-load-more-btn:hover {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
color: var(--text-primary, var(--slate-11));
|
|
}
|
|
|
|
.timeline-load-more-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Event Count Badge */
|
|
.timeline-count {
|
|
background: var(--accent-color, var(--blue-9));
|
|
color: var(--text-on-accent);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
padding: 2px 6px;
|
|
border-radius: var(--radius-card);
|
|
margin-left: 8px;
|
|
}
|
|
|
|
/* New Event Animation */
|
|
.timeline-event.new-event {
|
|
animation: timeline-slide-in 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes timeline-slide-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Live Indicator */
|
|
.timeline-live-indicator {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: var(--text-xs);
|
|
color: var(--color-success, var(--ok));
|
|
padding: 4px 8px;
|
|
background: var(--ok-bg);
|
|
border-radius: var(--radius-control);
|
|
}
|
|
|
|
.timeline-live-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--color-success, var(--ok));
|
|
border-radius: 50%;
|
|
animation: timeline-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes timeline-pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.4;
|
|
}
|
|
}
|
|
|
|
/* Feedback dismissed state */
|
|
.timeline-event.feedback-dismissed {
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Selected Event (tap-to-jump highlight) */
|
|
.timeline-event.timeline-event-selected {
|
|
background: color-mix(in srgb, var(--blue-9) 12%, transparent);
|
|
border-color: var(--blue-9) !important;
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue-9) 25%, transparent),
|
|
0 2px 12px color-mix(in srgb, var(--blue-9) 15%, transparent);
|
|
}
|
|
|
|
.timeline-event.timeline-event-selected::before {
|
|
background: var(--blue-9);
|
|
width: 4px;
|
|
}
|
|
|
|
.timeline-event.timeline-event-selected:hover {
|
|
background: color-mix(in srgb, var(--blue-9) 18%, transparent);
|
|
}
|
|
|
|
/* Now Replaying Chip (in full-page timeline header) */
|
|
#timeline-now-replaying {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 2px 10px;
|
|
margin-left: 8px;
|
|
background: color-mix(in srgb, var(--blue-9) 20%, transparent);
|
|
color: var(--blue-11);
|
|
border-radius: 9999px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
white-space: nowrap;
|
|
letter-spacing: 0.02em;
|
|
animation: now-replaying-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
.now-replaying-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
background: var(--blue-9);
|
|
border-radius: 50%;
|
|
animation: timeline-pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
/* Secondary system events (expert mode - greyed out) */
|
|
.timeline-event.secondary {
|
|
opacity: 0.6;
|
|
font-size: 0.9em;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.timeline-event.secondary .timeline-event-icon {
|
|
width: 24px;
|
|
height: 24px;
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.timeline-event.secondary .timeline-event-title {
|
|
font-size: 13px;
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
}
|
|
|
|
.timeline-event.secondary .timeline-event-meta {
|
|
font-size: 11px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
.timeline-event.secondary:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.timeline-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.timeline-filter-bar {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.timeline-filter-section {
|
|
min-width: unset;
|
|
}
|
|
|
|
.timeline-filters {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.timeline-filter-select,
|
|
.timeline-search {
|
|
width: 100%;
|
|
min-width: unset;
|
|
}
|
|
|
|
.timeline-event {
|
|
padding: 10px;
|
|
}
|
|
|
|
.timeline-event-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|
|
|
|
/* Custom Date Range */
|
|
.timeline-custom-date {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
padding: 8px;
|
|
background: var(--bg-primary, var(--bg-page));
|
|
border-radius: var(--radius-control);
|
|
}
|
|
|
|
.timeline-date-input {
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
color: var(--text-primary, var(--slate-11));
|
|
padding: 4px 8px;
|
|
font-size: var(--text-xs);
|
|
font-family: inherit;
|
|
flex: 1;
|
|
}
|
|
|
|
.timeline-date-input::-webkit-calendar-picker-indicator {
|
|
filter: invert(0.5);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.timeline-date-separator {
|
|
color: var(--text-muted, var(--text-muted));
|
|
font-size: var(--text-xs);
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.timeline-date-apply-btn {
|
|
background: var(--accent-color, var(--blue-9));
|
|
color: var(--bg-primary, var(--bg-page));
|
|
border: none;
|
|
border-radius: var(--radius-control);
|
|
padding: 4px 12px;
|
|
font-size: var(--text-xs);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.timeline-date-apply-btn:hover {
|
|
background: var(--blue-9);
|
|
}
|
|
|
|
/* ============================================
|
|
Sidebar Timeline Panel Styles
|
|
============================================ */
|
|
|
|
/* Main Sidebar Panel Container */
|
|
.sidebar-panel {
|
|
position: fixed;
|
|
top: 44px; /* Below status bar */
|
|
right: 0;
|
|
width: 320px;
|
|
height: calc(100vh - 44px);
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border-left: 1px solid var(--border-color, var(--bg-hover));
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 60;
|
|
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
box-shadow: -4px 0 20px var(--shadow);
|
|
}
|
|
|
|
.sidebar-panel.collapsed {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Panel Header */
|
|
.sidebar-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
background: var(--bg-tertiary, var(--bg-card));
|
|
border-bottom: 1px solid var(--border-color, var(--bg-hover));
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-panel-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: var(--text-sm);
|
|
font-weight: 600;
|
|
color: var(--text-primary, var(--slate-11));
|
|
}
|
|
|
|
.sidebar-panel-title svg {
|
|
color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.sidebar-panel-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.sidebar-panel-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
padding: 6px;
|
|
border-radius: var(--radius-control);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.sidebar-panel-btn:hover {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
color: var(--text-primary, var(--slate-11));
|
|
}
|
|
|
|
/* Panel Content */
|
|
.sidebar-panel-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar-panel-content::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.sidebar-panel-content::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.sidebar-panel-content::-webkit-scrollbar-thumb {
|
|
background: var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
}
|
|
|
|
.sidebar-panel-content::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
/* Timeline Events in Sidebar */
|
|
.sidebar-timeline-events {
|
|
padding: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Compact Event Card for Sidebar */
|
|
.sidebar-timeline-event {
|
|
background: var(--bg-primary, var(--bg-page));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-radius: var(--radius-control);
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.sidebar-timeline-event::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 3px;
|
|
background: var(--event-color, var(--blue-9));
|
|
}
|
|
|
|
.sidebar-timeline-event:hover {
|
|
border-color: var(--accent-color, var(--blue-9));
|
|
transform: translateX(-2px);
|
|
box-shadow: 0 2px 6px var(--shadow);
|
|
}
|
|
|
|
.sidebar-timeline-event.severity-critical {
|
|
border-color: var(--color-critical, var(--alert));
|
|
}
|
|
|
|
.sidebar-timeline-event.severity-critical::before {
|
|
background: var(--color-critical, var(--alert));
|
|
}
|
|
|
|
.sidebar-timeline-event.severity-warning {
|
|
border-color: var(--color-warning, var(--warn));
|
|
}
|
|
|
|
.sidebar-timeline-event.severity-warning::before {
|
|
background: var(--color-warning, var(--warn));
|
|
}
|
|
|
|
.sidebar-timeline-event.new-event {
|
|
animation: sidebarEventSlideIn 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes sidebarEventSlideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* Event Icon */
|
|
.sidebar-timeline-event-icon {
|
|
flex-shrink: 0;
|
|
font-size: var(--text-base);
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--blue-muted);
|
|
border-radius: var(--radius-control);
|
|
}
|
|
|
|
/* Event Content */
|
|
.sidebar-timeline-event-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sidebar-timeline-event-title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary, var(--slate-11));
|
|
line-height: 1.3;
|
|
margin-bottom: 2px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.sidebar-timeline-event-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
.sidebar-timeline-event-time {
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
}
|
|
|
|
.sidebar-timeline-event-zone {
|
|
color: var(--accent-color, var(--blue-9));
|
|
}
|
|
|
|
.sidebar-timeline-event-person {
|
|
color: var(--ok);
|
|
}
|
|
|
|
/* Event Actions */
|
|
.sidebar-timeline-event-actions {
|
|
display: flex;
|
|
gap: 2px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-timeline-action-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-muted, var(--text-muted));
|
|
padding: 4px;
|
|
border-radius: var(--radius-control);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
font-size: var(--text-xs);
|
|
min-width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.sidebar-timeline-action-btn:hover {
|
|
background: var(--bg-tertiary, var(--bg-card));
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
}
|
|
|
|
.sidebar-timeline-action-btn.feedback-positive:hover {
|
|
background: var(--ok-muted);
|
|
color: var(--ok);
|
|
}
|
|
|
|
.sidebar-timeline-action-btn.feedback-negative:hover {
|
|
background: var(--alert-muted);
|
|
color: var(--alert);
|
|
}
|
|
|
|
.sidebar-timeline-action-btn.active {
|
|
background: var(--accent-color, var(--blue-9));
|
|
color: var(--bg-primary, var(--bg-page));
|
|
}
|
|
|
|
/* Feedback Dismissed State */
|
|
.sidebar-timeline-event.feedback-dismissed {
|
|
opacity: 0.5;
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
/* Loading State */
|
|
.sidebar-timeline-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
color: var(--text-muted, var(--text-muted));
|
|
gap: 12px;
|
|
}
|
|
|
|
.sidebar-spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 2px solid var(--border-color, var(--bg-hover));
|
|
border-top-color: var(--accent-color, var(--blue-9));
|
|
border-radius: 50%;
|
|
animation: sidebarSpin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes sidebarSpin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Empty State */
|
|
.sidebar-timeline-empty {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
color: var(--text-muted, var(--text-muted));
|
|
}
|
|
|
|
.sidebar-timeline-empty svg {
|
|
color: var(--border-color, var(--bg-hover));
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.sidebar-timeline-empty h3 {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.sidebar-timeline-empty p {
|
|
font-size: var(--text-xs);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Show Button (when panel is collapsed) */
|
|
.sidebar-show-btn {
|
|
position: fixed;
|
|
top: 50%;
|
|
right: 0;
|
|
transform: translateY(-50%);
|
|
background: var(--bg-secondary, var(--bg-card));
|
|
border: 1px solid var(--border-color, var(--bg-hover));
|
|
border-right: none;
|
|
border-radius: var(--radius-card) 0 0 var(--radius-card);
|
|
padding: 12px 8px;
|
|
cursor: pointer;
|
|
z-index: 59;
|
|
transition: all 0.3s ease;
|
|
box-shadow: -2px 0 8px var(--overlay);
|
|
}
|
|
|
|
.sidebar-show-btn:hover {
|
|
background: var(--bg-tertiary, var(--bg-card));
|
|
padding-right: 12px;
|
|
}
|
|
|
|
.sidebar-show-btn svg {
|
|
color: var(--text-secondary, var(--text-secondary));
|
|
}
|
|
|
|
.sidebar-show-btn.hidden {
|
|
transform: translateY(-50%) translateX(100%);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Virtual Spacers */
|
|
.timeline-spacer {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Event Type Colors */
|
|
.sidebar-timeline-event[data-type="zone_entry"] { --event-color: var(--ok); }
|
|
.sidebar-timeline-event[data-type="zone_exit"] { --event-color: var(--warn); }
|
|
.sidebar-timeline-event[data-type="portal_crossing"] { --event-color: var(--blue-10); }
|
|
.sidebar-timeline-event[data-type="detection"] { --event-color: var(--blue-9); }
|
|
.sidebar-timeline-event[data-type="presence_transition"] { --event-color: var(--blue-9); }
|
|
.sidebar-timeline-event[data-type="stationary_detected"] { --event-color: var(--blue-9); }
|
|
.sidebar-timeline-event[data-type="anomaly"] { --event-color: var(--alert); }
|
|
.sidebar-timeline-event[data-type="security_alert"] { --event-color: var(--alert); }
|
|
.sidebar-timeline-event[data-type="fall_alert"] { --event-color: var(--alert); }
|
|
.sidebar-timeline-event[data-type="node_online"] { --event-color: var(--ok); }
|
|
.sidebar-timeline-event[data-type="node_offline"] { --event-color: var(--slate-10); }
|
|
.sidebar-timeline-event[data-type="ota_update"] { --event-color: var(--blue-9); }
|
|
.sidebar-timeline-event[data-type="baseline_changed"] { --event-color: var(--blue-9); }
|
|
.sidebar-timeline-event[data-type="system"] { --event-color: var(--slate-9); }
|
|
.sidebar-timeline-event[data-type="learning_milestone"] { --event-color: var(--blue-8); }
|
|
.sidebar-timeline-event[data-type="anomaly_learned"] { --event-color: var(--blue-8); }
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.sidebar-panel {
|
|
width: 100%;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.sidebar-show-btn {
|
|
display: none; /* Always show panel on mobile, use close button instead */
|
|
}
|
|
}
|
|
|
|
/* Selected Event (tap-to-jump highlight) */
|
|
.sidebar-timeline-event.selected {
|
|
background: color-mix(in srgb, var(--blue-9) 15%, transparent);
|
|
border-left-color: var(--blue-9) !important;
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-9) 30%, transparent);
|
|
}
|
|
|
|
.sidebar-timeline-event.selected:hover {
|
|
background: color-mix(in srgb, var(--blue-9) 20%, transparent);
|
|
}
|
|
|
|
/* Now Replaying Chip (in sidebar panel header) */
|
|
.now-replaying-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 2px 10px;
|
|
margin-left: 8px;
|
|
background: color-mix(in srgb, var(--blue-9) 20%, transparent);
|
|
color: var(--blue-11);
|
|
border-radius: 9999px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: var(--font-mono, ui-monospace, monospace);
|
|
white-space: nowrap;
|
|
letter-spacing: 0.02em;
|
|
animation: now-replaying-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes now-replaying-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.7; }
|
|
}
|
|
|
|
/* Secondary System Events (dimmed in expert mode) */
|
|
.sidebar-timeline-event.secondary {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.sidebar-timeline-event.secondary:hover {
|
|
opacity: 0.9;
|
|
}
|