2021-02-17 13:48:53 +00:00
|
|
|
.wc-block-components-panel.has-border {
|
2021-10-11 13:18:32 +00:00
|
|
|
@include with-translucent-border(1px 0);
|
2020-06-23 10:13:53 +00:00
|
|
|
|
2021-02-17 13:48:53 +00:00
|
|
|
+ .wc-block-components-panel.has-border::after {
|
2020-06-23 10:13:53 +00:00
|
|
|
border-top-width: 0;
|
|
|
|
}
|
2020-06-12 12:07:02 +00:00
|
|
|
}
|
|
|
|
|
2021-06-07 09:16:47 +00:00
|
|
|
.wc-block-components-panel.has-border.no-top-border {
|
2021-10-11 13:18:32 +00:00
|
|
|
@include with-translucent-border(1px 0);
|
2021-06-07 09:16:47 +00:00
|
|
|
&::after {
|
|
|
|
border-top-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-17 13:48:53 +00:00
|
|
|
.wc-block-components-panel__button {
|
2020-07-29 09:50:06 +00:00
|
|
|
@include reset-box();
|
|
|
|
height: auto;
|
|
|
|
line-height: 1;
|
|
|
|
margin-top: em(6px);
|
|
|
|
padding-right: #{24px + $gap-smaller};
|
|
|
|
padding-top: em($gap-small - 6px);
|
|
|
|
position: relative;
|
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
2021-06-04 08:44:26 +00:00
|
|
|
word-break: break-word;
|
2020-07-29 09:50:06 +00:00
|
|
|
|
2021-07-02 14:56:39 +00:00
|
|
|
&[aria-expanded="true"] {
|
2024-02-16 21:50:11 +00:00
|
|
|
padding-bottom: $gap-smaller;
|
|
|
|
margin-bottom: $gap-smaller;
|
2021-07-02 14:56:39 +00:00
|
|
|
}
|
|
|
|
|
2020-06-05 10:00:19 +00:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
2023-04-21 20:11:10 +00:00
|
|
|
@include reset-color();
|
2020-06-05 10:00:19 +00:00
|
|
|
@include reset-typography();
|
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
2024-04-25 05:03:31 +00:00
|
|
|
cursor: pointer;
|
2020-06-05 10:00:19 +00:00
|
|
|
}
|
|
|
|
|
2021-02-17 13:48:53 +00:00
|
|
|
> .wc-block-components-panel__button-icon {
|
2020-06-23 10:13:53 +00:00
|
|
|
fill: currentColor;
|
2020-06-05 10:00:19 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-02-17 13:48:53 +00:00
|
|
|
.wc-block-components-panel__content {
|
2020-12-22 09:26:59 +00:00
|
|
|
// Ensures the panel contents are not visible for any theme that tweaked the
|
|
|
|
// `display` property of div elements.
|
|
|
|
&[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-06-05 10:00:19 +00:00
|
|
|
}
|
|
|
|
|
2021-02-09 08:10:45 +00:00
|
|
|
// Extra classes for specificity.
|
2024-04-25 05:03:31 +00:00
|
|
|
.theme-twentytwentyone.theme-twentytwentyone.theme-twentytwentyone
|
|
|
|
.wc-block-components-panel__button {
|
2021-02-09 08:10:45 +00:00
|
|
|
background-color: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2021-02-17 13:48:53 +00:00
|
|
|
.theme-twentytwenty .wc-block-components-panel__button,
|
|
|
|
.theme-twentyseventeen .wc-block-components-panel__button {
|
2021-04-12 10:03:36 +00:00
|
|
|
background: none transparent;
|
2020-08-14 11:08:16 +00:00
|
|
|
color: inherit;
|
2021-04-12 10:03:36 +00:00
|
|
|
|
|
|
|
&.wc-block-components-panel__button:hover,
|
|
|
|
&.wc-block-components-panel__button:focus {
|
|
|
|
background: none transparent;
|
|
|
|
}
|
2020-06-05 10:00:19 +00:00
|
|
|
}
|