From 97e31d0e8bcf24303d15164b443e53f6e563b493 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Tue, 11 Jan 2022 09:28:32 -0500 Subject: [PATCH] templates/header: add logo image that is responsive to theme preference Thanks to many people on Twitter that helped with this: https://twitter.com/theprincessxena/status/1480767115993010177 Signed-off-by: Xe --- css/shim.css | 18 +++++++++++++++ static/img/xeiaso.svg | 48 ++++++++++++++++++++++++++++++++++++++++ templates/header.rs.html | 2 +- 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 static/img/xeiaso.svg diff --git a/css/shim.css b/css/shim.css index 16b9d8c..d44b230 100644 --- a/css/shim.css +++ b/css/shim.css @@ -58,8 +58,26 @@ img { background-color: #282828; } +.logo { + background-color: #fdf5d7; + -webkit-mask: url("/static/img/xeiaso.svg"); + -webkit-mask-repeat: no-repeat; + -webkit-mask-size: 100%; + mask: url("/static/img/xeiaso.svg"); + height: 32px; + width: 19px; + float: left; + display: inline; + margin: 3px; + vertical-align: middle; +} + @media (prefers-color-scheme: light) { .warning { background-color: #fbf1c7; } + + .logo { + background-color: #1d2021; + } } diff --git a/static/img/xeiaso.svg b/static/img/xeiaso.svg new file mode 100644 index 0000000..327b9e9 --- /dev/null +++ b/static/img/xeiaso.svg @@ -0,0 +1,48 @@ + + + + + + + + + + diff --git a/templates/header.rs.html b/templates/header.rs.html index d17e486..a4b7fd2 100644 --- a/templates/header.rs.html +++ b/templates/header.rs.html @@ -92,7 +92,7 @@ la budza pu cusku lu