2023-04-05 12:43:03 +00:00
|
|
|
%notice-banner {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
align-content: flex-start;
|
|
|
|
color: $gray-800;
|
|
|
|
padding: $gap !important;
|
|
|
|
gap: $gap-small;
|
|
|
|
margin: $gap 0;
|
2023-10-11 16:04:45 +00:00
|
|
|
border-radius: $universal-border-radius;
|
2023-04-05 12:43:03 +00:00
|
|
|
border-color: $gray-800;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1.5;
|
|
|
|
border: 1px solid;
|
|
|
|
@include font-size(small);
|
|
|
|
background-color: #fff;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
> .wc-block-components-notice-banner__content {
|
|
|
|
padding-right: $gap;
|
|
|
|
align-self: center;
|
|
|
|
white-space: normal;
|
|
|
|
flex-basis: 100%;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-notice-banner__summary {
|
|
|
|
margin: 0 0 $gap-smaller;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: 0 0 0 $gap-large;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li::after {
|
|
|
|
content: "";
|
|
|
|
clear: both;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Legacy notice compatibility.
|
2023-07-04 11:16:26 +00:00
|
|
|
.wc-forward {
|
2023-04-05 12:43:03 +00:00
|
|
|
float: right;
|
|
|
|
color: $gray-800 !important;
|
2023-12-06 08:46:22 +00:00
|
|
|
background: transparent !important; // For transparent notice button in Twenty Twenty-One theme.
|
2023-04-05 12:43:03 +00:00
|
|
|
padding: 0 !important;
|
|
|
|
margin: 0;
|
|
|
|
border: 0;
|
|
|
|
appearance: none;
|
|
|
|
opacity: 0.6;
|
2023-07-04 11:16:26 +00:00
|
|
|
text-decoration-line: underline;
|
|
|
|
text-underline-position: under;
|
2023-04-05 12:43:03 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
fill: #fff;
|
|
|
|
border-radius: 50%;
|
|
|
|
padding: 2px;
|
|
|
|
background-color: $gray-800;
|
|
|
|
flex-shrink: 0;
|
|
|
|
flex-grow: 0;
|
2023-12-06 08:46:22 +00:00
|
|
|
height: 100%;
|
2023-04-05 12:43:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .wc-block-components-button {
|
|
|
|
margin: 6px 0 0 auto !important;
|
|
|
|
background: transparent none !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
outline: none !important;
|
|
|
|
border: 0 !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
height: 16px !important;
|
|
|
|
width: 16px !important;
|
|
|
|
min-height: auto !important;
|
|
|
|
color: $gray-800 !important;
|
|
|
|
min-width: 0 !important;
|
|
|
|
flex: 0 0 16px;
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%error {
|
|
|
|
border-color: $alert-red;
|
|
|
|
background-color: #fff0f0;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
background-color: $alert-red;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%warning {
|
|
|
|
border-color: $alert-yellow;
|
|
|
|
background-color: #fffbf4;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
background-color: $alert-yellow;
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%success {
|
|
|
|
border-color: $alert-green;
|
|
|
|
background-color: #f4fff7;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
background-color: $alert-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%info {
|
|
|
|
border-color: #007cba;
|
|
|
|
background-color: #f4f8ff;
|
|
|
|
|
|
|
|
> svg {
|
|
|
|
background-color: #007cba;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-notice-banner {
|
|
|
|
@extend %notice-banner;
|
|
|
|
&.is-error {
|
|
|
|
@extend %error;
|
|
|
|
}
|
|
|
|
&.is-warning {
|
|
|
|
@extend %warning;
|
|
|
|
}
|
|
|
|
&.is-success {
|
|
|
|
@extend %success;
|
|
|
|
}
|
|
|
|
&.is-info {
|
|
|
|
@extend %info;
|
|
|
|
}
|
|
|
|
}
|
2024-01-22 17:25:42 +00:00
|
|
|
|
|
|
|
// To fix notice banner width for all block themes.
|
|
|
|
.woocommerce.wc-block-store-notices.alignwide {
|
|
|
|
max-width: var(--wp--style--global--wide-size);
|
|
|
|
}
|