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.
64 lines
4.9 KiB
SCSS
64 lines
4.9 KiB
SCSS
// `flex: 1` is our own app shell's convention for a workspace route's root
|
|
// component (`.app-main` is a flex row, see connect-page/governance-page's
|
|
// own `:host`) -- not present upstream, whose shell lays this out differently.
|
|
// The workspace shell clips overflow, so the page scrolls itself.
|
|
:host { display: block; flex: 1; min-width: 0; min-height: 0; overflow-y: auto; padding: 0 var(--space-6) var(--space-7); }
|
|
.dashboard { max-width: 1440px; margin: 0 auto; min-width: 0; container: dashboard / inline-size; }
|
|
h1 { font-family: var(--issste-font-heading); font-size: 1.75rem; font-weight: 500; line-height: 1.25; letter-spacing: 0; margin: .5rem 0; }
|
|
header p { color: var(--mat-sys-on-surface-variant); margin-bottom: 1.5rem; }
|
|
.domain { color: var(--mat-sys-primary); font: var(--mat-sys-label-large); }
|
|
.state { padding: 1.25rem; margin: 0; }
|
|
.section-title { font-family: var(--issste-font-heading); font-size: 1.25rem; font-weight: 500; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
|
|
.section-description { color: var(--issste-text-secondary); margin: var(--issste-space-2) 0 var(--issste-space-4); overflow-wrap: anywhere; }
|
|
.kpi-section, .graphic-section { min-width: 0; }
|
|
.graphic-section { margin-top: var(--issste-space-6); padding-top: var(--issste-space-6); border-top: 1px solid var(--issste-border); }
|
|
.kpi-grid, .catalog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--issste-space-6); }
|
|
.kpi-section .kpi-grid.kpi-grid-oculto { display: none; }
|
|
.catalog-grid { align-items: stretch; }
|
|
.reporte-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: var(--issste-space-3); margin-bottom: var(--issste-space-4); }
|
|
.reporte-acciones span { color: var(--issste-text-secondary); font: var(--mat-sys-body-medium); }
|
|
.catalog-grid > app-indicador-catalog-card { min-width: 0; margin: 0; }
|
|
.catalog-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--issste-space-3); margin-bottom: var(--issste-space-4); }
|
|
.catalog-count { margin: 0 0 0 auto; text-align: right; color: var(--issste-text-secondary); overflow-wrap: anywhere; }
|
|
.catalog-search { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--issste-space-3); margin-top: var(--issste-space-4); }
|
|
.catalog-search mat-form-field { width: 100%; min-width: 0; max-width: 32rem; }
|
|
.catalog-search button { min-height: 48px; }
|
|
.search-result { color: var(--mat-sys-on-surface-variant); font: var(--mat-sys-body-medium); text-align: right;
|
|
overflow-wrap: anywhere; margin: var(--issste-space-2) 0 var(--issste-space-4); }
|
|
@container dashboard (min-width: 600px) { .kpi-grid { grid-template-columns: repeat(min(2, var(--kpi-count)), minmax(0, 1fr)); } }
|
|
@container dashboard (min-width: 1304px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
|
|
|
@media (max-width: 550px) {
|
|
h1 { font-size: 1.5rem; }
|
|
}
|
|
|
|
.global-filters { margin-block: var(--issste-space-4); padding: var(--issste-space-3) var(--issste-space-4); border: 1px solid var(--issste-border); border-radius: var(--issste-radius); background: var(--issste-surface); min-width: 0; }
|
|
.global-filters .section-title { font-size: 1rem; }
|
|
.global-filters .section-description { margin: var(--issste-space-1) 0 var(--issste-space-2); font: var(--mat-sys-body-small); }
|
|
|
|
@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 {
|
|
grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
|
|
align-items: stretch;
|
|
}
|
|
|
|
.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);
|
|
background: var(--issste-surface); padding: var(--issste-space-2) var(--issste-space-2) 0;
|
|
border-radius: var(--issste-radius) var(--issste-radius) 0 0; }
|
|
.section-tabs button { min-width: min-content; min-height: 48px; padding: .5rem 1rem; font: inherit;
|
|
color: var(--issste-text-secondary); background: transparent; border: 0; border-bottom: 3px solid transparent;
|
|
cursor: pointer; }
|
|
.section-tabs button[aria-selected='true'] { color: var(--issste-text); border-bottom-color: var(--issste-accent); font-weight: 700; }
|
|
.section-tabs button:focus-visible { outline: 2px solid var(--issste-text); outline-offset: -3px; }
|
|
.section-tabs.dark-theme, .section-panel.dark-theme {
|
|
--issste-surface: #151b28; --issste-background: #202838; --issste-text: #eef1f7;
|
|
--issste-text-secondary: #a1aabd; --issste-border: #596477;
|
|
color: var(--issste-text); color-scheme: dark;
|
|
}
|
|
.section-panel { padding-block: var(--issste-space-6); }
|
|
.section-panel[hidden] { display: none; }
|
|
@media (max-width: 550px) { .section-tabs button { flex: 1 1 auto; padding-inline: .65rem; } }
|