S
S
Sultan nuts2019-01-18 11:34:13
Sass
Sultan nuts, 2019-01-18 11:34:13

SASS CSS is a bug, am I new?

Hello everyone) for the first time here on the toaster, I’m studying HTML CSS layout and now I’ve reached the SASS preprocessor using Artem Islamov’s video tutorials, in general, such a problem can someone meet when setting a color variable and assigning it an error

$color:#aeaeae

.header
 &__title
  font-size: 20px
  color:$color

Error: Invalid CSS after "color:": expected pseudoclass or pseudoelement, was "$color"
on line 6 of C:\Users\Qwerty\Desktop\web\example\sass\main.sass
what did I do wrong?)) )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Skorokhodov, 2019-01-18
@Snuts

They just didn't add a space after the colon
. The error was both in creating a variable and in using it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question