84 lines
5.2 KiB
SCSS
84 lines
5.2 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: var(--mat-sys-headline-large); font-family: var(--issste-font-heading); font-weight: 700; margin: .65rem 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); }
|
|
// Kept here (not moved to our app shell, see the template comment above the
|
|
// nav) -- same rules as before upstream relocated its own copy into app.scss.
|
|
.domain-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--issste-space-2);
|
|
padding: var(--issste-space-2);
|
|
justify-content: center;
|
|
margin: var(--issste-space-4) 0;
|
|
border-radius: var(--issste-radius);
|
|
}
|
|
.domain-nav a {
|
|
flex: 0 1 6rem;
|
|
max-width: 10rem;
|
|
color: var(--issste-text);
|
|
border: 1px solid var(--issste-border);
|
|
background: var(--issste-surface);
|
|
min-height: 44px;
|
|
border-radius: var(--issste-radius);
|
|
}
|
|
.domain-nav a[aria-current='page'] {
|
|
background: var(--issste-accent);
|
|
font-weight: 700;
|
|
text-decoration: none;
|
|
}
|
|
@media (max-width: 550px) {
|
|
.domain-nav { gap: var(--issste-space-2); padding-inline: 0; }
|
|
}
|
|
.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-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); }
|
|
.catalog-grid { align-items: stretch; }
|
|
.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; justify-content: flex-end; margin-top: var(--issste-space-4); }
|
|
.catalog-search mat-form-field { width: 100%; min-width: 0; max-width: 32rem; }
|
|
.catalog-search button { width: 48px; height: 48px; }
|
|
.catalog-search button:focus-visible { outline: 2px solid var(--issste-text); outline-offset: -3px; }
|
|
// Keep search semantics; Material supplies the single accessible clear control.
|
|
.catalog-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
|
|
.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: var(--mat-sys-headline-medium-size); line-height: var(--mat-sys-headline-medium-line-height); }
|
|
}
|
|
|
|
.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; }
|
|
|
|
@container dashboard (min-width: 1000px) { .kpi-grid { grid-template-columns: repeat(min(3, var(--kpi-count)), 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);
|
|
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; } }
|