diff options
| author | Andrew Lee <[email protected]> | 2025-12-12 17:48:43 -0500 |
|---|---|---|
| committer | Andrew Lee <[email protected]> | 2025-12-12 17:48:43 -0500 |
| commit | 32ebc02063589a7d99af4b12e777bfd4773edc83 (patch) | |
| tree | 298ed7cab1c7dadfb56263d7e39e9b4d54d8febf | |
| parent | 07294782bdadbdf8b167860f3fc62f68c974c97a (diff) | |
| download | shiftos-archive-website-32ebc02063589a7d99af4b12e777bfd4773edc83.tar.gz shiftos-archive-website-32ebc02063589a7d99af4b12e777bfd4773edc83.tar.bz2 shiftos-archive-website-32ebc02063589a7d99af4b12e777bfd4773edc83.zip | |
add light and dark theme for the window
| -rw-r--r-- | src/styles/window.css | 56 |
1 files changed, 43 insertions, 13 deletions
diff --git a/src/styles/window.css b/src/styles/window.css index fc229cb..fb1b874 100644 --- a/src/styles/window.css +++ b/src/styles/window.css @@ -1,3 +1,46 @@ +@media (prefers-color-scheme: dark) { + .window { + background-color: #000000; + color: #FFFFFF; + } + + .button { + color: #FFFFFF; + } + + .button:hover { + background-color: #424242; + color: #FFFFFF; + } + + .button:active { + box-shadow: inset 0 0 0 1px #FFFFFF; + color: #FFFFFF; + } + +} + +@media (prefers-color-scheme: light) { + .window { + background-color: #ffffff; + color: #000000; + } + + .button { + color: #000000; + } + + .button:hover { + background-color: #bebebe; + color: #000000; + } + + .button:active { + box-shadow: inset 0 0 0 1px #000; + color: #000000; + } +} + .titlebar { background-color: #808080; color: #FFFFFF; @@ -27,9 +70,7 @@ .window { font-family: Arial, Helvetica, sans-serif; - background-color: #ffffff; margin: 1em 15%; - color: #000000; } .border { @@ -40,22 +81,11 @@ } .button { - color: #000000; padding: 15px 40px; border: solid; border-width: 2px; } - .button:hover { - background-color: #bebebe; - color: #000000; - } - - .button:active { - box-shadow: inset 0 0 0 1px #000; - color: #000000; - } - .nav { display: flex; flex-direction: column; |
