acmcsuf.com icon indicating copy to clipboard operation
acmcsuf.com copied to clipboard

Footer icons lacking hover effect

Open EthanThatOneKid opened this issue 2 years ago • 2 comments

What happened?

Overview

The text on our footer changes colors to blue on hover, but our social icons do not change colors^1. This is inconsistent.

Context

[9:53 AM]Chom: back to what i was referring to, see how i hover over the text (mouse isnt displayed but its over the blue text) image [9:53 AM]EthanThatOneKid: Yes [9:54 AM]Chom: it doesnt do that for the logos, and thats where filter comes in

Issue reported by @tomasohCHOM.

EthanThatOneKid avatar May 25 '23 17:05 EthanThatOneKid

CSS has a filter property that allows to change the color of svg images through a series of functions. I took the --acm-blue hex color (#2c91c6) and if I apply filter: brightness(0) saturate(100%) invert(54%) sepia(28%) saturate(1154%) hue-rotate(156deg) brightness(88%) contrast(90%);, it gives me an almost perfect result with 0.6 loss. I just don't know how to code it...

tomasohCHOM avatar May 25 '23 18:05 tomasohCHOM

CSS has a filter property that allows to change the color of svg images through a series of functions. I took the --acm-blue hex color (#2c91c6) and if I apply filter: brightness(0) saturate(100%) invert(54%) sepia(28%) saturate(1154%) hue-rotate(156deg) brightness(88%) contrast(90%);, it gives me an almost perfect result with 0.6 loss. I just don't know how to code it...

Filtering from white to blue using this filter causes the logo to temporarily turn green as the hue rotates!

Changes

image

Result

https://github.com/EthanThatOneKid/acmcsuf.com/assets/31261035/922c9416-03b1-4a1f-a918-141c8929721a

EthanThatOneKid avatar May 26 '23 03:05 EthanThatOneKid