Download static/style.css from SyedaArisha/predictive-maintenance-rag-system: direct link, hf CLI and curl.
- Browser
- Download file 18 kB
-
https://huggingface.co/SyedaArisha/predictive-maintenance-rag-system/resolve/main/static/style.css
- Command line
-
hf download hf://SyedaArisha/predictive-maintenance-rag-system/static/style.css
-
curl -L -o style.css https://huggingface.co/SyedaArisha/predictive-maintenance-rag-system/resolve/main/static/style.css
18 kB
| /* ========================================================== | |
| Predictive Maintenance — Light Editorial Theme | |
| One accent (emerald), serif+sans pairing, flat surfaces. | |
| ========================================================== */ | |
| :root { | |
| --bg: #fafaf9; /* Slightly warm off-white */ | |
| --bg-raised: #ffffff; | |
| --bg-input: #f5f5f4; | |
| --border: #e7e5e4; | |
| --fg: #1c1917; /* Deep charcoal */ | |
| --fg-2: #44403c; | |
| --fg-3: #78716c; | |
| --accent: #059669; /* Emerald green */ | |
| --warn: #d97706; /* Muted amber */ | |
| --danger: #dc2626; /* Muted red */ | |
| --ok: #059669; /* Same as accent */ | |
| --serif: 'Cormorant Garamond', 'Georgia', serif; | |
| --sans: 'DM Sans', -apple-system, 'Segoe UI', sans-serif; | |
| --mono: 'DM Mono', 'Menlo', monospace; | |
| --sidebar-w: 220px; | |
| } | |
| /* ---- Reset ---- */ | |
| *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } | |
| html { font-size: 14px; } | |
| body { | |
| font-family: var(--sans); | |
| background: var(--bg); | |
| color: var(--fg); | |
| line-height: 1.6; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| /* ---- Loader ---- */ | |
| .loader-overlay { | |
| position: fixed; inset: 0; | |
| background: var(--bg); | |
| display: flex; align-items: center; justify-content: center; | |
| z-index: 9999; | |
| transition: opacity .4s ease; | |
| } | |
| .loader-overlay.hidden { opacity: 0; pointer-events: none; } | |
| .loader-bar { | |
| width: 40px; height: 2px; | |
| background: var(--accent); | |
| animation: loadPulse 1s ease-in-out infinite; | |
| } | |
| @keyframes loadPulse { | |
| 0%,100% { opacity: .2; } | |
| 50% { opacity: 1; } | |
| } | |
| /* ---- Shell ---- */ | |
| .shell { display: flex; min-height: 100vh; } | |
| /* ---- Sidebar ---- */ | |
| .sidebar { | |
| width: var(--sidebar-w); | |
| border-right: 1px solid var(--border); | |
| display: flex; flex-direction: column; | |
| position: fixed; top: 0; left: 0; bottom: 0; | |
| z-index: 100; | |
| background: var(--bg); | |
| } | |
| .sidebar-head { | |
| padding: 32px 24px 24px; | |
| } | |
| .logotype { | |
| font-family: var(--serif); | |
| font-size: 1.4rem; | |
| font-weight: 600; | |
| color: var(--fg); | |
| } | |
| .logotype em { | |
| font-style: italic; | |
| color: var(--accent); | |
| } | |
| .sidebar-nav { flex: 1; padding: 16px 16px; overflow-y: auto; } | |
| .nav-group-label { | |
| display: block; | |
| font-size: .8rem; | |
| font-weight: 600; | |
| color: var(--fg-3); | |
| padding: 16px 8px 6px; | |
| } | |
| .nav-link { | |
| display: block; | |
| padding: 6px 8px; | |
| font-size: .9rem; | |
| font-weight: 400; | |
| color: var(--fg-2); | |
| text-decoration: none; | |
| border-radius: 2px; | |
| transition: color .15s, background .15s; | |
| } | |
| .nav-link:hover { color: var(--fg); } | |
| .nav-link.active { | |
| color: var(--accent); | |
| font-weight: 500; | |
| background: rgba(5, 150, 105, 0.05); /* very faint emerald tint */ | |
| } | |
| .sidebar-foot { | |
| padding: 16px 24px; | |
| border-top: 1px solid var(--border); | |
| display: flex; align-items: center; gap: 8px; | |
| font-size: .8rem; | |
| color: var(--ok); | |
| } | |
| .pulse-dot { | |
| width: 6px; height: 6px; | |
| border-radius: 50%; | |
| background: var(--ok); | |
| animation: blink 2.5s ease-in-out infinite; | |
| } | |
| .pulse-dot--sm { width: 5px; height: 5px; } | |
| @keyframes blink { | |
| 0%,100% { opacity: 1; } | |
| 50% { opacity: .4; } | |
| } | |
| /* ---- Main ---- */ | |
| .main { | |
| flex: 1; | |
| margin-left: var(--sidebar-w); | |
| padding: 40px 48px; | |
| max-width: 1200px; | |
| } | |
| /* ---- Views ---- */ | |
| .view { display: none; } | |
| .view.active { display: block; animation: fadeUp .25s ease; } | |
| @keyframes fadeUp { | |
| from { opacity: 0; transform: translateY(4px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* ---- View header ---- */ | |
| .view-head { | |
| display: flex; justify-content: space-between; align-items: flex-start; | |
| margin-bottom: 40px; | |
| flex-wrap: wrap; gap: 16px; | |
| } | |
| .view-title { | |
| font-family: var(--serif); | |
| font-size: 2rem; | |
| font-weight: 500; | |
| color: var(--fg); | |
| line-height: 1.1; | |
| } | |
| .view-sub { | |
| color: var(--fg-3); | |
| font-size: .9rem; | |
| margin-top: 6px; | |
| } | |
| .head-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } | |
| /* ---- Buttons ---- */ | |
| .btn { | |
| display: inline-flex; align-items: center; gap: 6px; | |
| padding: 8px 18px; | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| color: var(--fg); | |
| font-family: var(--sans); | |
| font-size: .85rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| border-radius: 2px; | |
| transition: all .15s; | |
| } | |
| .btn:hover { border-color: var(--fg-3); } | |
| .btn--accent { | |
| background: var(--accent); | |
| border-color: var(--accent); | |
| color: #fff; | |
| } | |
| .btn--accent:hover { | |
| background: #047857; /* slightly darker emerald */ | |
| border-color: #047857; | |
| } | |
| .btn--full { width: 100%; justify-content: center; margin-top: 16px; } | |
| .btn--sm { padding: 4px 12px; font-size: .8rem; } | |
| .btn:disabled { opacity: .4; cursor: default; } | |
| /* ---- Select ---- */ | |
| .sel { | |
| padding: 7px 12px; | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| color: var(--fg); | |
| font-family: var(--sans); | |
| font-size: .85rem; | |
| cursor: pointer; | |
| outline: none; | |
| } | |
| .sel:focus { border-color: var(--accent); } | |
| /* ---- Stat strip ---- */ | |
| .stat-strip { | |
| display: flex; | |
| align-items: baseline; | |
| gap: 0; | |
| padding: 0 0 32px; | |
| border-bottom: 1px solid var(--border); | |
| margin-bottom: 32px; | |
| } | |
| .stat-item { padding: 0 32px; } | |
| .stat-item:first-child { padding-left: 0; } | |
| .stat-divider { | |
| width: 1px; | |
| height: 32px; | |
| background: var(--border); | |
| flex-shrink: 0; | |
| align-self: center; | |
| } | |
| .stat-value { | |
| display: block; | |
| font-family: var(--serif); | |
| font-size: 2.2rem; | |
| font-weight: 500; | |
| color: var(--fg); | |
| line-height: 1; | |
| } | |
| .stat-value--warn { color: var(--warn); } | |
| .stat-value--danger { color: var(--danger); } | |
| .stat-label { | |
| display: block; | |
| font-size: .8rem; | |
| font-weight: 500; | |
| color: var(--fg-3); | |
| margin-top: 6px; | |
| } | |
| /* ---- Section block ---- */ | |
| .section-block { | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| padding: 28px; | |
| margin-bottom: 24px; | |
| } | |
| .section-title { | |
| font-family: var(--serif); | |
| font-size: 1.2rem; | |
| font-weight: 500; | |
| margin-bottom: 20px; | |
| color: var(--fg); | |
| } | |
| /* ---- Two column ---- */ | |
| .two-col { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 24px; | |
| margin-bottom: 24px; | |
| } | |
| .chart-wrap { | |
| height: 260px; | |
| position: relative; | |
| } | |
| .chart-wrap canvas { max-height: 240px; } | |
| /* ---- Pipelines ---- */ | |
| .pipeline-row { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 1px; | |
| background: var(--border); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| } | |
| .pipeline-item { | |
| background: var(--bg-raised); | |
| padding: 24px; | |
| } | |
| .pipeline-item h3 { | |
| font-family: var(--serif); | |
| font-size: 1.1rem; | |
| font-weight: 600; | |
| margin-bottom: 8px; | |
| color: var(--fg); | |
| } | |
| .pipeline-item p { | |
| font-size: .85rem; | |
| color: var(--fg-3); | |
| line-height: 1.5; | |
| margin-bottom: 16px; | |
| } | |
| .tag { | |
| font-size: .7rem; | |
| font-weight: 500; | |
| color: var(--fg-2); | |
| border: 1px solid var(--border); | |
| padding: 3px 8px; | |
| border-radius: 2px; | |
| background: var(--bg); | |
| } | |
| /* ---- Fleet bar ---- */ | |
| .fleet-bar-wrap { | |
| display: flex; align-items: center; gap: 16px; | |
| margin-bottom: 32px; | |
| padding-bottom: 24px; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .fleet-bar-total { | |
| font-family: var(--serif); | |
| font-size: 1.8rem; | |
| font-weight: 500; | |
| } | |
| .fleet-bar-label { font-size: .85rem; color: var(--fg-3); } | |
| .fleet-bar { | |
| flex: 1; height: 4px; | |
| background: var(--bg-input); | |
| border-radius: 2px; | |
| display: flex; overflow: hidden; | |
| } | |
| .fleet-seg { height: 100%; transition: width .5s ease; } | |
| .fleet-seg--crit { background: var(--danger); } | |
| .fleet-seg--warn { background: var(--warn); } | |
| .fleet-seg--ok { background: var(--ok); } | |
| /* ---- Machine grid ---- */ | |
| .machine-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); | |
| gap: 1px; | |
| background: var(--border); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| overflow: hidden; | |
| } | |
| .machine-card { | |
| background: var(--bg-raised); | |
| padding: 20px; | |
| position: relative; | |
| } | |
| .machine-card--critical { background: #fff1f2; /* extremely faint red tint */ } | |
| .mc-head { | |
| display: flex; justify-content: space-between; align-items: center; | |
| margin-bottom: 12px; | |
| } | |
| .mc-id { | |
| font-family: var(--sans); | |
| font-size: .9rem; | |
| font-weight: 600; | |
| } | |
| .mc-model { | |
| font-size: .75rem; | |
| color: var(--fg-3); | |
| } | |
| .mc-status { | |
| display: flex; align-items: center; gap: 6px; | |
| font-size: .75rem; font-weight: 500; | |
| } | |
| .mc-dot { | |
| width: 6px; height: 6px; | |
| border-radius: 50%; | |
| } | |
| .mc-dot--ok { background: var(--ok); } | |
| .mc-dot--warn { background: var(--warn); } | |
| .mc-dot--crit { background: var(--danger); } | |
| .mc-status--ok { color: var(--ok); } | |
| .mc-status--warn { color: var(--warn); } | |
| .mc-status--crit { color: var(--danger); } | |
| .mc-prob { | |
| font-size: .8rem; | |
| color: var(--fg-3); | |
| margin-bottom: 6px; | |
| } | |
| .mc-prob strong { color: var(--fg); font-weight: 600; } | |
| .mc-rul { | |
| display: flex; align-items: baseline; gap: 4px; | |
| margin-bottom: 12px; | |
| } | |
| .mc-rul-val { | |
| font-family: var(--sans); | |
| font-size: 1.2rem; | |
| font-weight: 600; | |
| } | |
| .mc-rul-unit { | |
| font-size: .75rem; | |
| color: var(--fg-3); | |
| } | |
| .mc-sensors { | |
| display: grid; grid-template-columns: 1fr 1fr; | |
| gap: 4px; | |
| font-size: .7rem; | |
| color: var(--fg-3); | |
| font-family: var(--mono); | |
| } | |
| /* ---- Diagnostics layout ---- */ | |
| .diag-layout { | |
| display: grid; | |
| grid-template-columns: 340px 1fr; | |
| gap: 32px; | |
| align-items: start; | |
| } | |
| .diag-input .section-block { position: sticky; top: 40px; } | |
| /* ---- Fields ---- */ | |
| .field { margin-bottom: 16px; } | |
| .field label { | |
| display: block; | |
| font-size: .85rem; | |
| font-weight: 500; | |
| color: var(--fg-2); | |
| margin-bottom: 6px; | |
| } | |
| .field-unit { | |
| font-family: var(--sans); | |
| font-size: .75rem; | |
| color: var(--fg-3); | |
| font-weight: 400; | |
| } | |
| .field input { | |
| width: 100%; | |
| padding: 8px 12px; | |
| background: var(--bg); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| color: var(--fg); | |
| font-family: var(--mono); | |
| font-size: .9rem; | |
| outline: none; | |
| transition: border-color .15s; | |
| } | |
| .field input:focus { border-color: var(--accent); } | |
| .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } | |
| .presets-row { | |
| display: flex; align-items: center; gap: 8px; | |
| margin-top: 20px; | |
| padding-top: 16px; | |
| border-top: 1px solid var(--border); | |
| } | |
| .presets-label { font-size: .8rem; color: var(--fg-3); margin-right: 4px; } | |
| /* ---- Results ---- */ | |
| .empty-msg { | |
| text-align: center; | |
| padding: 64px 20px; | |
| color: var(--fg-3); | |
| font-size: .9rem; | |
| } | |
| .empty-detail { | |
| display: block; | |
| font-size: .8rem; | |
| margin-top: 8px; | |
| color: var(--fg-3); | |
| } | |
| .results-pair { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 24px; | |
| margin-bottom: 24px; | |
| } | |
| .result-card { | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| padding: 32px; | |
| text-align: center; | |
| } | |
| .result-card-label { | |
| font-size: .85rem; | |
| color: var(--fg-3); | |
| font-weight: 500; | |
| display: block; | |
| margin-bottom: 24px; | |
| } | |
| .gauge-wrap { | |
| position: relative; | |
| width: 180px; height: 180px; | |
| margin: 0 auto 16px; | |
| } | |
| .gauge-center { | |
| position: absolute; inset: 0; | |
| display: flex; align-items: center; justify-content: center; | |
| } | |
| .gauge-num { | |
| font-family: var(--serif); | |
| font-size: 2.5rem; | |
| font-weight: 500; | |
| } | |
| .status-indicator { | |
| font-size: .85rem; | |
| font-weight: 500; | |
| } | |
| .status-indicator--ok { color: var(--ok); } | |
| .status-indicator--warn { color: var(--warn); } | |
| .status-indicator--crit { color: var(--danger); } | |
| .rul-display { | |
| display: flex; align-items: baseline; justify-content: center; | |
| gap: 6px; margin-bottom: 16px; | |
| } | |
| .rul-num { | |
| font-family: var(--serif); | |
| font-size: 3rem; | |
| font-weight: 500; | |
| line-height: 1; | |
| } | |
| .rul-unit { | |
| font-size: .9rem; | |
| color: var(--fg-3); | |
| } | |
| .rul-bar-track { | |
| width: 100%; height: 4px; | |
| background: var(--bg-input); | |
| margin-bottom: 16px; | |
| border-radius: 2px; | |
| } | |
| .rul-bar-fill { | |
| height: 100%; | |
| border-radius: 2px; | |
| transition: width .5s ease, background .3s ease; | |
| } | |
| .rul-trend-wrap { height: 70px; } | |
| /* ---- AI Report ---- */ | |
| .ai-header { | |
| display: flex; justify-content: space-between; align-items: center; | |
| margin-bottom: 20px; | |
| } | |
| .ai-tag { | |
| display: flex; align-items: center; gap: 8px; | |
| font-size: .75rem; | |
| color: var(--accent); | |
| font-weight: 600; | |
| } | |
| .prose { | |
| font-size: .95rem; | |
| line-height: 1.8; | |
| color: var(--fg-2); | |
| } | |
| .prose strong { color: var(--fg); font-weight: 600; } | |
| .prose p { margin-bottom: 16px; } | |
| .prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { | |
| font-family: var(--serif); | |
| color: var(--fg); | |
| margin: 24px 0 12px; | |
| font-weight: 600; | |
| } | |
| .prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; } | |
| .prose li { margin-bottom: 6px; } | |
| .prose code { | |
| font-family: var(--mono); | |
| background: var(--bg-input); | |
| padding: 2px 6px; | |
| border-radius: 2px; | |
| font-size: .85rem; | |
| } | |
| /* ---- Reports layout ---- */ | |
| .reports-layout { | |
| display: grid; | |
| grid-template-columns: 260px 1fr; | |
| gap: 32px; | |
| align-items: start; | |
| } | |
| .reports-sidebar { | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| padding: 12px; | |
| position: sticky; top: 40px; | |
| } | |
| .report-item { | |
| display: block; | |
| padding: 10px 14px; | |
| font-size: .9rem; | |
| color: var(--fg-2); | |
| cursor: pointer; | |
| transition: color .15s, background .15s; | |
| border-radius: 2px; | |
| } | |
| .report-item:hover { color: var(--fg); background: var(--bg); } | |
| .report-item.active { color: var(--accent); background: rgba(5, 150, 105, 0.05); font-weight: 500; } | |
| .reports-viewer { | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| border-radius: 2px; | |
| padding: 40px; | |
| min-height: 400px; | |
| } | |
| /* ---- Table ---- */ | |
| .table-scroll { overflow-x: auto; } | |
| .tbl { | |
| width: 100%; | |
| border-collapse: collapse; | |
| font-size: .9rem; | |
| } | |
| .tbl th { | |
| text-align: left; | |
| padding: 12px 16px; | |
| font-size: .8rem; | |
| font-weight: 600; | |
| color: var(--fg-3); | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .tbl td { | |
| padding: 14px 16px; | |
| border-bottom: 1px solid var(--border); | |
| color: var(--fg-2); | |
| } | |
| .tbl tbody tr:hover { background: var(--bg); } | |
| .tbl-empty { | |
| text-align: center; | |
| padding: 48px 16px ; | |
| color: var(--fg-3); | |
| } | |
| .tbl-mono { font-family: var(--mono); } | |
| .tbl-bold { font-weight: 600; color: var(--fg); } | |
| .tbl-status { font-size: .8rem; font-weight: 500; } | |
| .tbl-status--scheduled { color: var(--fg-3); } | |
| .tbl-status--rescheduled { color: var(--warn); } | |
| .tbl-status--risk { color: var(--danger); } | |
| .tbl-prio { font-size: .8rem; font-weight: 500; } | |
| .tbl-prio--high { color: var(--danger); } | |
| .tbl-prio--medium { color: var(--warn); } | |
| .tbl-prio--low { color: var(--fg-3); } | |
| /* ---- Modal ---- */ | |
| .modal-overlay { | |
| position: fixed; inset: 0; | |
| background: rgba(28, 25, 23, 0.4); | |
| backdrop-filter: blur(2px); | |
| display: flex; align-items: center; justify-content: center; | |
| z-index: 1000; | |
| } | |
| .modal { | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| width: 90%; max-width: 480px; | |
| border-radius: 2px; | |
| box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05); /* very subtle true elevation */ | |
| } | |
| .modal-head { | |
| display: flex; justify-content: space-between; align-items: center; | |
| padding: 24px 32px; | |
| border-bottom: 1px solid var(--border); | |
| } | |
| .modal-head h3 { | |
| font-family: var(--serif); | |
| font-size: 1.2rem; | |
| font-weight: 600; | |
| color: var(--fg); | |
| } | |
| .modal-x { | |
| background: none; border: none; | |
| color: var(--fg-3); font-size: 1.6rem; | |
| cursor: pointer; line-height: 1; | |
| } | |
| .modal-x:hover { color: var(--fg); } | |
| .modal-body { padding: 32px; } | |
| .modal-desc { | |
| font-size: .9rem; | |
| color: var(--fg-3); | |
| margin-bottom: 24px; | |
| line-height: 1.6; | |
| } | |
| .modal-foot { | |
| display: flex; justify-content: flex-end; gap: 12px; | |
| padding: 20px 32px; | |
| border-top: 1px solid var(--border); | |
| background: var(--bg); | |
| } | |
| /* ---- Toast ---- */ | |
| .toast-container { | |
| position: fixed; bottom: 24px; right: 24px; | |
| z-index: 2000; | |
| display: flex; flex-direction: column; gap: 8px; | |
| } | |
| .toast { | |
| padding: 12px 20px; | |
| background: var(--bg-raised); | |
| border: 1px solid var(--border); | |
| font-size: .85rem; | |
| color: var(--fg); | |
| border-radius: 2px; | |
| box-shadow: 0 4px 16px rgba(0,0,0,0.05); | |
| animation: slideIn .25s ease; | |
| max-width: 340px; | |
| } | |
| .toast--success { border-left: 3px solid var(--ok); } | |
| .toast--error { border-left: 3px solid var(--danger); } | |
| .toast--info { border-left: 3px solid var(--fg-3); } | |
| @keyframes slideIn { | |
| from { opacity: 0; transform: translateY(12px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| /* ---- Responsive ---- */ | |
| @media (max-width: 1000px) { | |
| .two-col { grid-template-columns: 1fr; } | |
| .diag-layout { grid-template-columns: 1fr; } | |
| .diag-input .section-block { position: static; } | |
| .results-pair { grid-template-columns: 1fr; } | |
| .reports-layout { grid-template-columns: 1fr; } | |
| .pipeline-row { grid-template-columns: 1fr 1fr; } | |
| } | |
| @media (max-width: 640px) { | |
| .sidebar { display: none; } | |
| .main { margin-left: 0; padding: 24px; } | |
| .stat-strip { flex-wrap: wrap; gap: 12px; } | |
| .machine-grid { grid-template-columns: 1fr 1fr; } | |
| .pipeline-row { grid-template-columns: 1fr; } | |
| } | |
| /* ---- Scrollbar ---- */ | |
| ::-webkit-scrollbar { width: 6px; height: 6px; } | |
| ::-webkit-scrollbar-track { background: transparent; } | |
| ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } | |
| ::-webkit-scrollbar-thumb:hover { background: #d6d3d1; } | |