aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-01-11 09:28:32 -0500
committerXe Iaso <me@christine.website>2022-01-11 09:29:33 -0500
commit97e31d0e8bcf24303d15164b443e53f6e563b493 (patch)
tree03ccb81bdf1b942475dde76f82c66c74630f0a91 /css
parentce0ab582921b46d099ffdd324380fc4c904326f7 (diff)
downloadxesite-97e31d0e8bcf24303d15164b443e53f6e563b493.tar.xz
xesite-97e31d0e8bcf24303d15164b443e53f6e563b493.zip
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 <me@christine.website>
Diffstat (limited to 'css')
-rw-r--r--css/shim.css18
1 files changed, 18 insertions, 0 deletions
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;
+ }
}