feature: make it more usable on mobile by default

This commit is contained in:
Jiehong Ma 2021-10-02 23:25:22 +02:00
parent 4de330f3ea
commit d4772962c6

View File

@ -1,3 +1,7 @@
:root {
font-size: 2.0rem;
}
body { body {
margin: 0; margin: 0;
} }
@ -15,11 +19,10 @@ h1 {
display:flex; display:flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
flex-flow: column;
} }
#top a { #top a {
position: fixed;
right: 2em;
font-size: .8em; font-size: .8em;
} }
@ -30,13 +33,37 @@ h1 {
#content { #content {
display: grid; display: grid;
grid-template-areas: grid-template-areas:
"query query query query" "query"
"input input output output"; "input"
"output";
gap: 1em; gap: 1em;
grid-template-rows: auto 1fr; grid-template-rows: auto 1fr 1fr;
padding: 1em; padding: 1em;
height: 80vh; height: 90vh;
}
@media only screen and (min-width: 1000px) {
/* For Desktops */
:root {
font-size: 1.2rem;
}
#content {
grid-template-areas:
"query query query query"
"input input output output";
grid-template-rows: auto 1fr;
}
#top {
flex-flow: row;
}
#top a {
position: fixed;
right: 2em;
}
} }
textarea { textarea {
@ -100,6 +127,10 @@ textarea {
font-weight: normal; font-weight: normal;
} }
input[type=checkbox] {
transform: scale(1.3);
}
#input { #input {
grid-area: input; grid-area: input;