Objective
To have an orange tint when hovering over a link.
Dark tint by default.
I understand I might have other conflicts. But am I at least nesting this order correctly?
Background
I had this issue previously to wanting a colored layer over my image. I was able to get the darker layer on there fine. But when hovered over, the dark layer should not be seen, but replaced with an orange tint.
Code
I have this demo on CodePen
HTML
<li>
<a href="">
<img src="http://www-tc.pbs.org/prod-media/newshour/photos/2013/07/10/Tesla_circa_1890_slideshow.jpeg">
</a>
</li>
SCSS
li {
> a::after {
background-color: rgba(30,30,30,0.6);
&:hover {
background-color: rgba(255,128,0,0.5);
}
}
}