187 lines
3.5 KiB
CSS
187 lines
3.5 KiB
CSS
.lts-app-header {
|
|
position: sticky;
|
|
top: calc(0px - var(--app-header-row-height));
|
|
z-index: 50;
|
|
flex-shrink: 0;
|
|
background: var(--color-background-body);
|
|
}
|
|
|
|
.lts-app-header-inner {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
grid-template-rows: var(--app-header-row-height) minmax(0, 1fr);
|
|
height: var(--app-header-height);
|
|
align-items: center;
|
|
column-gap: 16px;
|
|
max-width: 1320px;
|
|
margin-inline: auto;
|
|
padding-inline: 16px;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.lts-header-brand {
|
|
grid-column: 1;
|
|
grid-row: 1;
|
|
display: flex;
|
|
min-width: 0;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
flex-direction: column;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.lts-header-brand-name {
|
|
overflow: hidden;
|
|
font-size: 19px;
|
|
font-weight: 850;
|
|
line-height: 1.1;
|
|
letter-spacing: -0.7px;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.lts-header-brand-tagline {
|
|
margin-top: 5px;
|
|
color: var(--color-text-secondary);
|
|
font-size: 7px;
|
|
font-weight: 750;
|
|
line-height: 1.1;
|
|
letter-spacing: 2.5px;
|
|
}
|
|
|
|
.lts-header-actions {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.lts-header-icon-button {
|
|
display: grid;
|
|
width: 38px;
|
|
height: 38px;
|
|
flex-shrink: 0;
|
|
place-items: center;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 9px;
|
|
background: var(--color-background-card);
|
|
color: var(--color-text-secondary);
|
|
transition: background-color 150ms, color 150ms;
|
|
}
|
|
|
|
.lts-header-theme-toggle {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.lts-header-icon-button:hover {
|
|
background: var(--lts-sunken);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.lts-primary-nav {
|
|
grid-column: 1 / -1;
|
|
grid-row: 2;
|
|
display: flex;
|
|
height: 100%;
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
gap: clamp(20px, 5vw, 36px);
|
|
}
|
|
|
|
.lts-primary-nav-link {
|
|
position: relative;
|
|
display: inline-flex;
|
|
min-width: 36px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--color-text-secondary);
|
|
font-size: 13px;
|
|
font-weight: 650;
|
|
white-space: nowrap;
|
|
transition: color 150ms;
|
|
}
|
|
|
|
.lts-primary-nav-link:hover,
|
|
.lts-primary-nav-link[aria-current] {
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.lts-primary-nav-link[aria-current]::after {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: -1px;
|
|
left: 0;
|
|
height: 3px;
|
|
border-radius: 3px 3px 0 0;
|
|
background: var(--color-brand-coral);
|
|
content: "";
|
|
}
|
|
|
|
.lts-app-header :focus-visible {
|
|
outline: 2px solid var(--color-win);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.lts-primary-nav-link:focus-visible {
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.lts-app-shell--without-nav {
|
|
--app-header-nav-height: 0px;
|
|
}
|
|
|
|
.lts-app-header--without-nav {
|
|
position: static;
|
|
}
|
|
|
|
.lts-app-header--without-nav .lts-app-header-inner {
|
|
height: 60px;
|
|
grid-template-rows: minmax(0, 1fr);
|
|
}
|
|
|
|
@media (width >= 48rem) {
|
|
.lts-app-header-inner {
|
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
grid-template-rows: minmax(0, 1fr);
|
|
column-gap: 24px;
|
|
padding-inline: 24px;
|
|
}
|
|
|
|
.lts-header-brand-name {
|
|
font-size: 22px;
|
|
}
|
|
|
|
.lts-header-brand-tagline {
|
|
margin-top: 6px;
|
|
font-size: 8px;
|
|
}
|
|
|
|
.lts-header-actions {
|
|
grid-column: 3;
|
|
}
|
|
|
|
.lts-primary-nav {
|
|
grid-column: 2;
|
|
grid-row: 1;
|
|
gap: 36px;
|
|
}
|
|
|
|
.lts-primary-nav-link {
|
|
min-width: 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.lts-app-header--without-nav .lts-app-header-inner {
|
|
height: 74px;
|
|
}
|
|
}
|
|
|
|
@media (width >= 80rem) {
|
|
.lts-app-header-inner {
|
|
padding-inline: 40px;
|
|
}
|
|
}
|