I want to streamline my CSS file by setting up generic variables that can be used throughout to ensure consistency and organization.
For example:
@shadow: 6px 6px 10px rgba(0,0,0,0.2);
.shadow {
box-shadow: @shadow inset;
}
However, when I try to apply .shadow to an element, the shadow does not appear on the page. Upon inspecting the Elements in Chrome, I notice that .shadow is crossed out with the message "Invalid property value".
This issue extends beyond just shadows; it also occurs with properties like width and height.
I have seen similar setups work perfectly fine on JSFiddle pages in the same browser, so I don't believe the problem lies with the browser itself.