Files
WebApp/src/app/app.scss
T
Angel Capetillo Zavala e95c175f9b fix(shell): load the domain menu deferred and let the header wrap on narrow screens
The menu and its overlay were in the initial bundle of every route (+183 kB); they now load in their own chunk, with a same-size placeholder. On phones the title moves to a second row instead of being squeezed beside the selector.

(cherry picked from commit 2ccddf80dbbe41a328281fcdc1c95ebe421f4191)
2026-11-12 01:43:27 -06:00

129 lines
2.6 KiB
SCSS

.app-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
}
.site-header {
background: var(--color-surface);
border-bottom: 1px solid var(--color-border);
}
.site-header__content {
align-items: center;
display: flex;
justify-content: space-between;
min-height: var(--site-header-height);
padding: 0 clamp(32px, 3.2vw, 48px);
}
.brand {
align-items: center;
display: inline-flex;
}
.brand img {
display: block;
height: auto;
width: clamp(180px, 16vw, 200px);
}
.site-header__nav {
align-items: center;
display: flex;
gap: 6px;
}
.site-header__crumb {
color: var(--color-primary);
font-size: 15px;
font-weight: 600;
}
.site-header__section {
text-decoration: none;
color: var(--color-text);
font-size: 15px;
font-weight: 500;
letter-spacing: 0.01em;
}
.app-main {
display: flex;
flex: 1;
min-height: 0;
}
.app-shell--workspace {
height: 100dvh;
overflow: hidden;
}
.site-footer {
background: var(--color-text-secondary);
}
.site-footer__content {
align-items: center;
display: flex;
justify-content: center;
min-height: 86px;
padding: 0 clamp(32px, 3.2vw, 48px);
}
.site-footer img {
display: block;
filter: brightness(0) invert(1);
height: auto;
width: clamp(160px, 15vw, 185px);
}
@media (max-width: 600px) {
.site-header__content {
min-height: var(--site-header-height);
padding: 0 20px;
}
.brand img {
width: clamp(132px, 42vw, 170px);
}
.site-header__section {
font-size: 13px;
text-align: right;
}
.site-footer__content {
min-height: 76px;
padding: 0 20px;
}
.site-footer img {
width: 155px;
}
}
.platform-title {
color: var(--color-text);
font-family: var(--issste-font-heading);
font-size: 1.25rem;
font-weight: 500;
line-height: 1.15;
margin-inline-start: var(--issste-space-4);
margin-inline-end: auto;
overflow-wrap: anywhere;
}
.domain-selector--espera {
align-items: center; border-radius: var(--issste-radius); box-sizing: border-box; display: inline-flex; flex: 0 0 auto;
background-color: var(--issste-accent); color: var(--issste-text); font-weight: 700; min-height: 40px; padding: 0 16px; white-space: nowrap;
}
// Narrow screens: logo and selector share the first row and the title takes the second, so neither is squeezed.
@media (max-width: 599px) {
.app-shell--indicadores .site-header__content { flex-wrap: wrap; row-gap: 0; padding-block: 6px 8px; }
.app-shell--indicadores .brand { margin-inline-end: auto; }
.platform-title { order: 3; flex: 1 0 100%; margin: 4px 0 0; font-size: 1.125rem; min-width: 0; }
}