mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
72 lines
1.3 KiB
CSS
72 lines
1.3 KiB
CSS
.container {
|
|
margin-inline: auto;
|
|
inline-size: min(100% - var(--space-m), 75ch);
|
|
}
|
|
|
|
nav {
|
|
position: sticky;
|
|
block-size: var(--space-xl);
|
|
display: flex;
|
|
align-items: center;
|
|
inset-block-start: 0;
|
|
background-color: var(--bg-primary);
|
|
border-block-end: var(--border-primary);
|
|
}
|
|
|
|
header > .container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-s);
|
|
}
|
|
|
|
header img {
|
|
inline-size: 100%;
|
|
block-size: 300px;
|
|
object-fit: cover;
|
|
object-position: center;
|
|
}
|
|
|
|
nav,
|
|
header,
|
|
main,
|
|
footer {
|
|
padding-block: var(--space-s);
|
|
}
|
|
|
|
.articles ul {
|
|
display: flex;
|
|
flex-direction: column;
|
|
list-style: none;
|
|
gap: var(--space-s);
|
|
}
|
|
|
|
.articles li {
|
|
border: var(--border-primary);
|
|
padding: var(--space-s);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
section {
|
|
scroll-margin-block-start: var(--space-xl);
|
|
}
|
|
|
|
@media (min-width: 1525px) {
|
|
#table-of-contents {
|
|
position: fixed;
|
|
inset-inline-start: calc(50% + 37.5ch + var(--space-m));
|
|
inset-block-start: calc(var(--space-xl) + var(--space-s));
|
|
max-inline-size: 35ch;
|
|
max-block-size: calc(100vh - (var(--space-xl) + 2 * var(--space-s)));
|
|
overflow-y: auto;
|
|
padding: var(--space-s);
|
|
background-color: var(--bg-primary);
|
|
border: var(--border-primary);
|
|
}
|
|
|
|
#table-of-contents + section {
|
|
margin-block-start: 0;
|
|
}
|
|
}
|