Build a grid with proper rows/columns and some aspect ratio sanity

This commit is contained in:
Ian Gulliver
2019-06-26 18:18:21 +00:00
parent 43310a1357
commit 8a458cc4ba
2 changed files with 31 additions and 2 deletions

View File

@@ -8,6 +8,10 @@
--placeholder: #bbbbbb;
}
:root {
--editor-width: 320px;
}
body {
position: fixed;
top: 0;
@@ -21,6 +25,11 @@ body {
width: 100%;
height: 100%;
font-family: 'Courier', monospace;
display: grid;
grid-template:
[row1-start] "editor grid" 100% [row1-end]
/ var(--editor-width) auto;
}
.editor {
@@ -34,7 +43,7 @@ body {
outline: 1px solid black;
height: 100%;
width: 320px;
width: 100%;
overflow-y: scroll;
}
@@ -108,3 +117,10 @@ body {
.editor .editor {
margin: 5px;
}
.grid {
width: 100%;
height: 100%;
display: grid;
align-content: center;
}