style(cama): the four opportunity cards in one row, all of one size
How: cáncer de mama's card grid no longer auto-fits 18rem columns (which could leave three cards and one below); it has two equal columns from 600px of dashboard width and four from 1100px. With grid-auto-rows: 1fr every card is as tall as the tallest one (the detection rate with its interval line). Implications: CaCu keeps its auto-fit grid for its five cards. On a narrow dashboard the cards stack in one column, still of one height per row.
This commit is contained in:
@@ -41,10 +41,13 @@ header p { color: var(--mat-sys-on-surface-variant); margin-bottom: 1.5rem; }
|
||||
@container dashboard (min-width: 1000px) { .kpi-grid { grid-template-columns: repeat(min(3, var(--kpi-count)), minmax(0, 1fr)); } }
|
||||
|
||||
// Five opportunity cards: at least ~280px per card; retain existing TEA/CaMa grids.
|
||||
.kpi-section[data-domain='cacu'] .kpi-grid, .kpi-section[data-domain='cama'] .kpi-grid {
|
||||
.kpi-section[data-domain='cacu'] .kpi-grid {
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
|
||||
align-items: stretch;
|
||||
}
|
||||
// Cáncer de mama's four cards: one size, four in a row on wide screens and two by two below.
|
||||
@container dashboard (min-width: 600px) { .kpi-section[data-domain='cama'] .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@container dashboard (min-width: 1100px) { .kpi-section[data-domain='cama'] .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
||||
|
||||
.section-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--issste-space-1);
|
||||
border-block-start: 2px solid var(--issste-accent); border-block-end: 1px solid var(--issste-border);
|
||||
|
||||
Reference in New Issue
Block a user