TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
62 stars 29 forks source link

If possible prevent hyperlinks being overwritten by colour. #1762

Open Spikestuff opened 5 months ago

Spikestuff commented 5 months ago

Basically more of a security sort of thing where on the forums the hyperlinks can be hidden by the hex colours #FFFFFF/#2C3034 (and anything within the Saturation/Luminance field).

Should specify exactly with an example running red on 3 link types. image

YoshiRulz commented 5 months ago

I think something like

span:not(a span) { color: var(--span-color, currentColor); }

and using .Attribute("style", $"--span-color: {colorEscaped};") would do it.