I am trying to add an image after all external links on my site. That I can do, but I can't seem to style the svg for dark and light mode. In fact, I can't style the svg at all. It is just the default black.
The code I am using is:
a[href^="http://"]:not([href*="example.com"]):after,
a[href^="https://"]:not([href*="example.com"]):after{
display: inline-block;
width: .9em;
height: .9em;
fill: var(--main);
content: url("/images/external-link-alt-solid.svg");
border: none;
background: none;
margin-left: 0.1em;
}
I thought that the 'fill' element should change the color of the svg, but it seems to be having no effect.
A solution would be appreciated.
Day #079 of #100DaysToOffload and my literary offload put me in mind of an anecdote.
Day #078 of #100DaysToOffload and I ask that age old question: To CDN or not to CDN.
Day #077 of #100DaysToOffload and I'm felling good.
Day #076 of #100DaysToOffload and I muse on a site with less byte.
Day #075 of #100DaysToOffload and I muse on the shape of things that are.
Day #074 of #100DaysToOffload and I muse on the Rosetta Stone
Day #073 of #100DaysToOffload and I raise a glass to Fête Nationale.
wow, look at the rich details of #OpenStreetMap in comparison to #GoogleMaps:
while Gmaps looks like a work with MS paint, OpenStreetMap shows you a full construction plan incl.lifts, ticket vending maching, public telephone, recycling container, rubbish bin and also so many many more shops in the building:
https://www.openstreetmap.org/#map=19/46.94821/7.43612
(Train station in Bern, CH)
Day #072 of #100DaysToOffload and what started with the shortest of posts, snowballed into a longer piece as I warmed to the subject of autonomous workplaces.
Day #071 of #100DaysToOffload and I muse on Gothic architecture.
Day #070 of #100DaysToOffload and I muse on spotting the gorilla.
Day #069 of #100DaysToOffload and I reason skepticism and wonder.
Day #068 of #100DaysToOffload and I muse on the Doomsday Clock.
Day #067 of #100DaysToOffload and I test a hypothesis for readership decline.
Day #066 of #100DaysToOffload and I reason a decline in readership.
Day #065 of #100DaysToOffload and I enjoy a bit of cartographic escapism.
Day #064 of #100DaysToOffload and I contemplate change management.
Day #063 of #100DaysToOffload and I muse on the chilly Australian weather.
Philosopher and historian. Doctoral candidate at Macquarie Business School researching Edmund Burke. Boosts/follows do not imply endorsement.