Navigation: Seitenleiste schwebt über dem linken Rand
Auf dem Desktop reserviert die Seitenleiste keine Fläche mehr; die Inhaltsspalte bleibt in der Seitenmitte und rückt nur nach rechts, wenn sie sonst unter der Leiste läge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0cddf2b00f
commit
f8cd808c2d
+12
-6
@@ -233,10 +233,6 @@ h2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 900px) {
|
@media (min-width: 900px) {
|
||||||
.page {
|
|
||||||
margin-left: 15rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobile-only,
|
.mobile-only,
|
||||||
#tabbar,
|
#tabbar,
|
||||||
.backdrop {
|
.backdrop {
|
||||||
@@ -246,12 +242,22 @@ h2 {
|
|||||||
|
|
||||||
/* --- Inhaltsspalte --- */
|
/* --- Inhaltsspalte --- */
|
||||||
main {
|
main {
|
||||||
max-width: 600px;
|
--main-w: 600px;
|
||||||
|
max-width: var(--main-w);
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
main.wide {
|
main.wide {
|
||||||
max-width: 1200px;
|
--main-w: 1200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Desktop: die Seitenleiste schwebt über dem linken Rand und reserviert keine
|
||||||
|
Fläche. Die Spalte bleibt in der Seitenmitte und rückt nur nach rechts, wenn
|
||||||
|
sie sonst unter der Leiste (15rem) läge. */
|
||||||
|
@media (min-width: 900px) {
|
||||||
|
main {
|
||||||
|
margin-left: max(16rem, (100% - var(--main-w)) / 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
main > section,
|
main > section,
|
||||||
|
|||||||
Reference in New Issue
Block a user