I was inspecting the codecademy.com site and there is an element with the attribute:
box-shadow: inset 0 0 5px rgb(0 0 0 / 15%), 0 0 7px #fff;
It seems that this causes a double circle around the element, the inner circle being white and the outer one transparent.
However, when I try to use this code in my stylesheet, I get the following error:
Error: Function rgb is missing argument $green.
on line 1260 of common.scss
>> box-shadow: inset 0 0 5px rgb(0 0 0 / 15%), 0 0 7px #fff;
------------------------------------------^
Not sure what this error is about or how to resolve it. Any ideas?
rgba(0,0,0,38)
I think. Specifically since it's red, green, blue, alpha and it says it can't find the value for$green
, maybe you just need to add commas? – Morphologyrgba
since you've provided an alpha value. – Subtropical