I've declared variables in my stylesheet but when looking at my css in Umbraco I get a warning saying my css rule is empty and my variables gives an error saying it expects a closing brace }.
I am trying out Umbraco and wanting to import a bootstrap based theme, which of course uses css variables.
The errors OP mentioned are appearing and I really don't feel like going manually back and forth modifying a css file which exists out of more than 10k lines of code...
I don't think it has been changed recently, but mind you: It's only when viewing the CSS in the Backoffice you'll see them - and it's (to my knowledge) only a display issue - the CSS can be edited and saved all fine.
The CSS will work fine when referenced from the HTML as usual.
Declare css variables gives error
Hi
I've declared variables in my stylesheet but when looking at my css in Umbraco I get a warning saying my css rule is empty and my variables gives an error saying it expects a closing brace }.
How is this?
Hi Anders
I believe Umbraco CSS editor doesn't support CSS variables. It would be nice to support, not sure in which release it will be implemented.
Thanks, Alex
Hi,
Is this still the case?
I am trying out Umbraco and wanting to import a bootstrap based theme, which of course uses css variables.
The errors OP mentioned are appearing and I really don't feel like going manually back and forth modifying a css file which exists out of more than 10k lines of code...
Hi Niko,
I don't think it has been changed recently, but mind you: It's only when viewing the CSS in the Backoffice you'll see them - and it's (to my knowledge) only a display issue - the CSS can be edited and saved all fine.
The CSS will work fine when referenced from the HTML as usual.
/Chriztian
is working on a reply...