diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-03 18:50:55 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-03 18:50:55 +0800 |
commit | ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459 (patch) | |
tree | e5eaf9189b25ec830ddc1cb8114db5c8e81a529e /assets | |
parent | index: Add repositories (diff) | |
download | website-ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459.tar.gz website-ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459.tar.zst website-ac1a0899ae79bb4e1eb79f17af45f7f2a9f26459.zip |
Website update
Diffstat (limited to 'assets')
-rw-r--r-- | assets/style.css | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..cc7b1d6 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,35 @@ +html { + font-family: system-ui, sans-serif; + --bg: hsl(32, 98%, 92%); + --fg: #1E1F21; + --link-color: #24527d; + --text-decoration-color: #CCC; + color: var(--fg); + background-color: var(--bg); +} +@media(prefers-color-scheme:dark) { + html { + --bg: #1E1F21; + --fg: #EEEFF1; + --link-color: #5ca7ed; + --text-decoration-color: #474747; + } +} + +body { + margin: 0 auto; + padding: 1rem; +} + +body:not(.wide) { + max-width: 50rem; +} + +h1 { + text-align: center; +} + +a:link, a:visited { + text-decoration-color: var(--text-decoration-color); + color: var(--link-color); +} |