css: fix home layout
This commit is contained in:
parent
14b8c5a999
commit
017166dd06
1 changed files with 19 additions and 11 deletions
|
|
@ -23,6 +23,8 @@
|
|||
--bg-id-remote-loading: #FCE4EC;
|
||||
--bg-id-remote-not-found: black;
|
||||
--bg-id-remote-ready: blue;
|
||||
|
||||
--nav-height: 3vh;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -38,8 +40,6 @@ body {
|
|||
color: var(--light-text);
|
||||
background-color: var(--bg);
|
||||
font-size: 18px;
|
||||
display: grid;
|
||||
grid-template-rows: 3fr 97fr;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
|
|
@ -51,6 +51,7 @@ nav {
|
|||
background-color: var(--bg-nav);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: var(--nav-height);
|
||||
}
|
||||
|
||||
nav div {
|
||||
|
|
@ -82,23 +83,30 @@ nav a:hover, nav button:hover,
|
|||
background-color: var(--bg-nav-hover);
|
||||
}
|
||||
|
||||
/* todo: use sub-grid? */
|
||||
.home-page {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 60fr 40fr ;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
grid-template-columns: 3fr 2fr;
|
||||
}
|
||||
|
||||
.home-left, .home-right {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: calc(100vh - var(--nav-height));
|
||||
}
|
||||
|
||||
.home-left {
|
||||
grid-row: 2;
|
||||
grid-column: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.home-right {
|
||||
grid-row: 2;
|
||||
grid-column: 2;
|
||||
top: var(--nav-height);
|
||||
}
|
||||
|
||||
#map {
|
||||
position: sticky !important;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue