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

73 lines
1.4 KiB
SCSS
Raw Normal View History

.woocommerce-page #wpcontent,
.woocommerce-page.woocommerce_page_wc-admin #wpbody-content {
overflow-x: inherit !important; // Overwriting wc-admin css from elsewhere. Necessary to make the right-hand column 'stick'
}
.woocommerce-homepage {
display: flex;
max-width: 1032px;
margin: 0 auto;
justify-content: space-between;
.woocommerce-task-dashboard__container {
width: 100%;
}
&.hasInbox .woocommerce-homepage-column {
width: calc(50% - 12px);
margin: 0;
@include breakpoint( '<782px' ) {
width: 100%;
position: inherit;
top: auto;
}
& > * {
margin-bottom: 24px;
}
}
@include breakpoint( '<782px' ) {
margin-left: -16px;
margin-right: -16px;
flex-direction: column-reverse;
}
.components-card {
.components-card__header.is-size-large {
display: grid;
// to maintain consistent height with or without an ellipsis menu
min-height: 63px;
// to match alignment of `Card` from `@woocommerce/components`
padding: $gap-small $gap;
// IE doesn't support `align-items` on grid container
& > * {
align-self: center;
}
h2 {
// to match height of `Card` from `@woocommerce/components`
margin: 0;
}
}
}
}
.woocommerce-homepage-column {
width: 50%;
top: 130px;
margin: 0 auto;
align-self: flex-start;
}
.temp-content {
width: 100%;
height: 300px;
background-color: #9acd32;
}
.is-inbox .temp-content {
height: 225px;
background-color: #6495ed;
}