sendou.ink/app/components/layout/index.module.css
2026-03-07 08:16:12 +02:00

181 lines
2.8 KiB
CSS

.container {
flex: 1;
min-width: 0;
}
.streamXpSubtitle {
display: flex;
align-items: center;
gap: 2px;
}
.streamXpIcon {
width: 14px;
height: 14px;
}
.header {
display: flex;
width: 100%;
height: var(--layout-nav-height);
align-items: center;
gap: var(--s-3);
border-bottom: 1.5px solid var(--color-border);
background-color: var(--color-bg);
font-weight: var(--weight-extra);
padding-inline: var(--s-4);
position: sticky;
top: 0;
z-index: 10;
}
.siteTitle {
display: flex;
align-items: center;
gap: var(--s-2);
height: 100%;
min-width: 0;
}
.siteLogo {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 40px;
height: 36px;
background-color: var(--color-text-accent);
border-radius: var(--radius-field);
font-weight: var(--weight-bold);
color: var(--color-text-inverse);
text-decoration: none;
flex-shrink: 0;
transition: background-color 0.2s;
line-height: 1;
}
.siteLogoS {
font-size: 15px;
position: relative;
top: -4px;
}
.siteLogoInk {
font-size: 12px;
position: relative;
top: 5px;
}
.siteLogo:focus-visible {
outline: var(--focus-ring);
outline-offset: 1px;
}
.separator {
font-size: var(--font-xs);
color: var(--color-text-high);
font-weight: var(--weight-bold);
opacity: 0.5;
animation: fadeIn 200ms ease-out 150ms both;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 0.5;
}
}
.pageIcon {
width: 28px;
height: 28px;
flex-shrink: 0;
animation: fadeInFull 200ms ease-out 150ms both;
object-fit: cover;
}
@keyframes fadeInFull {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.pageName {
font-size: var(--font-xs);
font-weight: var(--weight-semi);
color: var(--color-text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
animation: fadeInFull 200ms ease-out 150ms both;
}
@media screen and (display-mode: standalone) {
.header {
align-items: flex-end;
padding-top: calc(var(--s-2) + env(safe-area-inset-top));
}
}
.sideNavEmpty {
font-size: var(--font-2xs);
color: var(--color-text-high);
padding: var(--s-1) var(--s-2);
margin: 0 auto;
font-style: italic;
}
.viewAllLink {
display: flex;
align-items: center;
gap: 2px;
& svg {
stroke-width: 3;
}
}
/* Doubled selector increases specificity to beat Button.module.css's display: flex */
.sideNavCollapseButton.sideNavCollapseButton {
display: none;
& svg {
color: var(--color-text);
min-width: 20px;
max-width: 20px;
}
}
@media screen and (min-width: 600px) {
.sideNavCollapseButton.sideNavCollapseButton {
display: flex;
}
}
.headerCollapsedBreadcrumbs {
display: none;
min-width: 0;
}
@media screen and (min-width: 600px) {
.headerCollapsedBreadcrumbs {
display: flex;
min-width: 0;
}
}
.mobileLogo {
display: none;
}
@media screen and (max-width: 599px) {
.mobileLogo {
display: flex;
}
}