2020-03-03 10:26:02 +00:00
|
|
|
.wc-block-components-notices {
|
|
|
|
display: block;
|
2022-12-19 15:30:13 +00:00
|
|
|
margin: 1.5em 0;
|
|
|
|
&:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
&:empty {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2020-03-03 10:26:02 +00:00
|
|
|
.wc-block-components-notices__notice {
|
|
|
|
margin: 0;
|
2020-07-30 10:57:22 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
2022-09-23 18:48:28 +00:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2020-03-03 10:26:02 +00:00
|
|
|
.components-notice__dismiss {
|
|
|
|
background: transparent none;
|
|
|
|
padding: 0;
|
2020-11-25 11:50:59 +00:00
|
|
|
margin: 0 0 0 auto;
|
2020-03-03 10:26:02 +00:00
|
|
|
border: 0;
|
|
|
|
outline: 0;
|
2020-12-02 12:09:57 +00:00
|
|
|
color: currentColor;
|
2020-03-03 10:26:02 +00:00
|
|
|
svg {
|
2020-12-02 12:09:57 +00:00
|
|
|
fill: currentColor;
|
2020-03-03 10:26:02 +00:00
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
|
|
|
}
|
2022-09-20 15:54:25 +00:00
|
|
|
.components-notice__content > div:not(.components-notice__actions) {
|
|
|
|
*:first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
*:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-12-19 15:30:13 +00:00
|
|
|
.components-notice__content {
|
|
|
|
ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
li + li {
|
|
|
|
margin: 0.25em 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
2020-03-03 10:26:02 +00:00
|
|
|
}
|
|
|
|
.wc-block-components-notices__notice + .wc-block-components-notices__notice {
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
}
|
2021-08-17 11:03:07 +00:00
|
|
|
|
|
|
|
// @todo Either move notice style fixes to Woo core, or take full control over notice component styling in blocks.
|
|
|
|
.theme-twentytwentyone,
|
|
|
|
.theme-twentytwenty {
|
|
|
|
.wc-block-components-notices__notice {
|
|
|
|
padding: 1.5rem 3rem;
|
|
|
|
}
|
|
|
|
}
|
2022-12-19 15:30:13 +00:00
|
|
|
|
|
|
|
.wc-block-components-notices__snackbar {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 20px;
|
|
|
|
left: 16px;
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
@include breakpoint("<782px") {
|
|
|
|
position: fixed;
|
|
|
|
top: 10px;
|
|
|
|
left: 0;
|
|
|
|
bottom: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.components-snackbar-list__notice-container {
|
|
|
|
@include breakpoint("<782px") {
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|