2021-02-17 13:48:53 +00:00
|
|
|
.wc-block-components-panel.has-border {
|
2020-06-23 10:13:53 +00:00
|
|
|
@include with-translucent-border( 1px 0 );
|
|
|
|
|
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-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-bottom: em(6px);
|
|
|
|
margin-top: em(6px);
|
|
|
|
padding-bottom: em($gap-small - 6px);
|
|
|
|
padding-right: #{24px + $gap-smaller};
|
|
|
|
padding-top: em($gap-small - 6px);
|
|
|
|
position: relative;
|
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
|
|
|
|
2020-06-05 10:00:19 +00:00
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
@include reset-typography();
|
|
|
|
background: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
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-06-05 10:00:19 +00:00
|
|
|
padding-bottom: em($gap);
|
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.
|
2021-02-17 13:48:53 +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
|
|
|
}
|