diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-03 20:48:53 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-03 20:48:53 +0800 |
commit | 0888f273e817c9d860d8d92dde176509637ed0b5 (patch) | |
tree | ecd20d27a489b21d5584fea2f7a7a41c3371c89f /assets | |
download | website-master.tar.gz website-master.tar.zst website-master.zip |
Diffstat (limited to '')
-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); +} |