css: fix home layout

This commit is contained in:
Swrup 2025-04-15 07:54:35 +02:00
parent 14b8c5a999
commit 017166dd06

View file

@ -23,6 +23,8 @@
--bg-id-remote-loading: #FCE4EC; --bg-id-remote-loading: #FCE4EC;
--bg-id-remote-not-found: black; --bg-id-remote-not-found: black;
--bg-id-remote-ready: blue; --bg-id-remote-ready: blue;
--nav-height: 3vh;
} }
@ -38,8 +40,6 @@ body {
color: var(--light-text); color: var(--light-text);
background-color: var(--bg); background-color: var(--bg);
font-size: 18px; font-size: 18px;
display: grid;
grid-template-rows: 3fr 97fr;
height: 100vh; height: 100vh;
} }
@ -51,6 +51,7 @@ nav {
background-color: var(--bg-nav); background-color: var(--bg-nav);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
height: var(--nav-height);
} }
nav div { nav div {
@ -82,23 +83,30 @@ nav a:hover, nav button:hover,
background-color: var(--bg-nav-hover); background-color: var(--bg-nav-hover);
} }
/* todo: use sub-grid? */
.home-page { .home-page {
position: relative;
display: grid; display: grid;
grid-template-columns: 60fr 40fr ; grid-template-columns: 3fr 2fr;
width: 100%;
height: 100%;
} }
.home-left, .home-right { .home-left, .home-right {
position: relative; height: calc(100vh - var(--nav-height));
width: 100%; }
height: 100%;
.home-left {
grid-row: 2;
grid-column: 1;
overflow-y: auto;
}
.home-right {
grid-row: 2;
grid-column: 2;
top: var(--nav-height);
} }
#map { #map {
position: sticky !important; height: 100%;
height: 100vh;
width: 100%; width: 100%;
top: 0; top: 0;
left: 0; left: 0;