//блок с полосками //общая высота блока $menu-mob-height:67; //$menu-mob-height:54; //ширина и высота полосок $menu-mob-div-width:24; $menu-mob-div-height:2; //отступ полосок $menu-mob-div-margin-top:5; //////////////////////// $allHeight:($menu-mob-div-height*3)+($menu-mob-div-margin-top*2); $menu-mob-div-margin-topFirst:($menu-mob-height - $allHeight)/2; $menu-mob-div-margin-topAll:$menu-mob-div-margin-topFirst + ($menu-mob-div-margin-top*2) + ($menu-mob-div-height*2); /////////////////////// .menu_mob { position: absolute; cursor: pointer; background: $blue-color; width: 56px; height: $menu-mob-height + px; top: -11px; right: 0; z-index: 2; } .menu_mob div { position: absolute; width: $menu-mob-div-width + px; height: $menu-mob-div-height + px; background: #fff; top: 0; margin-top: $menu-mob-div-margin-topAll + px; left: 50%; margin-left: -($menu-mob-div-width/2) + px; } .menu_mob div:first-child { margin-top: $menu-mob-div-margin-topFirst + px; } .menu_mob div:first-child:before { width: 100%; height: 100%; position: absolute; background: #fff; top: 0; left: 0; margin-top: $menu-mob-div-height + $menu-mob-div-margin-top + px; content: ''; } //блок с скрытым меню $menu-mob-hidden-width:380; $menu-mob-hidden-bg: #64696d; $menu-mob-hidden-li-border-bg: #515151; $menu-mob-hidden-li-height:40; $close-menu-mob:red; .mob-overlay { display: none; position: fixed; width: 100%; height: 100%; z-index: 10; background: #000; @include Opacity(0.8); top: 0; left: 0; cursor: default; } .close-menu-mob { position: relative; width: 100%; height: $menu-mob-hidden-li-height + 12 + px; background: $close-menu-mob; text-transform: uppercase; color: #fff; line-height: $menu-mob-hidden-li-height + 12 + px; font-size: 18px; font-weight: 700; padding-left: 15px; } .close_mob { content: ''; position: absolute; right: 10px; top: 0; width: 32px; height: 100%; cursor: pointer; @include svgIcon; &:before { display: block; color: #fff; line-height: $menu-mob-hidden-li-height + 12 + px; text-align: center; font-size: 16px; content: "\e905"; @include Transition(0.05); } &:active { &:before { @include Scale(1.35); } } } .mob-catalog-close { @extend .close-menu-mob; &:before { @extend .close_mob; } } .off-scroll { overflow-y: hidden; height: 100%; position: relative; } .mobile-menu-hidden { width: 400px !important; height: 100%; position: fixed; margin-right: -400px; right: 0; background: #f6f6f6; z-index: 1; opacity: 0; @include Transition(0.6); overflow-y: scroll; padding-bottom: 80px; } .close-mobile-menu { position: absolute; right: 0; top: 0; width: $menu-mob-height + 1 +px; height: $menu-mob-height + 1 +px; background: $blue-color; cursor: pointer; text-align: center; &:before { @include svgIcon; content: '\e90f'; font-size: 18px; color: #fff; line-height: $menu-mob-height + 1 +px; } } .close-lang-mob { position: relative; height: $menu-mob-height + 1 +px; @include wfl; background: $blue-color; .menu-lang { padding-left: 20px; li { padding-left: 26px; float: left; &:first-child { padding-left: 0; } a { line-height: $menu-mob-height + 1 +px; color: #fff; text-decoration: none !important; text-transform: uppercase; font-size: 11px; } &.active { a { text-decoration: none; cursor: default; color: $main-color; } } } } } .mobi-menu-primary-ul { @include wfl; background: #fff; li { float: left; list-style: none; width: 100%; a { display: block; line-height: 41px; width: 100%; float: left; color: $main-color; text-align: left; border-bottom: 1px solid #e5e5e5; font-weight: 700; text-decoration: none !important; font-size: 11px; text-transform: uppercase; padding-left: 20px; } ul { li { background: #f6f6f6; a { font-weight: normal; padding-left: 30px; border-bottom: 0; } ul { li { a { padding-left: 40px; } } } } } } } .mob-menu-write { text-align: center; margin-top: 25px; .btn_ { display: inline-block; float: none; } } .mob-menu-callback { text-align: center; padding-top: 28px; p, a { font-weight: 700; font-size: 20px; color: inherit; text-decoration: none !important; } span { font-size: 13px; color: $link-color; float: none; display: inline-block; margin-top: 16px; } } .menu-second-mob { padding-left: 20px; ul, .footer-menu { li { a { font-size: 11px; } } } } .icon-menu-mob { font-style: normal; width: 16px; height: 16px; margin-right: 5px; margin-left: 10px; text-align: center; position: relative; &:before { position: absolute; @include svgIcon; color: #89888e; font-size: 16px; width: 16px; height: 100%; line-height: 16px; left: -16px; top: 0; } &.icon-menu-mob-1 { &:before { content: '\e90b'; } } &.icon-menu-mob-2 { &:before { content: '\e900'; } } &.icon-menu-mob-3 { &:before { content: '\e90f'; } } } .mobi-menu-catalog { color: $main-color; @include wfl; ul { @include wfl; overflow: hidden; } li { @include wfl; background: #fff; cursor: pointer; position: relative; &.active { background: $turquoise-color; } a { display: block; color: $main-color; padding: 13px 0 10px 0; padding-left: 20px; border-bottom: 1px solid #e5e5e5; font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none !important; padding-right: 50px; } &:last-child { a { border-bottom: 0; } } ul { display: block; transition: 0.2s; @include Transition(0.2); transition-timing-function: ease-out; max-height: 0; overflow: hidden; position: relative; li { background: #f6f6f6; a { font-weight: normal; padding-left: 30px; border-bottom: 0; } ul { li { a { padding-left: 40px; } } } } } &.has-list { &:after { @include svgIcon; color: #c3c3c3; content: '\e917'; font-size: 11px; position: absolute; right: 14px; top: 17px; @include Transition(0.2); } } &.active-menu { &.has-list { &:after { @include Rotate(90); } } .sub-menu-hidden-mob { } ul { max-height: 1000px; @include Transition(0.7); transition-timing-function: ease-in; } .sub-menu-hidden-mob { } > a { border-bottom: 1px solid transparent; } } } } .sub-menu-hidden-mob { overflow: hidden; max-height: 0; @include Transition(0.4); ul { li { padding-right: 0; display: table; width: 100%; background: red; border-bottom: 0; border-top: 1px solid #e1e1e1; a { display: table-cell; vertical-align: middle; height: 43px; padding-left: 68px; color: $main-color; text-decoration: none !important; } } } } @media (max-width: 991px) { .mobile-menu-hidden { display: block !important; } .off-scroll { position: fixed; } } @media (max-width: 850px) { .hidden-tablet-850 { display: none !important; } } @media (max-width: 767px) { .menu_mob { top: -14px; } } @media (max-width: 450px) { .mobile-menu-hidden { width: 310px !important; margin-right: -310px; } } @media (max-width: 380px) { #menu-mob-hidden { width: 347px; margin-left: - 347px; &.opens { &.visible { margin-left: 0; } } } }