2018-05-25 19:34:35 +00:00
|
|
|
/** @format */
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-activity-card {
|
2018-07-16 13:53:38 +00:00
|
|
|
position: relative;
|
2018-09-11 07:27:13 +00:00
|
|
|
padding: $fallback-gutter;
|
2018-07-16 13:53:38 +00:00
|
|
|
padding: $gutter;
|
2019-08-29 16:07:56 +00:00
|
|
|
background: $studio-white;
|
2018-07-16 13:53:38 +00:00
|
|
|
border-bottom: 1px solid $core-grey-light-400;
|
|
|
|
color: $gray-text;
|
|
|
|
@include font-size( 13 );
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 84px 1fr;
|
|
|
|
grid-template-areas:
|
|
|
|
'icon header'
|
|
|
|
'icon body'
|
|
|
|
'icon actions';
|
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
grid-template-columns: 76px 1fr;
|
|
|
|
}
|
2018-05-25 19:34:35 +00:00
|
|
|
}
|
|
|
|
|
2018-07-16 13:53:38 +00:00
|
|
|
.woocommerce-activity-card__unread {
|
|
|
|
position: absolute;
|
2018-09-11 07:27:13 +00:00
|
|
|
top: calc(#{ $fallback-gutter } - 6px);
|
2018-07-16 13:53:38 +00:00
|
|
|
top: calc(#{ $gutter } - 6px);
|
2018-09-11 07:27:13 +00:00
|
|
|
right: calc(#{ $fallback-gutter } - 6px);
|
2018-07-16 13:53:38 +00:00
|
|
|
right: calc(#{ $gutter } - 6px);
|
|
|
|
width: 6px;
|
|
|
|
height: 6px;
|
|
|
|
border-radius: 50%;
|
|
|
|
background: $core-orange;
|
|
|
|
}
|
2018-05-25 19:34:35 +00:00
|
|
|
|
2018-07-16 13:53:38 +00:00
|
|
|
.woocommerce-activity-card__icon {
|
|
|
|
grid-area: icon;
|
|
|
|
fill: $core-grey-light-600;
|
|
|
|
}
|
2018-05-25 19:34:35 +00:00
|
|
|
|
2018-07-16 13:53:38 +00:00
|
|
|
.woocommerce-activity-card__header {
|
|
|
|
margin-bottom: $gap;
|
2018-07-26 18:52:25 +00:00
|
|
|
display: flex;
|
2018-08-01 12:21:51 +00:00
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
a {
|
2019-08-29 16:07:56 +00:00
|
|
|
color: $studio-woocommerce-purple;
|
2018-08-01 12:21:51 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2018-05-25 19:34:35 +00:00
|
|
|
|
2018-07-16 13:53:38 +00:00
|
|
|
.woocommerce-activity-card__title {
|
2018-05-25 19:34:35 +00:00
|
|
|
margin: 0;
|
2018-07-16 13:53:38 +00:00
|
|
|
@include font-size( 13 );
|
2018-08-01 12:21:51 +00:00
|
|
|
order: 2;
|
2018-05-25 19:34:35 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-activity-card__date {
|
2018-07-16 13:53:38 +00:00
|
|
|
color: $core-grey-dark-300;
|
|
|
|
text-transform: uppercase;
|
|
|
|
@include font-size( 11 );
|
2018-07-26 18:52:25 +00:00
|
|
|
margin-bottom: $gap-small;
|
2018-08-01 12:21:51 +00:00
|
|
|
order: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__subtitle {
|
|
|
|
order: 3;
|
2018-05-25 19:34:35 +00:00
|
|
|
}
|
|
|
|
|
2018-07-26 18:52:25 +00:00
|
|
|
@include breakpoint( '>782px' ) {
|
|
|
|
grid-area: header;
|
|
|
|
display: grid;
|
2018-09-14 07:19:36 +00:00
|
|
|
grid-template:
|
2018-07-26 18:52:25 +00:00
|
|
|
'title date'
|
2018-09-14 07:19:36 +00:00
|
|
|
'subtitle date' /
|
|
|
|
1fr auto;
|
2018-07-26 18:52:25 +00:00
|
|
|
|
|
|
|
.woocommerce-activity-card__title {
|
|
|
|
grid-area: title;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__date {
|
2018-09-14 07:19:36 +00:00
|
|
|
display: block;
|
2018-07-26 18:52:25 +00:00
|
|
|
grid-area: date;
|
|
|
|
justify-self: end;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__subtitle {
|
|
|
|
grid-area: subtitle;
|
|
|
|
}
|
2018-05-25 19:34:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-activity-card__body {
|
2018-07-16 13:53:38 +00:00
|
|
|
grid-area: body;
|
2019-04-30 09:40:10 +00:00
|
|
|
|
|
|
|
& > p:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > p:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-05-25 19:34:35 +00:00
|
|
|
}
|
|
|
|
|
2018-06-01 14:35:18 +00:00
|
|
|
.woocommerce-activity-card__actions {
|
2018-07-16 13:53:38 +00:00
|
|
|
grid-area: actions;
|
|
|
|
margin-top: $gap;
|
2018-05-25 19:34:35 +00:00
|
|
|
|
|
|
|
// Ensures any immediate child with a sibling has space between the items
|
|
|
|
& > * + * {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
2018-07-20 18:41:39 +00:00
|
|
|
|
|
|
|
.woocommerce-activity-card.is-loading {
|
|
|
|
.is-placeholder {
|
|
|
|
@include placeholder();
|
|
|
|
display: inline-block;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__title {
|
|
|
|
width: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__subtitle {
|
|
|
|
margin-top: $gap-smallest;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__date {
|
|
|
|
width: 100%;
|
2018-07-26 18:52:25 +00:00
|
|
|
margin-bottom: $gap;
|
|
|
|
|
|
|
|
@include breakpoint( '>782px' ) {
|
|
|
|
text-align: right;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-07-20 18:41:39 +00:00
|
|
|
|
|
|
|
.is-placeholder {
|
|
|
|
// Fixed width for a fake date
|
|
|
|
width: 68px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__icon {
|
2018-09-11 07:27:13 +00:00
|
|
|
margin-right: $fallback-gutter;
|
2018-07-20 18:41:39 +00:00
|
|
|
margin-right: $gutter;
|
|
|
|
|
|
|
|
.is-placeholder {
|
|
|
|
height: 48px;
|
|
|
|
width: 48px;
|
|
|
|
}
|
2019-06-12 21:51:08 +00:00
|
|
|
}
|
2018-07-26 18:52:25 +00:00
|
|
|
|
2019-06-12 21:51:08 +00:00
|
|
|
&.woocommerce-stock-activity-card,
|
|
|
|
&.woocommerce-review-activity-card {
|
|
|
|
.woocommerce-activity-card__icon {
|
2018-07-26 18:52:25 +00:00
|
|
|
.is-placeholder {
|
2019-06-12 21:51:08 +00:00
|
|
|
height: 60px;
|
|
|
|
width: 60px;
|
2018-07-26 18:52:25 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-20 18:41:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__body .is-placeholder {
|
|
|
|
width: 100%;
|
|
|
|
margin-bottom: $gap-smallest;
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
width: 65%;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__actions {
|
|
|
|
.is-placeholder {
|
|
|
|
width: 91px;
|
|
|
|
height: 34px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-04 16:01:43 +00:00
|
|
|
|
|
|
|
// Needs the double-class for specificity
|
|
|
|
.woocommerce-activity-card.woocommerce-order-activity-card {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
grid-template-areas:
|
|
|
|
'header'
|
|
|
|
'body'
|
|
|
|
'actions';
|
|
|
|
|
|
|
|
.woocommerce-activity-card__icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-flag {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__subtitle {
|
|
|
|
span + span::before {
|
2019-05-27 09:38:50 +00:00
|
|
|
content: ' \2022\ ';
|
2018-12-04 16:01:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Needs the double-class for specificity
|
|
|
|
.woocommerce-activity-card.woocommerce-inbox-activity-card {
|
|
|
|
grid-template-columns: 72px 1fr;
|
2019-05-28 19:56:50 +00:00
|
|
|
height: 100%;
|
|
|
|
opacity: 1;
|
|
|
|
padding: $fallback-gutter;
|
|
|
|
padding: $gutter;
|
2019-05-31 15:46:13 +00:00
|
|
|
|
|
|
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
|
|
transition: opacity 0.3s, height 0s, padding 0s;
|
|
|
|
}
|
2018-12-04 16:01:43 +00:00
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
grid-template-columns: 64px 1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__header {
|
|
|
|
margin-bottom: $gap-small;
|
|
|
|
}
|
2019-05-28 19:56:50 +00:00
|
|
|
|
|
|
|
&.actioned {
|
|
|
|
height: 0;
|
|
|
|
opacity: 0;
|
|
|
|
padding: 0;
|
2019-05-31 15:46:13 +00:00
|
|
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
|
|
transition: opacity 0.3s, height 0s 0.3s, padding 0s 0.3s;
|
|
|
|
}
|
2019-05-28 19:56:50 +00:00
|
|
|
}
|
2018-12-04 16:01:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-review-activity-card {
|
2019-06-12 21:51:08 +00:00
|
|
|
.woocommerce-activity-card__body > span > p {
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-04 16:01:43 +00:00
|
|
|
.woocommerce-review-activity-card__verified {
|
|
|
|
margin-left: $gap-small;
|
|
|
|
display: inline-flex;
|
|
|
|
position: relative;
|
|
|
|
top: $gap-smallest;
|
|
|
|
color: $valid-green;
|
|
|
|
@include font-size( 12 );
|
|
|
|
|
|
|
|
.gridicon {
|
|
|
|
margin-right: $gap-smallest;
|
|
|
|
fill: $valid-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-review-activity-card__image-overlay {
|
2019-06-12 21:51:08 +00:00
|
|
|
position: relative;
|
|
|
|
|
2018-12-04 16:01:43 +00:00
|
|
|
img.woocommerce-gravatar {
|
2019-08-29 16:07:56 +00:00
|
|
|
border: 2px solid $studio-white;
|
2019-06-12 21:51:08 +00:00
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: -6px;
|
2019-03-25 09:08:25 +00:00
|
|
|
z-index: 2;
|
|
|
|
}
|
2018-12-04 16:01:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
.woocommerce-review-activity-card__image-overlay {
|
|
|
|
margin-top: $gap-smallest;
|
|
|
|
}
|
|
|
|
|
2019-03-25 09:08:25 +00:00
|
|
|
.woocommerce-review-activity-card__image-overlay__product .woocommerce-gravatar {
|
2018-12-04 16:01:43 +00:00
|
|
|
margin-left: 0;
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
left: 32px;
|
|
|
|
top: -28px;
|
2019-03-25 09:08:25 +00:00
|
|
|
z-index: 1;
|
2018-12-04 16:01:43 +00:00
|
|
|
}
|
2019-06-12 21:51:08 +00:00
|
|
|
}
|
|
|
|
}
|
2018-12-04 16:01:43 +00:00
|
|
|
|
2019-06-12 21:51:08 +00:00
|
|
|
.woocommerce-review-activity-card__image-overlay__product,
|
|
|
|
.woocommerce-stock-activity-card__image-overlay__product {
|
|
|
|
height: 60px;
|
|
|
|
position: relative;
|
|
|
|
width: 60px;
|
|
|
|
|
|
|
|
&.is-placeholder::before {
|
|
|
|
background-color: $core-grey-dark-500;
|
|
|
|
border-radius: 50%;
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
opacity: 0.1;
|
2018-12-04 16:01:43 +00:00
|
|
|
}
|
|
|
|
}
|
2019-03-27 00:33:04 +00:00
|
|
|
|
|
|
|
.woocommerce-stock-activity-card {
|
2019-06-27 09:21:43 +00:00
|
|
|
@media screen and (prefers-reduced-motion: no-preference) {
|
|
|
|
transition: opacity 0.3s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-dimmed {
|
|
|
|
opacity: 0.7;
|
|
|
|
}
|
|
|
|
|
2019-03-27 00:33:04 +00:00
|
|
|
.woocommerce-stock-activity-card__stock-quantity {
|
|
|
|
background: $core-grey-light-300;
|
|
|
|
color: $core-grey-dark-500;
|
|
|
|
padding: 3px $gap-smaller;
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
2019-03-27 17:59:52 +00:00
|
|
|
|
|
|
|
.woocommerce-stock-activity-card__edit-quantity {
|
|
|
|
display: inline-flex;
|
|
|
|
width: 50px;
|
|
|
|
margin-right: 10px;
|
|
|
|
|
|
|
|
input {
|
|
|
|
border-radius: 4px;
|
|
|
|
height: 36px;
|
|
|
|
|
2019-04-11 15:42:14 +00:00
|
|
|
&[type='number'] {
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
|
|
|
|
&::-webkit-outer-spin-button,
|
|
|
|
&::-webkit-inner-spin-button {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2019-03-27 17:59:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-11 15:42:14 +00:00
|
|
|
.components-button {
|
|
|
|
min-height: 34px;
|
|
|
|
padding: 2px 10px;
|
|
|
|
line-height: 26px;
|
2019-03-27 17:59:52 +00:00
|
|
|
}
|
2019-04-02 17:37:50 +00:00
|
|
|
|
|
|
|
.woocommerce-activity-card__title {
|
|
|
|
@include font-size( 15 );
|
|
|
|
}
|
|
|
|
|
|
|
|
.woocommerce-activity-card__subtitle {
|
|
|
|
color: $core-grey-dark-500;
|
|
|
|
@include font-size( 12 );
|
|
|
|
}
|
2019-03-27 00:33:04 +00:00
|
|
|
}
|
2019-04-30 09:40:10 +00:00
|
|
|
|
2019-06-12 21:51:08 +00:00
|
|
|
.woocommerce-empty-activity-card {
|
2019-04-30 09:40:10 +00:00
|
|
|
grid-template-columns: 72px 1fr;
|
2019-06-12 21:51:08 +00:00
|
|
|
|
|
|
|
@include breakpoint( '<782px' ) {
|
|
|
|
grid-template-columns: 64px 1fr;
|
|
|
|
}
|
2019-04-30 09:40:10 +00:00
|
|
|
}
|