Spaces:
Sleeping
Sleeping
Download ui/style.css from Abhyuday-06/VisionGuard-AI: direct link, hf CLI and curl.
- Browser
- Download file 3.8 kB
-
https://huggingface.co/spaces/Abhyuday-06/VisionGuard-AI/resolve/main/ui/style.css
- Command line
-
hf download hf://spaces/Abhyuday-06/VisionGuard-AI/ui/style.css
-
curl -L -o style.css https://huggingface.co/spaces/Abhyuday-06/VisionGuard-AI/resolve/main/ui/style.css
3.8 kB
| /* VisionGuard AI. Neutral colours are translucent greys, so they work on the dark (default) and light themes. */ | |
| :root { | |
| --vg-panel: rgba(255, 255, 255, .035); | |
| --vg-hover: rgba(255, 255, 255, .07); | |
| --vg-line: rgba(255, 255, 255, .10); | |
| --vg-accent: #ff4b4b; | |
| } | |
| .block-container {padding-top: 2rem; padding-bottom: 3rem; max-width: 1360px;} | |
| /* sidebar navigation: radio rendered as a plain menu */ | |
| section[data-testid="stSidebar"] {border-right: 1px solid var(--vg-line);} | |
| section[data-testid="stSidebar"] [role="radiogroup"] {gap: 2px;} | |
| section[data-testid="stSidebar"] [role="radiogroup"] label {padding: 7px 10px; border-radius: 6px; width: 100%; | |
| margin: 0; cursor: pointer; border-left: 2px solid transparent;} | |
| section[data-testid="stSidebar"] [role="radiogroup"] label > div:first-child {display: none;} | |
| section[data-testid="stSidebar"] [role="radiogroup"] label:hover {background: var(--vg-hover);} | |
| section[data-testid="stSidebar"] [role="radiogroup"] label:has(input:checked) {background: rgba(255, 75, 75, .12); | |
| border-left-color: var(--vg-accent);} | |
| section[data-testid="stSidebar"] [role="radiogroup"] label:has(input:checked) p {font-weight: 600;} | |
| /* text */ | |
| .vg-brand {font-weight: 700; font-size: 1.15rem; margin: 0 0 2px 0;} | |
| .vg-page {margin: 0 0 2px 0; font-size: 1.75rem ; font-weight: 700; line-height: 1.25;} | |
| .vg-sub, .vg-lead, .vg-muted, .vg-kpi .k, .vg-card .foot, .vg-event .t, .vg-plate.unread, .vg-empty { | |
| color: color-mix(in srgb, currentColor 60%, transparent);} | |
| .vg-sub {font-size: .85rem; margin: 0 0 14px 0;} | |
| .vg-lead {margin: 0 0 14px 0; font-size: .95rem;} | |
| .vg-muted {font-size: .85rem;} | |
| /* KPI strip */ | |
| .vg-kpis {display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 14px 0;} | |
| .vg-kpi {background: var(--vg-panel); border: 1px solid var(--vg-line); border-radius: 8px; padding: 10px 14px;} | |
| .vg-kpi .k {display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;} | |
| .vg-kpi .v {display: block; font-size: 1.45rem; font-weight: 650; line-height: 1.3;} | |
| /* tags and plates */ | |
| .vg-tag {display: inline-block; padding: 1px 8px; margin: 0 4px 4px 0; border-radius: 4px; font-size: .78rem; | |
| font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); | |
| border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);} | |
| .vg-plate {display: inline-block; white-space: nowrap; font-family: "Consolas", "Courier New", monospace; | |
| font-weight: 700; letter-spacing: 1.5px; font-size: 1.02rem; padding: 1px 8px; background: #f4f4f0; color: #111; | |
| border: 1.5px solid #111; border-radius: 4px;} | |
| .vg-plate.unread {font-family: inherit; letter-spacing: 0; font-weight: 500; font-size: .8rem; background: transparent; | |
| border: 1px dashed var(--vg-line);} | |
| /* violation card */ | |
| .vg-card {display: flex; gap: 12px; background: var(--vg-panel); border: 1px solid var(--vg-line); | |
| border-left: 3px solid var(--c); border-radius: 8px; padding: 10px; margin-bottom: 10px;} | |
| .vg-card img {width: 84px; height: 84px; object-fit: cover; border-radius: 6px; background: var(--vg-hover); flex: none;} | |
| .vg-card .body {min-width: 0; flex: 1;} | |
| .vg-card .top {display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; align-items: center; | |
| margin-bottom: 4px;} | |
| .vg-card .veh {font-weight: 650;} | |
| .vg-card ul {margin: 6px 0 4px 0; padding-left: 16px; font-size: .84rem;} | |
| .vg-card li {margin: 0;} | |
| .vg-card .foot {font-size: .8rem;} | |
| .vg-empty {border: 1px dashed var(--vg-line); border-radius: 8px; padding: 28px; text-align: center; | |
| background: var(--vg-panel);} | |
| .vg-event {display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--vg-line); font-size: .86rem;} | |
| .vg-event .t {width: 48px; flex: none; font-variant-numeric: tabular-nums;} | |