@lookingfor2

Почему на определенном разрешении перестают работать media запросы?

На определенном разрешении экрана перестают включаться медиа запросы (980px)

Я уважаю людей и прячу портянки кода под спойлер

media (max-width: 1100px) {
    .col-lg-3.col-lg-3-menu-hover {
        display: none;
    }
    .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .row.msearch2 .col-lg-3 {
        width: 100%;
        max-width: inherit;
        flex: inherit;
    }
}

media (max-width: 991px) {
    .hidden-sm {
        display: none;
    }
    header .header-top .top-left .inliner>.phones {
        margin-left: 0;
    }
    .def-section.catalog {
        padding-top: 0;
        border-top: 1px solid #f6f6f6;
    }
    .def-section.catalog.inner {
        display: block;
    }
    header .header-bottom .cart a .carticon {
        padding-right: 10px;
    }
    header .header-bottom .cart a .carticon .count {
        right: 0;
    }
    header .header-bottom .logo {
        text-align: center;
        margin: 0 -15px;
    }
    header .header-bottom .logo a img {
        display: inline-block;
        max-height: 80px;
    }
    .navbar-toggler {
        display: block;
    }
    .mobile-menu-button {
        display: block;
    }
    .catalog {
        padding: 0;
    }
    .mobile-catalog-but {
        display: block;
    }
    header .header-bottom .logo {
        padding: 0;
    }
    header .header-bottom .logo:hover {
        background: transparent;
    }
    header .header-bottom .logo:hover .vertical_menu {
        display: none;
    }
    header .header-bottom .logo>a {
        padding: 20px 0;
    }
    header .header-bottom .logo>a>i {
        display: none;
    }
    .banners .item-wrap+.item-wrap {
        margin-top: 30px;
    }
    .table-responsives {
        width: 100%;
    }
    .table-responsives table {
        display: block;
    }
    .table-responsives table tr {
        display: block;
        border-top: none;
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    .table-responsives table tr+tr {
        border-top: 1px solid #ececec;
    }
    .table-responsives table tr.header {
        display: none;
    }
    .table-responsives table tr.footer {
        font-size: 0;
        border: none;
    }
    .table-responsives table tr.footer th {
        display: inline-block;
        font-size: 16px;
        padding: 5px 15px;
        text-align: center;
        border: none;
    }
    .table-responsives table td {
        display: block;
        border-top: none !important;
        width: 70%;
        float: left;
        padding: 0 10px 5px;
    }
    .table-responsives table td .form-group {
        margin-bottom: 0;
    }
    .table-responsives table td:last-child {
        overflow: hidden;
    }
    .table-responsives table td:last-child .btn {
        overflow: hidden;
        position: absolute;
        top: 0;
        right: 0;
    }
    .table-responsives table td.cart-image {
        width: 30%;
        float: left;
        min-height: 200px;
    }
    .table-responsives table td.count {
        position: relative;
    }
    .table-responsives table td.count input {
        max-width: 40px;
        display: inline-block;
    }
    .header-top .container {
        max-width: initial;
    }
}

media (max-width: 768px) {
    header .header-top {
        padding: 10px 0;
    }
    .mobile-catalog-but {
        margin-bottom: 0;
    }
    .slider-container {
        width: 100%;
    }
    .compare-tables {
        margin: 0 -15px;
    }
    .compare-tables .compare-table .title {
        padding-left: 10px;
        padding-right: 10px;
    }
    .text-content p {
        font-size: 14px;
    }
    .posts .post p {
        font-size: 14px;
    }
    .navigation_catalog ul li {
        width: 33.3%;
    }
    .navigation_catalog2 ul {
        padding: 0 2px;
    }
}

media (max-width: 600px) {
    body {
        position: relative;
    }
    header .header-top .row {
        margin: 0;
    }
    header .header-top .row>* {
        padding: 0;
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 50%;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    header .header-top .row a.callbacker {
        padding: 5px 7px;
    }
    header .header-top .row a.callbacker span {
        font-size: 12px;
    }
    header .header-bottom .diler {
        display: none;
    }
    footer .footer-block {
        text-align: left;
    }
    footer .contacts {
        padding: 0;
    }
    footer .contacts li {
        width: 100%;
    }
    .navbar-toggler {
        padding: 0;
    }
    header .header-bottom .right-tools {
        margin-left: -15px;
    }
    header .header-bottom .compariser i,
    header .header-bottom .cart a .carticon i {
        font-size: 20px;
    }
    header .header-bottom .compariser i span {
        top: -8px;
    }
    header .header-bottom .cart a .carticon .count {
        top: -8px;
    }
    .navbar-toggler:not(.noactive) span:nth-child(3),
    .navbar-toggler:not(.noactive) span:nth-child(1) {
        top: 5px;
        left: 0px;
    }
    .compare-tables .compare-table .table-row .table-value {
        width: 50%;
    }
    .product-details .product-form .one-click {
        text-align: center;
    }
    .product-details .product-form .buttons .btn {
        display: block;
        width: 100%;
    }
    .tab-content {
        padding: 0;
    }
    .card-soup {
        margin-bottom: 30px;
    }
    header .header-top a {
        font-size: 12px;
    }
    .navigation_catalog ul li {
        width: 50%;
    }
}

media (max-width: 500px) {
    header .header-top .phones a:last-child {
        display: none;
    }
    .navigation_catalog ul li {
        width: 100%;
    }
}

media (max-width: 400px) {
    footer .footer-block {
        width: 100%;
        float: left;
    }
    .main-slider .slider .item .caption h2 {
        font-size: 1.5rem;
        width: 90%;
        left: 5%;
        right: 5%;
    }
    .main-slider .slider .item .caption .buttons .btn {
        margin: 10px 15px;
    }
    footer .footer-bottom .inliner>* {
        width: 100%;
        text-align: center;
    }
    .mobile-menu-content,
    .mobile-catalog-menu-content {
        top: 181px;
    }
}

  • Вопрос задан
  • 56 просмотров
Пригласить эксперта
Ответы на вопрос 1
@Lord_Dantes
Правильно: @media screen and (max-width: 900px) { }
Неправильно: ваш вопрос
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
19 апр. 2024, в 03:52
1000 руб./за проект
19 апр. 2024, в 03:01
1000 руб./за проект
18 апр. 2024, в 21:56
2000 руб./за проект