From 054190a9586d7f5e09f8ff1dbc0da005c8cab92a Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Tue, 31 Oct 2023 19:26:01 +0100 Subject: [PATCH] Add some padding and update colors --- src/style.css | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/style.css b/src/style.css index 63ffa61..b3adf0e 100644 --- a/src/style.css +++ b/src/style.css @@ -38,6 +38,7 @@ button { border-radius: 8px; border: 1px solid transparent; padding: 0.6em 1.2em; + margin: 0.2em; font-size: 1em; font-weight: 500; font-family: inherit; @@ -53,29 +54,20 @@ button:focus-visible { outline: 4px auto -webkit-focus-ring-color; } -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button, #light { - background-color: #f9f9f9; - } -} - #output { display: flex; + align-items: center; + margin-bottom: .4em; } #display { flex-grow: 1; + text-align: left; + padding: 0.5em 1.2em; } #light { - width: 24px; - height: 24px; + width: 2.5em; + height: 2.5em; border-radius: 50%; background-color: #1a1a1a; } @@ -97,3 +89,16 @@ button:focus-visible { #keypad > button:last-child { grid-column: 3; } + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button, #light { + background-color: #eeeeee; + } +}