diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/static/style.css | 57 |
1 files changed, 35 insertions, 22 deletions
diff --git a/web/static/style.css b/web/static/style.css index f22e29c..0dc65f7 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -17,7 +17,7 @@ div#main { margin: 2px; display: grid; - grid-template-columns: 1fr 2fr; + grid-template-columns: 60vh 1fr; grid-template-rows: min-content 1fr; grid-template-areas: "keypad settings-bar" "keypad match"; } @@ -25,6 +25,8 @@ div#main { div#keypad { grid-area: keypad; + font-size: 2vh; + display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: min-content 2fr; @@ -32,7 +34,7 @@ div#keypad { } div#oi { - font-size: 4vh; + font-size: 2em; display: flex; align-items: center; @@ -41,10 +43,10 @@ div#oi { div#user-rem, div#boat-rem { background-color: #333; - font-size: 3vh; + font-size: 1.5em; margin: 2px; - padding: 0.25em; + padding: 0.4rem; display: flex; align-items: center; @@ -74,7 +76,7 @@ div#prompt-container { } div#prompt-msg, div#prompt, div#prompt-sugg { - font-size: 3vh; + font-size: 1.5em; display: grid; align-items: center; @@ -82,7 +84,7 @@ div#prompt-msg, div#prompt, div#prompt-sugg { } div#prompt { - font-size: 10vh; + font-size: 5em; } div#prompt-sugg { @@ -92,7 +94,7 @@ div#prompt-sugg { div.key { color: #aaa; background-color: #282828; - font-size: 3vh; + font-size: 1.5em; margin: 2px; @@ -113,7 +115,7 @@ div.key:active { } div.key.num { - font-size: 5vh; + font-size: 2.5em; font-weight: 700; } @@ -121,15 +123,19 @@ div#settings-bar { grid-area: settings-bar; background-color: #333; - font-size: 3vh; + font-size: 2vh; margin: 2px; - padding: 0.25em; + padding: 0.4rem; display: flex; align-items: center; justify-content: left; - gap: 0.25em; + gap: 0.4rem; +} + +div#settings-bar div { + font-size: 1.5em; } div#settings-bar div.input.first { @@ -146,18 +152,18 @@ div#settings-bar div.input { } div#settings-bar span { - padding: 0 0.25em; + padding: 0 0.4rem; } div#settings-bar input { color: #ddd; background-color: #304; font-family: inherit; - font-size: 3vh; + font-size: 1em; text-align: right; width: 4ch; - padding: 0 0.25em; + padding: 0 0.4rem; border: 0; } @@ -165,7 +171,7 @@ div#settings-bar div.help-button { background-color: #304; font-weight: bold; - padding: 0 0.5em; + padding: 0 0.4em; } @media (hover: hover) and (pointer: fine) { @@ -196,20 +202,21 @@ div#match { grid-area: match; background-color: #333; - font-size: 3vh; + font-size: 2vh; overflow-y: scroll; margin: 2px; - padding: 0.25em; + padding: 0.4rem; display: grid; grid-template-columns: repeat(6, max-content); grid-auto-rows: min-content; - grid-row-gap: 0.2em; - grid-column-gap: 1em; + grid-row-gap: 0.3em; + grid-column-gap: 1.5em; } div#match div { + font-size: 1.5em; font-family: monospace; white-space: pre; @@ -281,14 +288,19 @@ a:hover { color: #7d0; } -@media (max-aspect-ratio: 1/1) { +@media (max-aspect-ratio: 4/3) { div#main { grid-template-columns: 1fr; grid-template-rows: min-content 1fr 3fr; grid-template-areas: "settings-bar" "match" "keypad"; } + + div#keypad, div#match, div#settings-bar { + font-size: clamp(1.5vh, 2vw, 2vh); + } } +/* @media (max-aspect-ratio: 3/5) { div#settings-bar div.input { display: flex; @@ -296,10 +308,11 @@ a:hover { } div#settings-bar span { - padding: 0 0.25em; + padding: 0 0.4rem; } div#settings-bar .help-button { - font-size: 6vh; + font-size: 3em; } } +*/ |