From 19db9b188f3eedda8030d16ff41498c496445e6f Mon Sep 17 00:00:00 2001 From: Michael Murtaugh Date: Tue, 28 Jan 2025 11:44:17 +0100 Subject: [PATCH] update index+css --- call/static/call/index.css | 82 +++++++++++++++++++++++++++++----- call/templates/call/index.html | 8 ++-- 2 files changed, 73 insertions(+), 17 deletions(-) diff --git a/call/static/call/index.css b/call/static/call/index.css index 987d8a3..1777c4c 100644 --- a/call/static/call/index.css +++ b/call/static/call/index.css @@ -1,12 +1,25 @@ -body, html { background: #fff; text-align: center; } -* { box-sizing: border-box; font-family: monospace; font-size: 14px; } -h1 { font-size: 28px; margin: 0 0 10px 0; padding: 0; } +body, html { + background: #fff; + text-align: center; +} +body { + margin: 5%; +} +* { + box-sizing: border-box; + font-family: monospace; + font-size: 14px; +} +h1 { + font-size: 28px; + margin: 0 0 10px 0; + padding: 0; +} #root { - width: 460px; + max-width: 512px; /* white-space: nowrap; */ margin: 0 auto; } - canvas { image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; @@ -25,14 +38,56 @@ canvas { padding: 8px; display: none; } -label { display: block; } -label > input { width: 240px; } -label > span { display: inline-block; vertical-align: middle; width: 55px; } -input[type=range]{ vertical-align: middle; } -#inputs { display: inline-block; vertical-align: top; text-align: left; margin-top: 1em;} -.btn, button { background: #fff; text-align: center; min-width: 144px; display: inline-block; padding: 16px 32px; border: 1px solid black; color: black; text-decoration: none; font-size: 1em; margin: 0 0 10px 0; } +#inputs { + /* display: flex; */ + /* display: inline-block; */ + /* vertical-align: top; */ + /* text-align: left; */ + margin-top: 1em; +} + +#inputs label { + display: flex; +} +#inputs label span { + width: 55px; + flex: 0 0 auto; +} +#inputs label input { + flex: 1 1 auto; +} + +/* label { + display: block; +} +label > input { + width: 240px; +} +label > span { + display: inline-block; + vertical-align: middle; + width: 55px; +} +input[type=range]{ + vertical-align: middle; +} */ + + + +.btn, button { + background: #fff; + text-align: center; + min-width: 144px; + display: inline-block; + padding: 16px 32px; + border: 1px solid black; + color: black; + text-decoration: none; + font-size: 1em; + margin: 0 0 10px 0; +} .btn:hover, button:hover { background: #eee } .btn:active, button:active{ background: #ccc } @@ -43,7 +98,10 @@ input[type=range]{ vertical-align: middle; } .rootloading { display: none } -div.colormode { max-width: 240px; white-space: nowrap } +div.colormode { + max-width: 240px; + white-space: nowrap; +} #caption { font-family: monospace; diff --git a/call/templates/call/index.html b/call/templates/call/index.html index a45ad75..d4cee8d 100644 --- a/call/templates/call/index.html +++ b/call/templates/call/index.html @@ -40,8 +40,10 @@ +
+ +
-
@@ -64,10 +66,6 @@ -
- -
-

The heart of this webpage is the 2bitcharactergenerator, by 0x72,