From 093f025de3e97339750dc3df5be626a0315507dc Mon Sep 17 00:00:00 2001 From: Ben Woodward Date: Thu, 5 Aug 2021 12:12:17 -0700 Subject: Style and code refactor (#166) * Move all settings below card * refactor components; lifting state up * background color * Evergreen components for everything * password error * Tighten card size * Simply hide password to basic toggle, never disable * Hide password label, too * Maximize mobile portrait width * Make wifi tip smaller * Small style tweaks * Copy: update password length error text to include helpful instructions This will need a backfill for other translations * Remove unused css * Use empty string for EncryptionMode=None value * Remove light.min.css * Include logo on wificard * Cleanup after rebase * Clean-up comments on state * Padding for mobile --- src/components/style.css | 46 +++++++++++++++++++++------------------------- 1 file changed, 21 insertions(+), 25 deletions(-) (limited to 'src/components/style.css') diff --git a/src/components/style.css b/src/components/style.css index c9dbb54..fa931bb 100644 --- a/src/components/style.css +++ b/src/components/style.css @@ -2,8 +2,7 @@ #print-area { border-color: #aaa; - border-style: dashed; - margin-bottom: 2em; + margin-bottom: 1em; margin-top: 2em; padding: 1em; } @@ -16,39 +15,39 @@ .qrcode { margin-bottom: 1em; max-width: 175px; - min-width: 175px; } .hidden { display: none; } - textarea { background-color: #fff; border: solid 1px #ddd; - font-family: 'Source Code Pro', serif; - font-size: 1.3em; - font-weight: bold; - height: 3em; + font-family: 'Source Code Pro', serif !important; + font-size: 1em !important; + font-weight: bold !important; + margin-bottom: 0; + height: 40px !important; + min-height: 0px !important; overflow: hidden; resize: none; } +textarea#password { + height: 60px !important; +} + +hr { + margin-top: 0; +} button { height: 50px; width: 180px; } -button#print { - color: #fff; - background-color: #0074d9; - border-color: #0074d9; -} - -button#rotate { - color: #fff; - background-color: #6c757d; - border-color: #6c757d; +#settings { + margin-bottom: 1em; + padding: 1em; } @media print { @@ -59,19 +58,16 @@ button#rotate { #print-area * { visibility: visible; } + #print-area { + border-style: dashed; + box-shadow: none; + } #print-area textarea { border: none; } - .no-print { - display: none; - } #print-area { position: absolute; left: 0; top: 0; } } - -hr { - margin-top: 25px; -} -- cgit v1.2.3