![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/design/frontend/Cnc/default/web/scss/layout/header/ |
// ============================================== // LAYOUT - Header // ============================================== // Configuration $header-height: 50px; $header-search-max-width: 570px; body.locked .page-header > .header.sticky { //background-color: transparent; } .page-header { background-color: #fff; position: relative; z-index: 150; & + .page-main { @include breakpoint(xl) { margin-top: 30px; } } > .header { position: relative; z-index: 20; top: -100px; transform: translateY(100px); &.sticky { position: fixed; left: 0; right: 0; top: 0; transform: translateY(0); background: #FFF; transition: top .3s linear; @extend .box-shadow-bottom; @include breakpoint(xl) { z-index: 10; .header__content-wrapper { //height: 72px; > .block-search { @include breakpoint(xl) { padding: 16px 0; } } } } } } .header__content-wrapper { @extend .container; display: flex; padding: 0 15px; align-items: center; @include breakpoint(xl) { padding: 0 30px; //height: 90px; align-items: normal; } // Logo > .logo { padding: 0 10px; @include breakpoint(only-xl) { flex-grow: 1; flex-basis: 0; text-align: center; } @include breakpoint(xl) { padding-right: 20px; display: flex; align-items: center; } img { width: 175px; @include breakpoint(xl) { width: 260px; } } } // Search > .block-search { margin-left: auto; display: flex; justify-content: center; @include breakpoint(xl) { flex-grow: 1; flex-basis: 0; padding: 25px 0; } .block-title, .action.advanced { @extend .visually-hidden; } .block-content { @include breakpoint(xl) { width: 100%; max-width: $header-search-max-width; display: flex; } .icon-search { display: inline-block; font-size: 1.8rem; padding: 10px; color: $c-blue-dark; @include breakpoint(xl) { display: none; } } } // Search form .block-content.active form.minisearch { @include breakpoint(only-xl) { opacity: 1; } } .ui-dialog { @include breakpoint(only-xl) { background-color: transparent; overflow: visible; padding: 0; transform: translateY(100%); border-top: 1px solid $c-grey; form.minisearch { display: flex !important; align-items: flex-start; } } } form.minisearch { display: none; @include breakpoint(only-xl) { background-color: rgba(36,52,65,0.44); padding: 8px 40px 8px 20px; &.active { background-color: $c-white; } // Keep input text visible .input-text { position: relative; z-index: 1; } } @include breakpoint(xl) { display: flex !important; align-items: center; width: 100%; } .field.search { flex-grow: 1; @include breakpoint(xl) { margin-left: auto; } .label { margin-bottom: 0; span { @include visually-hidden; } &::before { font-size: 2.6rem; color: lighten($c-black, 40%); @include breakpoint(xl) { display: none; } } } .control { // Error Message Position > .mage-error + .mage-error { @include breakpoint(xl) { position: absolute; } } } } // Button .actions { margin-left: -1px; position: relative; .search { height: 36px; width: 36px; padding: 10px; background-color: $c-pink; color: $c-white; border-radius: 0 20px 20px 0; cursor: pointer; @include breakpoint(xl) { height: 40px; width: 48px; } span { @extend .visually-hidden; } } } // Search icon .action.search, .search .label { &::before { @extend %icon-icomoon; content: "\e923"; font-size: 1rem; display: block; @include breakpoint(xl) { font-size: 1.5rem; } } } } } // Links > ul.links { display: flex; align-items: center; justify-content: center; @include breakpoint(xl) { margin-right: 40px; } > li { flex: 1; text-align: center; // Fix bug on IE11 @include only_ie { flex: auto; } & + li { margin-left: 20px; } } > li.authorization-link > a, .customer-name { position: relative; display: flex; flex-direction: column; &::before { content: "\e92d"; @extend %icon-icomoon; font-size: 2.9rem; color: $c-blue-dark; margin-bottom: 6px; } @include breakpoint(only-xl) { width: 40px; text-indent: -9999px; &::before { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; text-indent: 0; margin-bottom: 0; } } } // Logged account toggle (Luma) .customer-welcome { position: relative; & + .authorization-link { display: none; } // Dropdown menu .customer-menu { display: none; } &.active { .customer-menu { display: block; } } // Toggle arrow .action.switch { span { @extend .visually-hidden; } } ul { position: absolute; right: 0; bottom: -6px; transform: translateY(100%); min-width: 130px; border: 1px solid #d1d1d1; background-color: lighten($c-black, 90%); li { margin: 0; a { display: block; padding: 10px; } } } } .customer-name { &:hover { cursor: pointer; } } } } // Customer Account Login Block .customer-block { @include breakpoint(only-xl) { // Hide before moving to nav sections display: none; } @include breakpoint(xl) { display: flex; &.active > a { &:before, &:after { opacity: 1; transform: translateX(-50%) translateY(-10px); } } } > a { display: flex; padding: 12px 20px; position: relative; color: $c-blue; font-size: 1.2rem; font-weight: $fw-roboto-bold; text-transform: uppercase; @include breakpoint(xl) { text-transform: none; color: $c-blue-dark; font-size: 1.3rem; // Icon triangle &:before, &:after { display: inline-block; position: absolute; z-index: 2; content: ""; left: 50%; top: 100%; transform: translateX(-50%) translateY(-25px); width: 0; height: 0; opacity: 0; border-style: solid; border-width: 0 10px 10px 10px; transition: transform .3s linear; } &:before { border-color: transparent transparent $c-grey transparent; } &:after { border-color: transparent transparent $c-white transparent; margin-top: 1px; } } & > span { display: flex; align-items: center; flex-wrap: nowrap; &::before { content: "\e92d"; @extend %icon-icomoon; font-size: 1.7rem; color: $c-blue; margin-right: 8px; @include breakpoint(xl) { color: $c-blue-dark; font-size: 2.6rem; } } } } } } // Search Auto Complete // ________________________________________________________ body { &.searchautocomplete__active { overflow: hidden; } } // Search Autocomplete Container .searchautocomplete__active { @include breakpoint(only-xl) { form.minisearch { padding-right: 60px; } } } // Mirasvit - Search Autocomplete Container .mst-searchautocomplete__autocomplete { position: absolute; opacity: 0; visibility: hidden; background-color: $c-white; width: 100% !important; left: 0 !important; right: 0 !important; padding: 50px 20px; @include breakpoint(only-xl) { height: calc(100vh - 59px); padding: 52px 20px 20px; top:0 !important; &:before { content: ""; display: block; background-color: rgba(1,1,1,0.4); position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: -1; visibility: hidden; transition: visibility .5s linear; } } @include breakpoint(xl) { box-shadow: 26px -8px 10px -11px rgba(111,111,111,0.5); } &._active { opacity: 1; visibility: visible; transition: opacity .3s linear; margin-top: 9px; @include breakpoint(only-xl) { &:before { visibility: visible; } } @include breakpoint(xl) { margin-top: 16px; // Icon triangle &:before, &:after { display: inline-block; position: absolute; content: ""; left: 50%; top: 0; transform: translateX(-50%) translateY(-10px); width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 10px; transition: transform .3s linear; } &:before { border-color: transparent transparent $c-grey transparent; } &:after { border-color: transparent transparent $c-white transparent; margin-top: 1px; } } } .meta .title { margin-bottom: 8px; font-weight: $fw-roboto-medium; } } .mst-searchautocomplete__wrapper { max-width: 1190px; min-height: 25rem; margin: 0 auto; overflow-x: hidden; overflow-y: auto; @include breakpoint(only-xl) { height: 100%; } @include breakpoint(xl) { max-height: 70vh; padding: 0 20px; } } .mst-searchautocomplete__index { // Push Product &.magento_catalog_product { .mst-searchautocomplete__index-title { @include breakpoint(only-xl) { display: none; } } ul > li { @extend .product-item-info; display: flex; padding: 10px 10px 10px 0; @include breakpoint(only-xl) { border-width: 0 !important; // Reset extend product item info & + li { border-top-width: 1px !important; } .status-titles-grid { display: none; } } @include breakpoint(xl) { padding: 10px 10% 10px 10px; } & + li { @include breakpoint(xl) { border-top: transparent ; } } .picture { width: 70px; @include breakpoint(xl) { width: 180px; } img { width: 120px; } } .meta { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; flex-basis: 0; @include breakpoint(only-xl) { padding-left: 20px; .stock, .delivery-label { font-size: 1.1rem; display: inline-block; } .stock:before { margin-right: 6px; } } } .delivery-label { &::before { content:"-"; display: inline-block; margin-right: 5px; } } } } } .mst-searchautocomplete__index-title { @extend .title-1; } .mst-search-categories { display: flex; flex-direction: column; @include breakpoint(xl) { flex-direction: row; flex-wrap: wrap; margin: -10px -35px; } li { @include breakpoint(only-xl) { + li { margin-top: 10px; } } @include breakpoint(xl) { width: calc(100% / 3); padding: 10px 35px; } a { display: flex; align-items: center; width: 100%; height: 100%; padding: 20px; border: 1px solid currentColor; font-size: 1.6rem; font-weight: $fw-roboto-bold; color: $c-blue-grey; &:hover, &:focus { color: $c-blue; } &.category-link { position: relative; &:hover, &:focus { [class*="icon-"] { background-color: $c-blue; } } [class*="icon-"] { position: absolute; top: 0; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center; min-width: 60px; padding: 15px; background-color: $c-blue-grey; color: $c-white; font-size: 3rem; transition: background-color .3s; } .category-name { padding-left: 60px; } } } } } // Cta Show all .mst-searchautocomplete__show-all { text-align: center; padding: 20px; @include breakpoint(xl) { padding: 25px 0 50px; } > a { @extend .link-1; font-weight: $fw-roboto-bold; font-size: 1.6rem; } } .mst-searchautocomplete__close { position: absolute; top: 0; right: 0; padding: 10px; font-size: 1.8rem; &:before { display: block; content:"\e900"; color: $c-blue-dark; @include icon-icomoon; @include breakpoint(only-xl) { transform: rotate(45deg); } @include breakpoint(xl) { content:"\e913"; color: $c-blue; } } &:hover { cursor: pointer; } @include breakpoint(xl) { top: 10px; right: 10px; } }