Fix header height and positioning for wc nav (https://github.com/woocommerce/woocommerce-admin/pull/5173)
* Fix header height and positioning for wc nav * Remove body margin via CSS
This commit is contained in:
parent
27a6b4d967
commit
6e8b4bad5f
|
@ -262,3 +262,7 @@
|
|||
.woocommerce-layout__notice-list-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.has-woocommerce-navigation .woocommerce-layout__activity-panel {
|
||||
top: 0;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
.woocommerce-layout__header {
|
||||
background: $studio-white;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid $studio-white;
|
||||
padding: 0;
|
||||
min-height: $header-height;
|
||||
position: fixed;
|
||||
|
@ -42,6 +41,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.has-woocommerce-navigation .woocommerce-layout__header {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.woocommerce-page {
|
||||
#contextual-help-link-wrap,
|
||||
#screen-options-link-wrap {
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
color: $studio-gray-60;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
|
||||
'Helvetica Neue', sans-serif;
|
||||
margin-top: -32px;
|
||||
|
||||
#wpwrap {
|
||||
top: 0;
|
||||
|
@ -73,7 +74,7 @@
|
|||
}
|
||||
|
||||
#wpcontent {
|
||||
margin-left: 0;
|
||||
margin-left: 0 !important;
|
||||
|
||||
> #wpbody {
|
||||
display: block;
|
||||
|
|
|
@ -75,7 +75,6 @@ class ProfileWizard extends Component {
|
|||
const { activePlugins, profileItems, updateProfileItems } = this.props;
|
||||
|
||||
document.body.classList.remove( 'woocommerce-admin-is-loading' );
|
||||
document.documentElement.classList.remove( 'wp-toolbar' );
|
||||
document.body.classList.add( 'woocommerce-onboarding' );
|
||||
document.body.classList.add( 'woocommerce-profile-wizard__body' );
|
||||
document.body.classList.add( 'woocommerce-admin-full-screen' );
|
||||
|
@ -100,7 +99,6 @@ class ProfileWizard extends Component {
|
|||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
document.documentElement.classList.add( 'wp-toolbar' );
|
||||
document.body.classList.remove( 'woocommerce-onboarding' );
|
||||
document.body.classList.remove( 'woocommerce-profile-wizard__body' );
|
||||
document.body.classList.remove( 'woocommerce-admin-full-screen' );
|
||||
|
|
|
@ -194,7 +194,7 @@ p.woocommerce-profile-wizard__themes-skip-this-step {
|
|||
background: $studio-white;
|
||||
flex-direction: row;
|
||||
display: flex;
|
||||
height: 56px;
|
||||
height: $header-height;
|
||||
border-bottom: 1px solid $studio-gray-5;
|
||||
padding-left: $gap;
|
||||
padding-right: $gap;
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
}
|
||||
|
||||
.woocommerce-profile-wizard__header {
|
||||
height: 56px;
|
||||
height: $header-height;
|
||||
border-bottom: 1px solid $studio-gray-5;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
@ -24,7 +24,7 @@ $gap-smaller: 8px;
|
|||
$gap-smallest: 4px;
|
||||
|
||||
// Header
|
||||
$header-height: 56px;
|
||||
$header-height: 60px;
|
||||
|
||||
// Sidebar
|
||||
$sidebar-width: 272px;
|
||||
|
|
Loading…
Reference in New Issue