fix(ui): encabezado y cifras de Screening con la hoja nueva
Solo CSS; las plantillas de screening/* no cambian. - Un encabezado de página con el h1 como hijo directo (markup sin .pagina__textos) se apila: el enlace "volver" arriba y el título abajo, en lugar de mandar el título a la derecha. - `.datos__par dd` baja a especificidad de elemento con :where(): una clase propia del dd (dd.score del detalle, dd.umbral de las listas) conserva su tamaño grande.
This commit is contained in:
1 parent
467dfde0d7
commit
6d6ed3cfe0
1 file changed
+5
-1
+5
-1
@@ -196,6 +196,8 @@ strong { font-weight: 600; }
|
||||
|
||||
/* 4.1 Encabezado de página ----------------------------------------------------------------- */
|
||||
.pagina__encabezado { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
|
||||
/* Markup sin .pagina__textos (h1 hijo directo, p. ej. screening/*): enlace arriba, título abajo. */
|
||||
.pagina__encabezado:has(> .pagina__titulo) { flex-direction: column; align-items: flex-start; gap: 8px; }
|
||||
.pagina__textos { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 760px; }
|
||||
.pagina__ceja { font-family: var(--fuente-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-verde); }
|
||||
.pagina__titulo { font-size: 30px; font-weight: 600; line-height: 1.15; text-wrap: pretty; }
|
||||
@@ -283,7 +285,9 @@ a.resumen__cifra:hover, button.resumen__cifra:hover { background: var(--color-su
|
||||
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; }
|
||||
.datos__par { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
||||
.datos__par dt { font-family: var(--fuente-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-texto-suave); line-height: 1.4; }
|
||||
.datos__par dd { font-size: 14.5px; font-weight: 500; word-break: break-word; }
|
||||
/* :where() deja el dd en especificidad de elemento: una clase propia del dd (dd.score, dd.umbral
|
||||
de screening/*) conserva su tamaño. */
|
||||
:where(.datos__par) dd { font-size: 14.5px; font-weight: 500; word-break: break-word; }
|
||||
.datos__par dd small, .datos__nota { display: block; font-family: var(--fuente-mono); font-size: 12px; font-weight: 400; color: var(--color-texto-suave); margin-top: 2px; }
|
||||
.datos--metricas dd { font-family: var(--fuente-mono); font-size: 18px; font-weight: 500; }
|
||||
.datos--metricas dd.texto { font-family: var(--fuente); }
|
||||
|
||||
Reference in new issue
Block a user