style(indicadores): Roboto headings, 4 px corners and the reference's title and card sizes, scoped to the indicators pages
Tokens are set on body when the indicators header is present, so menus, selects and dialogs share them; the other routes keep Rajdhani and their shapes. (cherry picked from commit f5103b483d9d7188b4feffe91beda38d997004d4)
This commit is contained in:
@@ -111,7 +111,7 @@ import { parConteos } from './indicadores-conteos-pareados';
|
||||
}
|
||||
.card-identity { min-width: 0; }
|
||||
h2, p { overflow-wrap: anywhere; }
|
||||
h2 { margin: 0; font-family: var(--issste-font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.25; }
|
||||
h2 { margin: 0; font-family: var(--issste-font-heading); font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
|
||||
.pin-toggle { align-self: start; margin-top: var(--issste-space-1); max-width: 100%; height: auto;
|
||||
min-width: 48px; min-height: 48px; color: var(--issste-text); }
|
||||
.pin-toggle mat-icon { flex-shrink: 0; }
|
||||
|
||||
@@ -22,13 +22,13 @@ import { MatCardModule } from '@angular/material/card';
|
||||
mat-card { box-sizing: border-box; height: 100%; padding: var(--issste-space-6);
|
||||
background: var(--issste-surface); color: var(--issste-text); border: 1px solid var(--issste-border);
|
||||
border-radius: var(--issste-radius); box-shadow: none; }
|
||||
h3 { margin: 0; font-family: var(--issste-font-heading); font-size: 1.25rem; line-height: 1.3; }
|
||||
h3 { margin: 0; font-family: var(--issste-font-heading); font-size: 1rem; font-weight: 500; line-height: 1.3; }
|
||||
h3, p { overflow-wrap: anywhere; }
|
||||
p { margin: var(--issste-space-3) 0 0; }
|
||||
.kpi-state, .additional-info { color: var(--issste-text-secondary); font: var(--mat-sys-body-medium); }
|
||||
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
|
||||
.value { font: var(--mat-sys-headline-medium); }
|
||||
.value { font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
|
||||
.value span { margin-inline-start: .3em; }
|
||||
// CaMa's cards are as tall as their grid row.
|
||||
:host-context(.kpi-section[data-domain='cama']) { display: flex; flex-direction: column; }
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
:host { display: block; min-width: 0; padding: var(--issste-space-4); overflow-wrap: anywhere;
|
||||
background: var(--issste-surface); border: 1px solid var(--issste-border); border-radius: var(--issste-radius); }
|
||||
h2 { font-size: 1.5rem; margin-top: 0; }
|
||||
h2 { font-size: 1.25rem; font-weight: 500; margin-top: 0; }
|
||||
h3 { font-size: 1.25rem; }
|
||||
h4 { font-size: 1rem; margin-bottom: .5rem; }
|
||||
section + section { border-top: 1px solid var(--issste-border); margin-top: var(--issste-space-6); padding-top: var(--issste-space-4); }
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
// 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: var(--mat-sys-headline-large); font-family: var(--issste-font-heading); font-weight: 700; margin: .65rem 0; }
|
||||
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.5rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
|
||||
.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); }
|
||||
@@ -29,7 +29,7 @@ header p { color: var(--mat-sys-on-surface-variant); margin-bottom: 1.5rem; }
|
||||
@container dashboard (min-width: 1304px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
|
||||
@media (max-width: 550px) {
|
||||
h1 { font-size: var(--mat-sys-headline-medium-size); line-height: var(--mat-sys-headline-medium-line-height); }
|
||||
h1 { font-size: 1.5rem; }
|
||||
}
|
||||
|
||||
.global-filters { margin-block: var(--issste-space-6); padding: clamp(.75rem, 2vw, 1.5rem); border: 1px solid var(--issste-border); border-radius: var(--issste-radius); background: var(--issste-surface); min-width: 0; }
|
||||
|
||||
@@ -43,6 +43,20 @@
|
||||
--issste-radius: var(--mat-sys-corner-medium);
|
||||
}
|
||||
|
||||
/* The indicators experience: Roboto headings and square corners with a slight rounding (no pills), as in the
|
||||
reference. Scoped to the pages with the indicators header; `body` so that overlays (menus, selects, dialogs)
|
||||
share it. Rajdhani stays the heading font of the other routes. */
|
||||
body:has(.app-shell--indicadores) {
|
||||
--issste-font-heading: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
|
||||
--issste-radius: 4px;
|
||||
--mat-sys-corner-extra-small: 2px;
|
||||
--mat-sys-corner-small: 2px;
|
||||
--mat-sys-corner-medium: 4px;
|
||||
--mat-sys-corner-large: 4px;
|
||||
--mat-sys-corner-extra-large: 6px;
|
||||
--mat-sys-corner-full: 4px;
|
||||
}
|
||||
|
||||
html {
|
||||
height: 100%;
|
||||
@include mat.theme(
|
||||
|
||||
Reference in New Issue
Block a user