woocommerce/plugins/woocommerce-admin/client/homescreen/activity-panel/style.scss

112 lines
1.9 KiB
SCSS
Raw Normal View History

.woocommerce-accordion-card {
.components-panel__body-title {
margin: 0;
padding: 1em 0;
.components-button {
display: flex;
flex-direction: row;
width: 100%;
padding-left: 24px;
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 28px;
color: $gray-900;
&:focus {
box-shadow: unset;
outline: unset;
}
.woocommerce-accordion-header {
order: 1;
text-align: left;
width: 50%;
.woocommerce-accordion-title {
vertical-align: bottom;
margin-right: $gap;
}
}
& > span {
order: 2;
width: 50%;
text-align: right;
.components-panel__arrow {
width: 30px;
height: 30px;
vertical-align: text-top;
}
}
}
}
.woocommerce-activity-card {
padding: $gap-largest/2 $gutter $gutter;
&__header {
Migrate Stock Panel to Homescreen (https://github.com/woocommerce/woocommerce-admin/pull/5729) * Refactor low stock variable to be the count instead of a boolean. * Add initial render of the Stock panel on the homescreen. * Move existing Stock panel to homescreen accordion. * Ensure int value for low stock product count. * Update ProductImage styling. * Update stock activity car styles. * Only show 5 low stock products. * Add "undo" action to the stock updated snackbar. * Fix check for explicit notice dismissal when taking actions. * Hide now-in-stock products after updating. By cllearing "edited" flag on successful update. * Fetch more products after updating stock. * Fix the number of product placeholders shown. * Only show products placeholders on the initial fetch. * Fix placeholder style. * Fetch low stock count dynamically. * Let initialOpen prop toggle Accordion panels if they haven't been toggled by the user. * Refactor item total count state. Allows for auto-updating item totals whenever identical queries (from a totals perspective) are issued. * Add last order date to low stock products API response. * Allow non-date strings in ActivityCard date prop. * Add last order date to stock panel cards. * Remove empty stock panel view. * Add test file for StockPanel. * Only request necessary fields from products endpoint. * Add test for products fetch after stock update. * Fix field name. * Add test for last order date in low stock products API response. * Stock panel should be initially closed. * Skip updating a product if the quantity is unchanged.
2020-11-25 18:51:15 +00:00
margin-bottom: $gap-small;
}
}
.woocommerce-layout__activity-panel-outbound-link {
display: flex;
justify-content: space-between;
align-items: center;
height: 50px;
border-bottom: 1px solid $gray-100;
padding: $gap $fallback-gutter;
padding: $gap $gutter;
font-size: 13px;
font-weight: 500;
line-height: 18px;
margin: 0;
text-decoration: none;
.gridicon {
display: none;
}
&:hover {
background: $gray-200;
}
&:active {
background: $gray-100;
}
&:focus {
background: $gray-200;
box-shadow: inset 0 0 0 1px $box-shadow-blue,
inset 0 0 0 2px $gray-200;
}
&:hover,
&:focus {
.gridicon {
display: initial;
}
}
&:active {
.gridicon {
display: initial;
}
}
}
.woocommerce-layout__activity-panel-empty {
border-top: 1px solid $gray-200;
}
.woocommerce-activity-card__button {
&:focus {
box-shadow: unset;
outline: unset;
border: 1px solid $gray-200;
}
}
}
.components-panel__body-title {
.woocommerce-accordion-card .is-opened & {
border-bottom: 1px solid $gray-200;
}
}