A
A
Afina Surname2019-11-12 15:19:39
Sass
Afina Surname, 2019-11-12 15:19:39

Why doesn't Sublime Text text editor see the following variables?

5dcaa30c0fc9c093723168.png
_header.sass

.header
  &-contacts
   display: flex
   justify-content: flex-end
   &__phone
    font-size: 22px
   &__button
    font-size: 14px
    font-weight: 400
    color: $text-color-light

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yana Tomkovich, 2019-11-12
@angela_merkel

did you forget to import?

P
Pashenka, 2019-11-12
@like-a-boss

Debug algorithm for anything. Start simple:
1. create a simple file with one class with one property with a static value. Does it compile correctly? Cool
2. add a nested class to it with a property with a static value. Does it compile correctly? Cool
3. We take out the value of the nested property in a variable. The variable is defined at the very top of the file. Does it compile correctly? Cool
4. transfer the variable to an external file, import the file with the variable. Does it compile correctly? Cool
There are two options: either it will fail at some stage => we are dealing with the problem at the global level, or everything will be successful => the problem is in the sass you wrote

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question