D
D
Denioo2019-11-30 18:46:59
css
Denioo, 2019-11-30 18:46:59

scss file not included?

Hello, there is a problem. Another scss file is not connected to the file, in which there are media queries, I connect via: Why so? Mixins also connected everything without problems and errors, but they don’t want media queries. A small code for checking in the media query file, mb is the point:
@import "./media/_media.scss";

* {
    box-sizing: border-box;
}

@media (max-width: 1200px){
    .under-nav {
        background-color: #fff;
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustam Bainazarov, 2019-11-30
@Denioo

This is not a SASS error, but purely CSS due to the fact that you are importing media queries before declaring the main styles, when you should do the opposite.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question