social links coloring svgs
authordanix <danix@danix.xyz>
Sun, 26 Feb 2023 18:28:42 +0000 (19:28 +0100)
committerdanix <danix@danix.xyz>
Sun, 26 Feb 2023 18:28:42 +0000 (19:28 +0100)
footer.html
gitweb-danixland/gitweb.css

index 1bf2e9a..80c9c42 100644 (file)
@@ -6,25 +6,25 @@
                <ul>
                        <li class="github">
                                <a href="https://github.com/danixland/" title="I'm on github">
-                                       <img src="static/github.svg" height="32" width="32" alt="github" />
+                                       <img class="img-github" src="static/github.svg" height="32" width="32" alt="github" />
                                        <span>github</span>
                                </a>
                        </li>
                        <li class="twitter">
                                <a href="https://twitter.com/danixland/" title="I'm on twitter">
-                                       <img src="static/twitter.svg" height="32" width="32" alt="twitter" />
+                                       <img class="img-twitter" src="static/twitter.svg" height="32" width="32" alt="twitter" />
                                        <span>twitter</span>
                                </a>
                        </li>
                        <li class="instagram">
                                <a href="https://www.instagram.com/danixland/" title="I'm on instagram">
-                                       <img src="static/instagram.svg" height="32" width="32" alt="instagram" />
+                                       <img class="img-instagram" src="static/instagram.svg" height="32" width="32" alt="instagram" />
                                        <span>instagram</span>
                                </a>
                        </li>
                        <li class="spotify">
                                <a href="https://open.spotify.com/user/1166786773" title="I'm on spotify">
-                                       <img src="static/spotify.svg" height="32" width="32" alt="spotify" />
+                                       <img class="img-spotify" src="static/spotify.svg" height="32" width="32" alt="spotify" />
                                        <span>spotify</span>
                                </a>
                        </li>
index 11dd78d..18f9446 100644 (file)
@@ -66,9 +66,13 @@ a { outline: none; }
   --opml-icon:url("opml-dark.svg");
 /* social colors */
   --twitter: #1DA1F2;
+  --twitter-filter: 'invert(58%) sepia(29%) saturate(5279%) hue-rotate(176deg) brightness(96%) contrast(99%)';
   --instagram: #E4405F;
-  --spotify: ##1ed760;
+  --instagram-filter: 'invert(40%) sepia(71%) saturate(3199%) hue-rotate(325deg) brightness(92%) contrast(94%)';
+  --spotify: #1ed760;
+  --spotify-filter: 'invert(80%) sepia(16%) saturate(3018%) hue-rotate(79deg) brightness(90%) contrast(86%)';
   --github: #6e5494;
+  --github-filter: 'invert(34%) sepia(20%) saturate(1263%) hue-rotate(222deg) brightness(96%) contrast(84%)';
 }
 @media screen and (prefers-color-scheme: dark) {
   :root {
@@ -268,15 +272,27 @@ td, th {
 .social-links ul li.spotify a {
   color: var(--spotify);
 }
+.social-links ul li.spotify a img.img-spotify {
+  filter: var(--spotify-filter);
+}
 .social-links ul li.twitter a {
   color: var(--twitter);
 }
+.social-links ul li.twitter a img.img-twitter {
+  filter: var(--twitter-filter);
+}
 .social-links ul li.instagram a {
   color: var(--instagram);
 }
+.social-links ul li.instagram a img.img-instagram {
+  filter: var(--instagram-filter);
+}
 .social-links ul li.github a {
   color: var(--github);
 }
+.social-links ul li.github a img.img-github {
+  filter: var(--github-filter);
+}
 
 a.rss_logo {
   border: 0;