@import './stylesheets/variables'; @import './components/container/style'; @import './components/header/style'; .woocommerce-navigation { position: relative; width: $navigation-width; box-sizing: border-box; background-color: $gray-900; z-index: 1100; //Must be greater than z-index on .woocommerce-layout__header @media ( max-width: 960px ) { width: $header-height; height: $header-height; } .components-navigation { box-sizing: border-box; } } .woocommerce-navigation__wrapper { background-color: $gray-900; position: absolute; top: $header-height; width: 100%; height: calc(100vh - #{$header-height}); overflow-y: auto; } body.is-wc-nav-expanded { .woocommerce-navigation { width: $navigation-width; height: 100%; } } body.is-wc-nav-folded { .woocommerce-navigation { width: $header-height; height: $header-height; overflow: hidden; .woocommerce-navigation-header { > * { display: none; } } .woocommerce-navigation-header__site-icon { display: block; } .components-navigation { display: none; } } .woocommerce-transient-notices { left: $gap; } #wpbody { padding-left: 0; } } .has-woocommerce-navigation { #wpadminbar, #adminmenuwrap, #adminmenuback { display: none !important; } &.woocommerce_page_wc-settings, &.woocommerce_page_wc-status { .woo-nav-tab-wrapper { display: none; } .woocommerce .subsubsub { font-size: 14px; margin: 5px 0; } } #wpcontent, #wpfooter { margin-left: 0; @media ( max-width: 960px ) { margin-left: 0; } } #wpbody { padding-left: $navigation-width; @media ( max-width: 960px ) { padding-left: 0; } } .woocommerce-layout__header.is-embed-loading { &::before { content: ''; position: fixed; width: $navigation-width; height: 100%; background: $gray-900; @include breakpoint( '<960px' ) { width: $header-height; height: $header-height; } } } #woocommerce-embedded-root.is-embed-loading { margin-bottom: -$adminbar-height; } }