woocommerce/plugins/woocommerce-admin/client/navigation/style.scss

145 lines
2.4 KiB
SCSS

@import './stylesheets/variables.scss';
@import './components/container/style.scss';
@import './components/header/style.scss';
.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;
}
.components-navigation__menu-title {
overflow: visible;
}
}
.woocommerce-navigation__wrapper {
background-color: $gray-900;
position: absolute;
top: $header-height;
width: 100%;
height: calc(100vh - #{$header-height + $adminbar-height});
overflow-y: auto;
}
.is-wp-toolbar-disabled .woocommerce-navigation__wrapper {
height: calc(100vh - #{$header-height});
}
body.is-wc-nav-expanded {
.woocommerce-navigation {
width: $navigation-width;
height: 100%;
}
font > .xdebug-error {
margin-left: calc(#{$navigation-width} + #{$gap});
}
}
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 {
#adminmenuwrap,
#adminmenuback {
display: none !important;
}
&.woocommerce_page_wc-reports,
&.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;
}
&:not(.is-wp-toolbar-disabled) {
#wpbody-content {
margin-top: $adminbar-height;
}
}
font > .xdebug-error {
margin-top: $header-height;
}
}