diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-02-03 23:40:06 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-05 13:26:41 +0100 |
commit | 2394f481b12aeb75db4c61ef00eddfd65bb54e8a (patch) | |
tree | 4b90aac57245be197b3aab993e66095969822ea6 /public | |
parent | 0dcf5df6d0197635ee3a6c837c21022e630f657f (diff) | |
download | server-2394f481b12aeb75db4c61ef00eddfd65bb54e8a.tar.gz |
Very basic dark mode theme.
Tone down the background color to light gray instead of white, if dark
mode is preferred by the browser.
Diffstat (limited to 'public')
-rw-r--r-- | public/images/rally-the-troops.svg | 4 | ||||
-rw-r--r-- | public/style.css | 12 |
2 files changed, 15 insertions, 1 deletions
diff --git a/public/images/rally-the-troops.svg b/public/images/rally-the-troops.svg index da7b407..fac34c4 100644 --- a/public/images/rally-the-troops.svg +++ b/public/images/rally-the-troops.svg @@ -1 +1,3 @@ -<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M462.9 19.12c-9.6 0-17.2 7.59-17.2 17.19 0 9.61 7.6 17.19 17.2 17.19s17.2-7.58 17.2-17.19c0-9.6-7.6-17.19-17.2-17.19zm-80.3 21.82c-160.3.8-218.1 217.46-362.93 96.26 3.25 36.8 88.43 78.4 88.43 78.4-26.03 20-34.78 24.7-71.99 25.5 104.09 86.7 338.69-99.8 408.39 40.1l-2.3-38.4-45.4-46.5 42.7.6-.6-10.2-50.7-32.2 48.4-7.2-.7-11.1-50-27.3 47.9-8.8-.6-10.69L381 66.66l50.5-5.85-.8-13.9c-17.1-4.2-33-6.05-48.1-5.97zm70.8 29.97l20.2 423.99 18.7-.9-20.2-423c-6.3 1.54-12.7 1.5-18.7-.1zM360 292.9l-43.6 70 21.3 25L322 493h18.9l15.2-102.3 28-20.2c-8.1-25.9-16.1-51.8-24.1-77.6zm-156.7 17.9l-28.8 69.8 20.5 20.2 2.2 92.2h18.7l-2.2-93 19.6-19.9-30-69.3zm-158.16 5l-16.4 61.9 17.65 13.2L61.24 493h18.87L64.89 388.3l13.22-17.6-32.93-54.9zm85.96 7.4l-28.2 57.5 15.1 17-6.7 95.3H130l6.8-95.3 15.9-14.2-21.6-60.3zM268 355.5l-19.5 68.4 19.4 15.2 5.8 53.9h18.9l-5.9-54.3 16.8-21.6c-11.9-20.5-23.7-41-35.5-61.6zm143.6.1l-18.9 68.6 20.3 15.5 6.2 53.3H438l-6.4-55.2 16-20.9z" fill="#000000" fill-opacity="1"></path></g></svg>
\ No newline at end of file +<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> +<path class="a" d="M462.9 19.12c-9.6 0-17.2 7.59-17.2 17.19 0 9.61 7.6 17.19 17.2 17.19s17.2-7.58 17.2-17.19c0-9.6-7.6-17.19-17.2-17.19zm-80.3 21.82c-160.3.8-218.1 217.46-362.93 96.26 3.25 36.8 88.43 78.4 88.43 78.4-26.03 20-34.78 24.7-71.99 25.5 104.09 86.7 338.69-99.8 408.39 40.1l-2.3-38.4-45.4-46.5 42.7.6-.6-10.2-50.7-32.2 48.4-7.2-.7-11.1-50-27.3 47.9-8.8-.6-10.69L381 66.66l50.5-5.85-.8-13.9c-17.1-4.2-33-6.05-48.1-5.97zm70.8 29.97l20.2 423.99 18.7-.9-20.2-423c-6.3 1.54-12.7 1.5-18.7-.1zM360 292.9l-43.6 70 21.3 25L322 493h18.9l15.2-102.3 28-20.2c-8.1-25.9-16.1-51.8-24.1-77.6zm-156.7 17.9l-28.8 69.8 20.5 20.2 2.2 92.2h18.7l-2.2-93 19.6-19.9-30-69.3zm-158.16 5l-16.4 61.9 17.65 13.2L61.24 493h18.87L64.89 388.3l13.22-17.6-32.93-54.9zm85.96 7.4l-28.2 57.5 15.1 17-6.7 95.3H130l6.8-95.3 15.9-14.2-21.6-60.3zM268 355.5l-19.5 68.4 19.4 15.2 5.8 53.9h18.9l-5.9-54.3 16.8-21.6c-11.9-20.5-23.7-41-35.5-61.6zm143.6.1l-18.9 68.6 20.3 15.5 6.2 53.3H438l-6.4-55.2 16-20.9z"/> +</svg> diff --git a/public/style.css b/public/style.css index a28676f..c4b0b9e 100644 --- a/public/style.css +++ b/public/style.css @@ -81,6 +81,7 @@ p.warning::before { content: "\26a0"; } /* TABLES */ table { + background-color: white; min-width: min(50rem,100%); border-collapse: collapse; border: 1px solid black; @@ -105,6 +106,7 @@ td.is_active { background-color: lemonchiffon; } /* FORUM AND MESSAGE POSTS */ div.post { + background-color: white; max-width: 50em; margin-top: 24px; border: 1px solid black; @@ -194,3 +196,13 @@ article hr + p { font-style: italic; } .game_item.your_turn a:hover { color: #860 } .game_item.unread .game_head div::after { content: " \1f4dd "; } + +/* DARK MODE */ +@media (prefers-color-scheme: dark) { + body { background-color: silver } + header { background-color: darkgray } + table, div.post { background-color: gainsboro } + thead, tfoot, div.post > div.head { background-color: darkgray } + input, textarea { background-color: gainsboro } + input:focus, textarea:focus { outline-color: cornflowerblue } +} |