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 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 02, 2021 @ 01:00
    Alex Skrypnyk
    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
    Jul 27, 2022 @ 09:58
    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 2800 posts 8790 karma points MVP 8x admin c-trib
    Jul 28, 2022 @ 08:28
    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