DataTransfer/DataTransfer/Components/Layout/MainLayout.razor.css
2026-10-15 20:09:11 +02:00

185 lines
3.5 KiB
CSS

.shell {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.app-header {
background-color: var(--header-bg);
color: var(--header-text);
}
.app-header-inner,
.app-main,
.app-footer-inner {
width: 100%;
max-width: 72rem;
margin: 0 auto;
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.app-header-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
height: 3.25rem;
}
.brand {
display: inline-flex;
align-items: center;
gap: 0.625rem;
font-size: 1rem;
font-weight: 600;
letter-spacing: 0.01em;
color: inherit;
text-decoration: none;
border-radius: var(--radius);
}
.brand:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
}
.brand-mark {
display: grid;
place-items: center;
width: 1.75rem;
height: 1.75rem;
border-radius: var(--radius);
background-color: var(--primary);
color: #fff;
}
.brand-mark ::deep .icon {
width: 1.125rem;
height: 1.125rem;
stroke-width: 2.25;
}
.header-meta {
display: flex;
align-items: center;
gap: 1.25rem;
min-width: 0;
}
.header-note {
display: inline-flex;
align-items: center;
gap: 0.375rem;
color: var(--header-muted);
font-size: 0.8125rem;
white-space: nowrap;
}
.header-note ::deep .icon {
width: 0.875rem;
height: 0.875rem;
}
.app-main {
flex: 1;
padding-top: 1.75rem;
padding-bottom: 2.5rem;
}
.app-footer {
border-top: 1px solid var(--border);
}
.footer-links {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 1rem;
width: 100%;
}
/* ::deep also reaches the link rendered by SourceCodeLink and the Icon components. */
.footer-links ::deep a {
display: inline-flex;
align-items: center;
gap: 0.3125rem;
color: inherit;
}
.footer-links ::deep a:hover {
color: var(--text);
}
.footer-links ::deep .icon {
width: 0.8125rem;
height: 0.8125rem;
}
.app-footer-inner {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0.25rem 1.5rem;
padding-top: 0.875rem;
padding-bottom: 0.875rem;
color: var(--text-muted);
font-size: 0.75rem;
}
@media (max-width: 560px) {
.app-header-inner,
.app-main,
.app-footer-inner {
padding-left: 1rem;
padding-right: 1rem;
}
.app-main {
padding-top: 1.25rem;
}
.header-meta {
gap: 0.875rem;
}
/* Only the lock icon remains visible; the text stays available to screen readers. */
.header-note-text {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
}
#blazor-error-ui {
color-scheme: light only;
display: none;
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
padding: 0.75rem 3rem 0.75rem 1.25rem;
border-top: 1px solid #e3c27a;
background-color: #fcf1dc;
color: #4a3300;
font-size: 0.875rem;
box-shadow: 0 -2px 8px rgb(0 0 0 / 0.08);
}
#blazor-error-ui .reload {
margin-left: 0.5rem;
color: inherit;
font-weight: 600;
}
#blazor-error-ui .dismiss {
position: absolute;
top: 50%;
right: 1rem;
display: grid;
transform: translateY(-50%);
cursor: pointer;
}