B
B
broke2021-01-18 21:36:57
css
broke, 2021-01-18 21:36:57

The main css styles override the media styles. What is the problem?

Good evening! I am adapting the site. When importing media queries, they do not work and are overridden by the main css styles.

@import "mixins"
@import "variables"
@import "general"
@import "media"


In general, the styles are set initially:

.menu
.menu_link
    color: #ffffff
    font-size: 15px
    font-weight: 300

  .menu_item
    border-right: 2px dotted rgb(49, 49, 49)
    padding-right: 28px
    &:last-child
        border-right: none


The media says the following:

@media (max-width: 1200px)
    .menu
        &_item
            padding-right: 20px
        &_link
            font-size: 13px


As a result, in the element code:
6005d42460221636285649.png
6005d42d5a245590220541.png

Who faced this, please tell me! I use sass, I write the code in VS, I connected all the necessary metas. Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question