• Resolved igormacedo

    (@igormacedo)


    This code is no longer working. The syntax is correct. I tried with the unit of measurement and with pure zero, but the message remains.

    :root {
    --theme-content-vertical-spacing: 0em !important;
    }
Viewing 1 replies (of 1 total)
  • Plugin Author Łukasz Nowicki

    (@lukasznowicki)

    Hello Igor!
    I don’t normally add CSS tips because I’m not an expert, but I think I see a problem in your code.
    In CSS custom properties (variables) you cannot use !important inside the definition.
    Correct way is:
    :root {
    –theme-content-vertical-spacing: 0em;
    }
    Then, when you use the variable, you can add !important:
    .my-class {
    margin-top: var(–theme-content-vertical-spacing) !important;
    }
    Something like that

    Kind regards

    Lukasz

Viewing 1 replies (of 1 total)

The topic ‘Potential Variable Validation Problem’ is closed to new replies.