woocommerce/plugins/woocommerce-admin/client/layout/store-alerts/style.scss

113 lines
1.8 KiB
SCSS

/** @format */
@mixin store-alerts-box-shadow( $color ) {
box-shadow: 0 0 8px -2px rgba(0, 0, 0, 0.3), inset 4px 0 0 0 $color;
}
.woocommerce-store-alerts {
margin: 0 0 $gap-largest 0;
margin-right: var(--large-gap);
padding: $gap-large;
border: 0;
.woocommerce-card__header {
padding: 0;
border: 0;
margin-bottom: 12px;
}
.woocommerce-card__title {
display: inline-flex;
svg {
margin-right: 6px;
}
}
.woocommerce-card__body {
padding: 0;
}
a.components-button.is-button {
color: $core-grey-dark-500;
}
@include breakpoint( '<782px' ) {
padding: $gap;
.woocommerce-card__header {
display: flex;
flex-direction: column-reverse;
align-items: flex-start;
}
}
}
.is-alert-emergency {
$alert-color: #dc3232;
@include store-alerts-box-shadow( $alert-color );
.woocommerce-card__title {
svg {
color: $alert-color;
}
}
}
.is-alert-alert {
$alert-color: #11a0d2;
@include store-alerts-box-shadow( $alert-color );
.woocommerce-card__title {
svg {
color: $alert-color;
}
}
}
.is-alert-critical {
$alert-color: #ffb900;
@include store-alerts-box-shadow( $alert-color );
.woocommerce-card__title {
svg {
color: $alert-color;
}
}
}
.woocommerce-store-alerts__message {
margin-bottom: 16px;
}
.woocommerce-store-alerts__pagination {
display: inline-flex;
align-items: center;
border: 1px solid $button-border;
border-bottom: 2px solid $button-border;
border-radius: 4px;
background: $button;
margin-left: 16px;
min-width: 120px;
.components-button {
padding: 4px;
}
.woocommerce-store-alerts__pagination-label {
padding: 5px 12px;
border-width: 0 1px;
border-color: $button-border;
border-style: solid;
}
@include breakpoint( '<782px' ) {
margin-left: 0;
margin-bottom: 14px;
.woocommerce-store-alerts__pagination-label {
flex: 1 1 auto;
text-align: center;
}
}
}