diff options
author | metamuffin <metamuffin@disroot.org> | 2023-02-14 08:11:50 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-02-14 08:11:50 +0100 |
commit | eb5a2e8b66a9b78a911f1b7e4586467ec622e4ab (patch) | |
tree | a7bda686c56ca1eb2b0a98984a5409ca30fcc548 | |
parent | a8b2c7e92564a3cb766787b181cb01795543b233 (diff) | |
download | metamuffin-website-eb5a2e8b66a9b78a911f1b7e4586467ec622e4ab.tar metamuffin-website-eb5a2e8b66a9b78a911f1b7e4586467ec622e4ab.tar.bz2 metamuffin-website-eb5a2e8b66a9b78a911f1b7e4586467ec622e4ab.tar.zst |
new style + some adjustments
-rw-r--r-- | assets/style.css | 34 | ||||
-rw-r--r-- | src/pages.rs | 4 |
2 files changed, 31 insertions, 7 deletions
diff --git a/assets/style.css b/assets/style.css index 9646d87..3f688a1 100644 --- a/assets/style.css +++ b/assets/style.css @@ -3,6 +3,9 @@ :root { --bg1: #090909; --bg2: #141414; + --ac1: #b575ff; + --ac2: #ff83fd; + --ac3: #ff82b2; } img[align=left] { @@ -24,6 +27,26 @@ nav { border: 0px solid transparent; border-radius: 1em; } +nav a { + border: 0px solid transparent; + border-radius: 5px; + padding: 0.5em; + text-decoration: none; + color: #dfe5f3; + text-decoration: none; + background-image: linear-gradient(transparent, transparent), + linear-gradient(var(--ac2), var(--ac2)); + background-size: 100% 2px, 0 2px; + background-position: 100% 100%, 0 100%; + background-repeat: no-repeat; + transition: background-size 0.15s linear; + font-style: italic; +} +nav a:hover { + color: #dfe5f3; + background-color: #ffffff10; + background-size: 0 2px, 100% 2px; +} h1 {font-size: xx-large } h2 {font-size: x-large } @@ -31,14 +54,15 @@ h3 {font-size: large } h4 {font-size: medium } p,h1,h2,h3,h4,h5,h6,li { font-family: "Ubuntu", sans-serif; } -h1,h2 { color: #b575ff } -h3 { color: #ff83fd; margin-left: 1em } -h4 { color: #ff82b2; margin-left: 2em } +h1,h2 { color: var(--ac1) } +h3 { color: var(--ac2); margin-left: 1em } +h4 { color: var(--ac3); margin-left: 2em } p,li { color: white; margin-left: 3em } -a { color: #82a8ff; font-style: italic; text-decoration: underline } +a { color: var(--ac2); font-style: italic; text-decoration: underline } +a:hover { color: var(--ac3) } hr { border: 1px solid grey } -math {color:white} +math { color:white } pre,code { color: #eeeeee; diff --git a/src/pages.rs b/src/pages.rs index 7c92c4b..cc6c4e2 100644 --- a/src/pages.rs +++ b/src/pages.rs @@ -38,7 +38,7 @@ pub fn r_about() -> DynScaffold<'static> { li { "C" } li { "toki pona" } li { "Python" } - li { "Nim, Zig and some others that i don't care about" } + li { "Nim, Zig, some French and others that I don't really care about" } } }, } @@ -68,7 +68,7 @@ pub fn r_projects() -> DynScaffold<'static> { "(" a[href="https://codeberg.org/metamuffin/video-codec-experiments"]{"code"} ")" } li { - b{"pixelflut tools:"} " the programs i hacked together when playing pixelflut. includes GPU-acceleration for updating the canvas with minimal bandwidth usage. " + b{"pixelflut tools:"} " the programs I hacked together when playing pixelflut. includes GPU-acceleration for updating the canvas with minimal bandwidth usage. " "(" a[href="https://codeberg.org/metamuffin/video-codec-experiments"]{"code"} ")" } li { |