/** @format */ .woocommerce-activity-card { position: relative; padding: $fallback-gutter; padding: $gutter; background: $white; 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; } } .woocommerce-activity-card__unread { position: absolute; top: calc(#{ $fallback-gutter } - 6px); top: calc(#{ $gutter } - 6px); right: calc(#{ $fallback-gutter } - 6px); right: calc(#{ $gutter } - 6px); width: 6px; height: 6px; border-radius: 50%; background: $core-orange; } .woocommerce-activity-card__icon { grid-area: icon; fill: $core-grey-light-600; @include breakpoint( '<782px' ) { .gridicon, img { height: 24px; width: 24px; margin-left: $gap-small; } } } .woocommerce-activity-card__header { margin-bottom: $gap; display: flex; flex-direction: column; a { color: $woocommerce; text-decoration: none; } .woocommerce-activity-card__title { margin: 0; @include font-size( 13 ); order: 2; } .woocommerce-activity-card__date { color: $core-grey-dark-300; text-transform: uppercase; @include font-size( 11 ); margin-bottom: $gap-small; order: 1; } .woocommerce-activity-card__subtitle { order: 3; } @include breakpoint( '>782px' ) { grid-area: header; display: grid; grid-template: 'title date' 'subtitle date' / 1fr auto; .woocommerce-activity-card__title { grid-area: title; } .woocommerce-activity-card__date { display: block; grid-area: date; justify-self: end; margin-bottom: 0; } .woocommerce-activity-card__subtitle { grid-area: subtitle; } } } .woocommerce-activity-card__body { grid-area: body; } .woocommerce-activity-card__actions { grid-area: actions; margin-top: $gap; // Ensures any immediate child with a sibling has space between the items & > * + * { margin-left: 0.5em; } a.components-button.is-button { color: $gray-text; } } .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%; margin-bottom: $gap; @include breakpoint( '>782px' ) { text-align: right; margin-bottom: 0; } .is-placeholder { // Fixed width for a fake date width: 68px; } } .woocommerce-activity-card__icon { margin-right: $fallback-gutter; margin-right: $gutter; .is-placeholder { height: 48px; width: 48px; } @include breakpoint( '<782px' ) { .gridicon, img, .is-placeholder { height: 24px; width: 24px; margin-left: $gap-small; } } } .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; } } } // 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 { content: ' \2022 '; } } } // Needs the double-class for specificity .woocommerce-activity-card.woocommerce-inbox-activity-card { grid-template-columns: 72px 1fr; @include breakpoint( '<782px' ) { grid-template-columns: 64px 1fr; } .woocommerce-activity-card__header { margin-bottom: $gap-small; } } .woocommerce-review-activity-card { .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 { margin-left: -$gap-large; img.woocommerce-gravatar { left: $gap-large; position: relative; top: -42px; border: 2px solid $white; z-index: 2; } .woocommerce-review-activity-card__image-overlay__product { display: inline-block; 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; } } } @include breakpoint( '<782px' ) { .woocommerce-review-activity-card__image-overlay { margin-top: $gap-smallest; } .woocommerce-review-activity-card__image-overlay__product .woocommerce-gravatar { margin-left: 0; width: 18px; height: 18px; left: 32px; top: -28px; z-index: 1; } .woocommerce-review-activity-card__image-overlay__product, .woocommerce-review-activity-card__image-overlay__product .woocommerce-product-image { width: 38px; height: 38px; } } } .woocommerce-stock-activity-card { .woocommerce-stock-activity-card__stock-quantity { background: $core-grey-light-300; color: $core-grey-dark-500; padding: 3px $gap-smaller; border-radius: 3px; } .woocommerce-stock-activity-card__edit-quantity { display: inline-flex; width: 50px; margin-right: 10px; input { border-radius: 4px; height: 36px; &[type='number']::-webkit-outer-spin-button, &[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } } } .is-button { height: 34px; } .woocommerce-activity-card__title { @include font-size( 15 ); } .woocommerce-activity-card__subtitle { color: $core-grey-dark-500; @include font-size( 12 ); } }