E
E
Egor2020-08-24 18:27:05
Sass
Egor, 2020-08-24 18:27:05

How to change the value of a sass variable if the body has the is-white class, for example?

How to change the value of a sass variable if the body has the is-white class, for example?
I thought to do this, but it doesn't work.

$primary-blue: #00D3FF !default

body.is-white
  $primary-blue: blue

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-08-24
@wapster92

Well, for example, after changing the value, apply to the property

$primary-blue: #00D3FF !default

body.is-white
  $primary-blue: blue
  color: $primary-blue

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question