117 lines
2.0 KiB
SCSS
117 lines
2.0 KiB
SCSS
.shell {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100dvh;
|
|
}
|
|
|
|
.header {
|
|
align-items: center;
|
|
background: var(--color-surface);
|
|
border-bottom: 1px solid var(--color-border);
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
min-height: var(--header-height);
|
|
padding: 0 clamp(16px, 3.2vw, 48px);
|
|
}
|
|
|
|
.brand img {
|
|
display: block;
|
|
width: clamp(132px, 16vw, 200px);
|
|
}
|
|
|
|
.title {
|
|
flex: 1;
|
|
min-width: 0; // gives way to the switcher and the sections, on one line
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 1.25rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
// Nothing in the header wraps or shrinks: the title gives way first, then hides.
|
|
.domain,
|
|
.sections a,
|
|
.user {
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.domain {
|
|
--mat-button-filled-container-color: var(--color-primary);
|
|
--mat-button-filled-label-text-color: var(--color-text);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.sections {
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
}
|
|
|
|
.sections a {
|
|
color: var(--color-text-secondary);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sections a.active {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.main {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.footer {
|
|
align-items: center;
|
|
background: var(--color-text-secondary);
|
|
display: flex;
|
|
justify-content: center;
|
|
min-height: 86px;
|
|
}
|
|
|
|
.footer img {
|
|
filter: brightness(0) invert(1);
|
|
width: clamp(155px, 15vw, 185px);
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.title {
|
|
display: none;
|
|
}
|
|
.header {
|
|
justify-content: space-between;
|
|
gap: var(--space-3);
|
|
}
|
|
.sections {
|
|
gap: var(--space-3);
|
|
}
|
|
// the account by its icon alone; the switcher's name cut short if it must be
|
|
.user .who-name {
|
|
display: none;
|
|
}
|
|
.domain {
|
|
max-width: 15rem;
|
|
}
|
|
.domain ::ng-deep .mdc-button__label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.header {
|
|
flex-wrap: wrap;
|
|
padding-block: var(--space-2);
|
|
}
|
|
}
|
|
|
|
.user {
|
|
color: var(--color-text-secondary);
|
|
font-weight: 600;
|
|
}
|