From 6319a2f5d0c3c5e6db4d6a60e5da61f6dc3b13f3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 29 Apr 2025 10:26:20 -0300 Subject: src/content/img/: Adjust light/dark mode SVGs --- Makefile | 1 + deps.mk | 3 +- src/content/img/atom.svg | 6 ++ src/content/img/atom/dark.svg | 1 - src/content/img/atom/light.svg | 5 -- src/content/img/envelope/dark.svg | 7 ++- src/content/img/envelope/light.svg | 4 +- src/content/img/link/dark.svg | 8 ++- src/content/img/link/light.svg | 6 +- src/content/img/lock/dark.svg | 7 ++- src/content/img/lock/light.svg | 4 +- src/content/img/logo/dark.svg | 63 +++++++++++++++++++- src/content/img/logo/light.svg | 118 ++++++++++++++++++------------------- src/content/style.css | 6 +- src/symlinks.txt | 4 +- 15 files changed, 165 insertions(+), 78 deletions(-) create mode 100644 src/content/img/atom.svg delete mode 120000 src/content/img/atom/dark.svg delete mode 100644 src/content/img/atom/light.svg mode change 120000 => 100644 src/content/img/envelope/dark.svg mode change 120000 => 100644 src/content/img/link/dark.svg mode change 120000 => 100644 src/content/img/lock/dark.svg mode change 120000 => 100644 src/content/img/logo/dark.svg diff --git a/Makefile b/Makefile index d9b2f82..5862d25 100644 --- a/Makefile +++ b/Makefile @@ -382,6 +382,7 @@ check-unit-symlinks: src/all-symlinks.txt $(symlink-deps) check-unit-links: check-unit-links-internal check-unit-links-external check-unit-links: check-unit-symlinks + check-unit: check-unit-sorting check-unit-updatedat check-unit-links diff --git a/deps.mk b/deps.mk index cbf049b..d297e2b 100644 --- a/deps.mk +++ b/deps.mk @@ -90,8 +90,7 @@ feeds.xml = \ src/content/en/tils/feed.xml \ images.svg = \ - src/content/img/atom/dark.svg \ - src/content/img/atom/light.svg \ + src/content/img/atom.svg \ src/content/img/envelope/dark.svg \ src/content/img/envelope/light.svg \ src/content/img/favicon.svg \ diff --git a/src/content/img/atom.svg b/src/content/img/atom.svg new file mode 100644 index 0000000..23ab291 --- /dev/null +++ b/src/content/img/atom.svg @@ -0,0 +1,6 @@ + + + + diff --git a/src/content/img/atom/dark.svg b/src/content/img/atom/dark.svg deleted file mode 120000 index 4d0de78..0000000 --- a/src/content/img/atom/dark.svg +++ /dev/null @@ -1 +0,0 @@ -light.svg \ No newline at end of file diff --git a/src/content/img/atom/light.svg b/src/content/img/atom/light.svg deleted file mode 100644 index 37bace2..0000000 --- a/src/content/img/atom/light.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/src/content/img/envelope/dark.svg b/src/content/img/envelope/dark.svg deleted file mode 120000 index 4d0de78..0000000 --- a/src/content/img/envelope/dark.svg +++ /dev/null @@ -1 +0,0 @@ -light.svg \ No newline at end of file diff --git a/src/content/img/envelope/dark.svg b/src/content/img/envelope/dark.svg new file mode 100644 index 0000000..f521a8f --- /dev/null +++ b/src/content/img/envelope/dark.svg @@ -0,0 +1,6 @@ + + + + diff --git a/src/content/img/envelope/light.svg b/src/content/img/envelope/light.svg index c2251f4..12aba9f 100644 --- a/src/content/img/envelope/light.svg +++ b/src/content/img/envelope/light.svg @@ -1,4 +1,6 @@ - + diff --git a/src/content/img/link/dark.svg b/src/content/img/link/dark.svg deleted file mode 120000 index 4d0de78..0000000 --- a/src/content/img/link/dark.svg +++ /dev/null @@ -1 +0,0 @@ -light.svg \ No newline at end of file diff --git a/src/content/img/link/dark.svg b/src/content/img/link/dark.svg new file mode 100644 index 0000000..fd6ca35 --- /dev/null +++ b/src/content/img/link/dark.svg @@ -0,0 +1,7 @@ + + + + diff --git a/src/content/img/link/light.svg b/src/content/img/link/light.svg index e5c7050..fd9033f 100644 --- a/src/content/img/link/light.svg +++ b/src/content/img/link/light.svg @@ -1,5 +1,7 @@ - + diff --git a/src/content/img/lock/dark.svg b/src/content/img/lock/dark.svg deleted file mode 120000 index 4d0de78..0000000 --- a/src/content/img/lock/dark.svg +++ /dev/null @@ -1 +0,0 @@ -light.svg \ No newline at end of file diff --git a/src/content/img/lock/dark.svg b/src/content/img/lock/dark.svg new file mode 100644 index 0000000..98a36bc --- /dev/null +++ b/src/content/img/lock/dark.svg @@ -0,0 +1,6 @@ + + + + diff --git a/src/content/img/lock/light.svg b/src/content/img/lock/light.svg index 1a4a18e..d449467 100644 --- a/src/content/img/lock/light.svg +++ b/src/content/img/lock/light.svg @@ -1,4 +1,6 @@ - + diff --git a/src/content/img/logo/dark.svg b/src/content/img/logo/dark.svg deleted file mode 120000 index 4d0de78..0000000 --- a/src/content/img/logo/dark.svg +++ /dev/null @@ -1 +0,0 @@ -light.svg \ No newline at end of file diff --git a/src/content/img/logo/dark.svg b/src/content/img/logo/dark.svg new file mode 100644 index 0000000..96e0f87 --- /dev/null +++ b/src/content/img/logo/dark.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/content/img/logo/light.svg b/src/content/img/logo/light.svg index ce566b2..ab6000b 100644 --- a/src/content/img/logo/light.svg +++ b/src/content/img/logo/light.svg @@ -1,62 +1,62 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/content/style.css b/src/content/style.css index cbe615b..dbd7967 100644 --- a/src/content/style.css +++ b/src/content/style.css @@ -5,6 +5,8 @@ --color-2nd-bg: #f5f5f5; --color-pre-border: hsla(0, 100%, 0%, 30%); + --link-url: url(img/link/light.svg); + color: var(--color-fg); background-color: var(--color-bg); } @@ -16,6 +18,8 @@ --color-2nd-fg: #aaaaaa; --color-2nd-bg: #222222; --color-pre-border: hsla(50, 100%, 70%, 10%); + + --link-url: url(img/link/dark.svg); } a { @@ -192,7 +196,7 @@ div.header-anchor:hover img { } a.anchor { - background: transparent url(img/link/light.svg) center right no-repeat; + background: transparent var(--link-url) center right no-repeat; padding-right: 22px; margin-left: 10px; visibility: hidden; diff --git a/src/symlinks.txt b/src/symlinks.txt index c8bac6b..28320db 100644 --- a/src/symlinks.txt +++ b/src/symlinks.txt @@ -13,7 +13,7 @@ feed.en.atom en/blog/feed.xml feed.til.en.atom en/tils/feed.xml # Some I think existed, and where the logs show a few hundred missing hits -images/atom.svg img/atom/light.svg +images/atom.svg img/atom.svg images/link.svg img/link/light.svg images/lock.svg img/lock/light.svg images/envelope.svg img/envelope/light.svg @@ -29,7 +29,7 @@ static/attachments/cargo2nix.tar.gz en/blog/2020/10/05/cargo2nix.tar.gz static/attachments/fallible.tar.gz en/blog/2021/02/17/fallible.tar.gz static/attachments/swift2nix-demo.tar.gz en/blog/2020/10/05/swift2nix-demo.tar.gz static/attachments/swift2nix.tar.gz en/blog/2020/10/05/swift2nix.tar.gz -static/atom.svg img/atom/light.svg +static/atom.svg img/atom.svg static/envelope.svg img/envelope/light.svg static/link.svg img/link/light.svg static/lock.svg img/lock/light.svg -- cgit v1.2.3