Download static/styles.css from JoseAndresLopez/monitor-condiciones: direct link, hf CLI and curl.
- Browser
- Download file 7.08 kB
-
https://huggingface.co/spaces/JoseAndresLopez/monitor-condiciones/resolve/main/static/styles.css
- Command line
-
hf download hf://spaces/JoseAndresLopez/monitor-condiciones/static/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/JoseAndresLopez/monitor-condiciones/resolve/main/static/styles.css
7.08 kB
| /* ============================================================ | |
| Monitor de Telescopio — hoja de estilos | |
| Estética "sala de control nocturna": fondo casi negro (luz roja | |
| de observatorio) y color impulsado por el estado (nominal / atención | |
| / crítico), que tiñe toda la cabecera como un panel de alarma. | |
| ============================================================ */ | |
| :root { | |
| --bg: #0A0E14; | |
| --surface: #121826; | |
| --surface-2: #1A2130; | |
| --line: #2A3242; | |
| --text: #E6EAF2; | |
| --muted: #8A93A6; | |
| --ok: #3FB68B; | |
| --aviso: #E0A83E; | |
| --critico: #E5484D; | |
| /* color de estado activo (lo cambia el JS vía data-nivel) */ | |
| --estado: var(--ok); | |
| --radio: 14px; | |
| --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace; | |
| --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; | |
| } | |
| body[data-nivel="aviso"] { --estado: var(--aviso); } | |
| body[data-nivel="critico"] { --estado: var(--critico); } | |
| * { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: var(--sans); | |
| -webkit-font-smoothing: antialiased; | |
| padding: env(safe-area-inset-top) env(safe-area-inset-right) | |
| env(safe-area-inset-bottom) env(safe-area-inset-left); | |
| } | |
| .app { max-width: 720px; margin: 0 auto; padding: 0 16px 32px; } | |
| /* ---------- Cabecera de estado (elemento firma) ---------- */ | |
| .estado { | |
| position: relative; | |
| margin: 16px 0 20px; | |
| padding: 28px 22px; | |
| border-radius: 20px; | |
| background: var(--surface); | |
| border: 1px solid color-mix(in srgb, var(--estado) 40%, var(--line)); | |
| overflow: hidden; | |
| } | |
| .estado__glow { | |
| position: absolute; inset: -40% -10% auto -10%; height: 180%; | |
| background: radial-gradient(60% 60% at 50% 0%, | |
| color-mix(in srgb, var(--estado) 45%, transparent), transparent 70%); | |
| opacity: .55; | |
| transition: opacity .4s ease; | |
| } | |
| .estado__contenido { position: relative; } | |
| .estado__eyebrow { | |
| font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; | |
| text-transform: uppercase; color: var(--muted); | |
| } | |
| .estado__titulo { | |
| font-size: 2.1rem; font-weight: 700; line-height: 1.05; margin: 6px 0 8px; | |
| color: var(--estado); | |
| text-shadow: 0 0 24px color-mix(in srgb, var(--estado) 55%, transparent); | |
| } | |
| .estado__sub { color: var(--text); font-size: .98rem; opacity: .9; } | |
| /* Latido solo cuando es crítico */ | |
| body[data-nivel="critico"] .estado__glow { animation: latido 1.6s ease-in-out infinite; } | |
| @keyframes latido { 0%,100% { opacity: .35; } 50% { opacity: .8; } } | |
| /* ---------- Escenarios (chips) ---------- */ | |
| .escenarios { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; } | |
| .chip { | |
| flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; | |
| background: var(--surface); color: var(--muted); | |
| border: 1px solid var(--line); font-size: .85rem; cursor: pointer; | |
| white-space: nowrap; transition: .15s; | |
| } | |
| .chip:hover { color: var(--text); } | |
| .chip[aria-pressed="true"] { | |
| background: color-mix(in srgb, var(--estado) 22%, var(--surface)); | |
| color: var(--text); border-color: var(--estado); | |
| } | |
| /* ---------- Bloques ---------- */ | |
| .bloque { margin-bottom: 26px; } | |
| .bloque__cab { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; } | |
| .bloque__cab h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; } | |
| .contador { | |
| font-family: var(--mono); font-size: .8rem; color: var(--bg); | |
| background: var(--estado); border-radius: 999px; padding: 1px 9px; font-weight: 700; | |
| } | |
| .pista, .pie__nota { color: var(--muted); font-size: .8rem; } | |
| /* ---------- Incidencias ---------- */ | |
| .incidencias { display: grid; gap: 10px; } | |
| .incidencia { | |
| background: var(--surface); border: 1px solid var(--line); | |
| border-left: 4px solid var(--nivel, var(--muted)); | |
| border-radius: var(--radio); padding: 14px 16px; | |
| } | |
| .incidencia[data-nivel="critico"] { --nivel: var(--critico); } | |
| .incidencia[data-nivel="aviso"] { --nivel: var(--aviso); } | |
| .incidencia__cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } | |
| .incidencia__sensor { font-weight: 600; } | |
| .incidencia__valor { font-family: var(--mono); color: var(--nivel, var(--text)); font-size: .95rem; } | |
| .incidencia__eta { | |
| display: inline-block; margin-top: 6px; font-family: var(--mono); | |
| font-size: .74rem; color: var(--aviso); | |
| border: 1px solid color-mix(in srgb, var(--aviso) 45%, transparent); | |
| border-radius: 6px; padding: 1px 7px; | |
| } | |
| .incidencia p { color: var(--muted); font-size: .88rem; margin-top: 8px; } | |
| .incidencia p b { color: var(--text); font-weight: 600; } | |
| .vacio { color: var(--muted); font-size: .9rem; padding: 6px 2px; } | |
| /* ---------- Sensores ---------- */ | |
| .sensores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } | |
| .sensor { | |
| background: var(--surface); border: 1px solid var(--line); | |
| border-radius: var(--radio); padding: 12px 12px 8px; | |
| } | |
| .sensor__top { display: flex; justify-content: space-between; align-items: baseline; } | |
| .sensor__nom { font-size: .78rem; color: var(--muted); text-transform: capitalize; } | |
| .sensor__val { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; } | |
| .sensor__val small { font-size: .7rem; color: var(--muted); font-weight: 400; } | |
| .sensor svg { display: block; width: 100%; height: 42px; margin-top: 6px; } | |
| .sensor[data-nivel="critico"] .sensor__val { color: var(--critico); } | |
| .sensor[data-nivel="aviso"] .sensor__val { color: var(--aviso); } | |
| .sensor[data-nivel="ok"] .sensor__val { color: var(--text); } | |
| /* ---------- Informe ---------- */ | |
| details { | |
| background: var(--surface); border: 1px solid var(--line); | |
| border-radius: var(--radio); padding: 4px 14px; | |
| } | |
| summary { cursor: pointer; padding: 12px 2px; font-size: .95rem; font-weight: 600; } | |
| .informe { | |
| font-family: var(--mono); font-size: .78rem; line-height: 1.6; | |
| color: var(--muted); white-space: pre-wrap; padding: 4px 2px 14px; | |
| } | |
| /* ---------- Pie ---------- */ | |
| .pie { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; } | |
| .boton { | |
| background: var(--estado); color: var(--bg); border: none; | |
| border-radius: 10px; padding: 12px 20px; font-size: .95rem; font-weight: 700; | |
| cursor: pointer; font-family: var(--sans); | |
| } | |
| .boton:active { transform: translateY(1px); } | |
| /* ---------- Accesibilidad ---------- */ | |
| :focus-visible { outline: 2px solid var(--estado); outline-offset: 2px; border-radius: 6px; } | |
| @media (prefers-reduced-motion: reduce) { | |
| * { animation: none ; transition: none ; } | |
| } | |
| @media (min-width: 560px) { | |
| .sensores { grid-template-columns: repeat(3, 1fr); } | |
| .estado__titulo { font-size: 2.4rem; } | |
| } | |
| /* ---------- Fuente de datos ---------- */ | |
| .fuente { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } | |
| .chip--file { cursor: pointer; } | |
| .fuente__nombre { color: var(--muted); font-size: .78rem; font-family: var(--mono); | |
| overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } | |
| .avisos { color: var(--aviso); font-size: .74rem; font-family: var(--mono); margin-bottom: 20px; min-height: 1em; } | |