From b45eacec284bca8e11896c1b7cfbabe60b3db585 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Fri, 20 Aug 2021 16:36:41 -0700 Subject: [PATCH] Dark themed inputs --- src/Home.jsx | 2 +- src/Home.module.css | 5 +++++ src/Input.module.css | 19 +++++++++---------- src/Layout.module.css | 6 +++--- src/index.css | 6 +++--- 5 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/Home.jsx b/src/Home.jsx index 727c72f..fd5f8b8 100644 --- a/src/Home.jsx +++ b/src/Home.jsx @@ -69,7 +69,7 @@ export function Home({ manager }) { onLogout={onLogout} /> - +
Rooms:
diff --git a/src/Home.module.css b/src/Home.module.css index 81b696d..3b94eba 100644 --- a/src/Home.module.css +++ b/src/Home.module.css @@ -1,3 +1,8 @@ +.content { + flex: 1; + overflow: hidden; +} + .roomList { } diff --git a/src/Input.module.css b/src/Input.module.css index 4fd1079..a40024d 100644 --- a/src/Input.module.css +++ b/src/Input.module.css @@ -11,7 +11,7 @@ margin: 1em 0; border-radius: 4px; transition: border-color .25s; - border: 1px solid #e7e7e7; + border: 1px solid #394049; } .fieldRow.rightAlign { @@ -36,8 +36,8 @@ border: none; border-radius: 4px; padding: 8px 9px; - color: #2e2f32; - background-color: #fff; + color: white; + background-color: #21262c; flex: 1; min-width: 0; } @@ -49,12 +49,12 @@ .field input:placeholder-shown:focus::placeholder { transition: color .25s ease-in .1s; - color: #888; + color: #6f7882; } .field label { transition: font-size .25s ease-out .1s,color .25s ease-out .1s,top .25s ease-out .1s,background-color .25s ease-out .1s; - color: #2e2f32; + color: white; background-color: transparent; font-size: 14px; position: absolute; @@ -70,7 +70,7 @@ } .field:focus-within { - border-color: #238cf5; + border-color: #0086e6; } .field input:focus { @@ -78,17 +78,16 @@ } .field input:focus + label, .field input:not(:placeholder-shown) + label { - background-color: #fff; + background-color: #21262c; transition: font-size .25s ease-out 0s,color .25s ease-out 0s,top .25s ease-out 0s,background-color .25s ease-out 0s; font-size: 10px; top: -13px; padding: 0 2px; - background-color: #fff; pointer-events: auto; } .field input:focus + label { - color: #238cf5; + color: #0086e6; } .button { @@ -120,6 +119,6 @@ .errorMessage { margin: 0; font-size: 13px; - color: rgb(255, 75, 85); + color: #ff5b55; font-weight: 600; } \ No newline at end of file diff --git a/src/Layout.module.css b/src/Layout.module.css index 1852dea..74bb14c 100644 --- a/src/Layout.module.css +++ b/src/Layout.module.css @@ -14,7 +14,7 @@ width: auto; max-width: none; padding: 12px; - background-color: rgba(33,38,44,.9); + background-color: #21262c; border-radius: 8px; margin-bottom: 20px; } @@ -33,11 +33,11 @@ } .modal { - color: #232f32; + color: white; border-radius: 8px; padding: 25px 60px; max-width: 400px; - background-color: white; + background-color: #21262c; flex: 1; margin-bottom: 20px; } diff --git a/src/index.css b/src/index.css index 3d0f102..03972c3 100644 --- a/src/index.css +++ b/src/index.css @@ -105,7 +105,7 @@ limitations under the License. } body { - background-color: rgb(21, 25, 30); + background-color: #15191e; color: #fff; margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', @@ -125,10 +125,10 @@ html, body, #root { } a { - color: rgb(102, 180, 233); + color: #0086e6; font-weight: bold; } a:hover, a:active { - color: rgb(76, 134, 173); + opacity: 0.8; }