A
A
AbaGardon2018-09-21 00:43:40
css
AbaGardon, 2018-09-21 00:43:40

How to fix bug with stylelint in vscode?

I can't figure out what's wrong in the code, why does stylint give an error?
Expected empty line before rule (rule-empty-line-before)

@media screen and (min-width: 1200px) and (max-width: 1280px) {
    .navigation__link { <---- тут 
        font-size: 20px;
    }
    .section-menu__content { <---- тут 
        font-size: 25px;
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JorJeG, 2018-09-21
@AbaGardon

Requires blank lines before selectors

@media screen and (min-width: 1200px) and (max-width: 1280px) {

    .navigation__link {
        font-size: 20px;
    }

    .section-menu__content {
        font-size: 25px;
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question