Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anders 10 posts 91 karma points
    Jun 30, 2021 @ 08:13
    Anders
    0

    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?

    enter image description here

  • Alex Skrypnyk (skrypnyk.dev) 6061 posts 23313 karma points MVP 6x admin c-trib
    Jul 02, 2021 @ 01:00
    Alex Skrypnyk (skrypnyk.dev)
    100

    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

  • Niko Verdoodt 1 post 20 karma points
    1 week ago
    Niko Verdoodt
    0

    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...

  • Chriztian Steinmeier 2750 posts 8456 karma points MVP 6x admin c-trib
    1 week ago
    Chriztian Steinmeier
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft