2020-03-12 09:41:35 +00:00
|
|
|
.wc-block-sidebar-layout {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2020-04-24 12:23:25 +00:00
|
|
|
margin: 0 auto $gap;
|
2020-05-05 08:10:02 +00:00
|
|
|
position: relative;
|
2020-03-12 09:41:35 +00:00
|
|
|
|
|
|
|
.wc-block-main {
|
|
|
|
margin: 0;
|
2020-05-05 08:10:02 +00:00
|
|
|
padding-right: percentage($gap-largest / 1060px); // ~1060px is the default width of the content area in Storefront.
|
2020-04-03 13:17:09 +00:00
|
|
|
width: 65%;
|
2020-03-12 09:41:35 +00:00
|
|
|
}
|
2020-03-13 15:49:33 +00:00
|
|
|
}
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-03-13 15:49:33 +00:00
|
|
|
.wc-block-sidebar {
|
|
|
|
margin: 0;
|
2020-05-05 08:10:02 +00:00
|
|
|
padding-left: percentage($gap-largest / 1060px);
|
2020-04-03 13:17:09 +00:00
|
|
|
width: 35%;
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-03-13 15:49:33 +00:00
|
|
|
// Reset Gutenberg <Panel> styles when used in the sidebar.
|
|
|
|
.components-panel__body {
|
|
|
|
border-top: 1px solid $core-grey-light-600;
|
|
|
|
border-bottom: 1px solid $core-grey-light-600;
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-03-13 15:49:33 +00:00
|
|
|
&.is-opened {
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-03-13 15:49:33 +00:00
|
|
|
> .components-panel__body-title {
|
2020-04-24 12:23:25 +00:00
|
|
|
margin-bottom: 0;
|
2020-03-13 15:49:33 +00:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2020-03-12 09:41:35 +00:00
|
|
|
}
|
2020-03-13 15:49:33 +00:00
|
|
|
}
|
2020-04-14 11:43:10 +00:00
|
|
|
}
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-04-14 11:43:10 +00:00
|
|
|
.components-panel__body-title,
|
|
|
|
.components-panel__body-toggle {
|
|
|
|
&,
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background-color: transparent;
|
|
|
|
color: inherit;
|
2020-03-13 15:49:33 +00:00
|
|
|
}
|
2020-04-14 11:43:10 +00:00
|
|
|
}
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-04-14 11:43:10 +00:00
|
|
|
.components-panel__body-toggle {
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: inherit;
|
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 36px;
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-04-14 11:43:10 +00:00
|
|
|
&.components-button,
|
|
|
|
&.components-button:focus:not(:disabled):not([aria-disabled="true"]) {
|
|
|
|
color: inherit;
|
2020-03-12 09:41:35 +00:00
|
|
|
}
|
2020-04-24 12:23:25 +00:00
|
|
|
|
|
|
|
.components-panel__arrow {
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-03-12 09:41:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-05 08:10:02 +00:00
|
|
|
.is-medium,
|
|
|
|
.is-small,
|
|
|
|
.is-mobile {
|
|
|
|
&.wc-block-sidebar-layout {
|
2020-04-03 13:17:09 +00:00
|
|
|
flex-direction: column;
|
2020-03-12 09:41:35 +00:00
|
|
|
margin: 0 0 $gap;
|
|
|
|
|
|
|
|
.wc-block-main {
|
|
|
|
padding: 0;
|
2020-04-03 13:17:09 +00:00
|
|
|
width: 100%;
|
2020-03-12 09:41:35 +00:00
|
|
|
}
|
|
|
|
.wc-block-sidebar {
|
|
|
|
padding: 0;
|
2020-04-03 13:17:09 +00:00
|
|
|
width: 100%;
|
2020-03-12 09:41:35 +00:00
|
|
|
|
2020-04-24 12:23:25 +00:00
|
|
|
// Reset card component styling on mobile.
|
2020-03-12 09:41:35 +00:00
|
|
|
.components-card {
|
2020-04-24 12:23:25 +00:00
|
|
|
background: transparent;
|
2020-03-12 09:41:35 +00:00
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
.components-card__body {
|
|
|
|
border: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|