27bd4d4a65
How: --issste-radius is 4px instead of Material's medium corner (12px), and the Material shape tokens are overridden after mat.theme (corner-full 4px, so buttons stop being pills; medium and large 4px; extra-large 6px). The indicators feature's 999px pills (legend buttons, EEG badges) use the shared radius. Headings use Roboto at weight 500 instead of Rajdhani at 700, a step smaller: page title 1.75rem, section titles 1.25rem, card titles 1.125rem, KPI titles 1rem and KPI values 1.75rem; the header title is 1.25rem. Implications: the corner tokens are global, so Conectar and Gobernanza (dialogs, panels, buttons) also get square corners; their own 999px chips are unchanged. Circles drawn with 50% (dots, swatches) stay round. Rajdhani is no longer used anywhere, so it can be dropped from the font assets. No behaviour changes.
75 lines
6.9 KiB
SCSS
75 lines
6.9 KiB
SCSS
:host { display: block; container-type: inline-size; }
|
|
.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .75rem; }
|
|
.panel { min-width: 0; padding: .75rem; border: 1px solid var(--issste-border); border-radius: var(--issste-radius); background: var(--issste-surface); }
|
|
h3 { margin: 0 0 .15rem; font-size: 1rem; }
|
|
.meta { margin: 0 0 .5rem; font-size: .8rem; color: var(--issste-text-secondary); }
|
|
.headline { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; font-size: .9rem; }
|
|
.headline small { display: block; margin-top: .1rem; color: var(--issste-text-secondary); }
|
|
.css { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 3.75rem; padding: .3rem .4rem;
|
|
border: 2px solid var(--issste-border); border-radius: var(--issste-radius); font-size: 1.1rem; font-weight: 700; }
|
|
.css small { margin: 0; font-size: .7rem; font-weight: 400; }
|
|
.css[data-nivel=alto], .css[data-calidad=malo] { border-color: #B3261E; color: #B3261E; }
|
|
.css[data-nivel=moderado], .css[data-calidad=aceptable] { border-color: #B26A00; color: #B26A00; }
|
|
.css[data-nivel=bajo], .css[data-nivel=minimo], .css[data-calidad=bueno] { border-color: var(--issste-accent); }
|
|
.css[data-calidad] { flex: none; white-space: nowrap; }
|
|
dd[data-calidad=malo] { color: #B3261E; }
|
|
// The button's area covers its whole card, so the card is clickable without nesting the effects list in a button.
|
|
button.nombre { margin: 0; min-height: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
|
|
button.nombre::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
|
|
button.nombre:disabled { cursor: default; }
|
|
button.nombre:focus-visible { outline: none; }
|
|
button.nombre:focus-visible::after { outline: 2px solid var(--issste-text); outline-offset: 2px; }
|
|
.leyenda-mapa { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .25rem 0; font-size: .8rem; }
|
|
.leyenda-mapa span { width: .8rem; height: .8rem; border-radius: 2px; }
|
|
.leyenda-mapa .azul { background: #2166AC; }
|
|
.leyenda-mapa .rojo { margin-inline-start: .5rem; background: #B2182B; }
|
|
dd[data-calidad=aceptable] { color: #B26A00; }
|
|
.dominio { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; margin-bottom: .4rem; font-size: .85rem; }
|
|
.bar { grid-column: 1 / -1; height: .375rem; border-radius: var(--issste-radius); background: var(--issste-border); overflow: hidden; }
|
|
.bar span { display: block; height: 100%; background: var(--issste-text); }
|
|
details { margin-top: .5rem; }
|
|
summary { cursor: pointer; font-weight: 600; font-size: .9rem; min-height: 44px; display: flex; align-items: center; gap: .5rem; list-style: none; }
|
|
summary::-webkit-details-marker { display: none; }
|
|
// A right-pointing triangle that turns down when the details are open.
|
|
summary::before { content: ''; flex: none; border-block: .35rem solid transparent; border-inline-start: .5rem solid currentColor; transition: transform 150ms ease; }
|
|
details[open] > summary::before { transform: rotate(90deg); }
|
|
@media (prefers-reduced-motion: reduce) { summary::before { transition: none; } }
|
|
.reactivos { width: 100%; min-width: 0; font-size: .85rem; border-collapse: collapse; }
|
|
.reactivos th, .reactivos td { padding: .25rem .4rem; border-top: 1px solid var(--issste-border); text-align: start; }
|
|
.reactivos td:not(:first-child), .reactivos thead th:not(:first-child) { text-align: end; white-space: nowrap; }
|
|
.reactivos tbody th { background: var(--issste-background); }
|
|
dl { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; margin: 0; font-size: .85rem; }
|
|
dt { color: var(--issste-text-secondary); } dd { margin: 0; text-align: end; font-weight: 600; }
|
|
.regiones { margin: .25rem 0 0; padding-inline-start: 1.25rem; font-size: .85rem; }
|
|
.regiones li { padding: .1rem 0; }
|
|
.regiones li span:last-child { float: inline-end; font-variant-numeric: tabular-nums; }
|
|
.regiones .destacada { font-weight: 700; }
|
|
h3 .mock { display: inline-block; white-space: nowrap; margin-inline-start: .5rem; padding: .1rem .5rem; border: 1px dashed var(--issste-border); border-radius: var(--issste-radius);
|
|
font-size: .75rem; font-weight: 400; color: var(--issste-text-secondary); vertical-align: middle; }
|
|
.sin-alteraciones { margin: 0 0 .75rem; font-weight: 600; }
|
|
.metricas, .efectos { margin: 0; padding: 0; list-style: none; }
|
|
// The map has its final width from the start, because Plotly draws at the width it finds: its column only reveals it.
|
|
.alteraciones-zona { container: zona / inline-size; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0fr); align-items: start; transition: grid-template-columns 300ms ease; }
|
|
.alteraciones-zona.abierta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
|
|
.marco-mapa { min-width: 0; overflow: hidden; }
|
|
.mapa { box-sizing: border-box; width: calc(50cqw - .5rem); padding-top: .75rem; animation: aparecer 300ms ease; }
|
|
.mapa h3 { margin-top: 0; }
|
|
@keyframes aparecer { from { opacity: 0; } }
|
|
@container (min-width: 68rem) { .alteraciones-zona { grid-column: span 2; } }
|
|
@container zona (max-width: 42rem) { .mapa { width: 100cqw; } }
|
|
@container (max-width: 42rem) { .alteraciones-zona.abierta { grid-template-columns: minmax(0, 1fr); } }
|
|
@media (prefers-reduced-motion: reduce) { .alteraciones-zona { transition: none; } .mapa { animation: none; } }
|
|
.metricas { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; align-items: start; }
|
|
.metricas > li { position: relative; padding: .5rem .6rem; border: 1px solid var(--issste-border); border-inline-start-width: 4px; border-radius: var(--issste-radius); transition: background-color 120ms ease; }
|
|
.metricas > li:has(button:not(:disabled)):hover { background: color-mix(in srgb, var(--issste-accent) 8%, transparent); }
|
|
.metricas > li:has(button[aria-expanded=true]) { border-color: var(--issste-accent); background: color-mix(in srgb, var(--issste-accent) 12%, transparent); }
|
|
.metricas > li[data-estado=aumentado], .metricas > li[data-estado=disminuido] { border-inline-start-color: #B3261E; }
|
|
.metrica { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; font-size: .9rem; font-weight: 600; }
|
|
li[data-estado=aumentado] .estado, li[data-estado=disminuido] .estado { color: #B3261E; }
|
|
li[data-estado=normal] .estado { color: var(--issste-text-secondary); font-weight: 400; }
|
|
li[data-estado=no_evaluable] .estado { color: var(--issste-text-secondary); font-weight: 400; font-style: italic; }
|
|
.valor { margin: .1rem 0 0; font-size: .8rem; color: var(--issste-text-secondary); font-variant-numeric: tabular-nums; }
|
|
.efectos-titulo { margin: .3rem 0 .1rem; font-size: .8rem; font-weight: 600; }
|
|
.efectos { padding-inline-start: 1.1rem; list-style: disc; font-size: .8rem; }
|
|
button { min-height: 44px; padding: .6rem; border: 1px solid var(--issste-border); border-radius: 4px; background: var(--issste-surface); color: inherit; font: inherit; cursor: pointer; }
|