2024-11-26 13:28:03 +01:00
|
|
|
.ppcp-r-styling {
|
2025-01-16 14:39:27 +01:00
|
|
|
--block-item-gap: 0;
|
|
|
|
--block-separator-gap: 24px;
|
|
|
|
--block-header-gap: 18px;
|
2025-01-16 19:30:01 +01:00
|
|
|
--panel-width: 422px;
|
|
|
|
--sticky-offset-top: 92px; // 32px admin-bar + 60px TopNavigation height
|
|
|
|
--preview-height-reduction: 236px; // 32px admin-bar + 60px TopNavigation height + 48px TopNavigation margin + 48px TabList height + 48px TabList margin
|
2025-01-16 14:39:27 +01:00
|
|
|
|
2024-11-26 13:28:03 +01:00
|
|
|
display: flex;
|
2025-01-15 12:25:37 +01:00
|
|
|
border: 1px solid var(--color-separators);
|
2024-11-26 13:28:03 +01:00
|
|
|
border-radius: 8px;
|
|
|
|
|
2025-01-16 14:39:27 +01:00
|
|
|
.ppcp-r-settings-block {
|
|
|
|
&.header-section {
|
2025-01-16 19:30:01 +01:00
|
|
|
margin-bottom: 6px
|
|
|
|
}
|
|
|
|
|
|
|
|
&.location-selector {
|
|
|
|
position: sticky;
|
|
|
|
top: var(--sticky-offset-top);
|
|
|
|
background: var(--ppcp-color-app-bg);
|
|
|
|
border-bottom: 1px solid var(--color-gray-200);
|
|
|
|
box-shadow: 0 5px 10px 5px var(--ppcp-color-app-bg);
|
|
|
|
z-index: 5;
|
|
|
|
padding-top: 16px;
|
|
|
|
padding-bottom: var(--block-separator-gap);
|
|
|
|
margin-bottom: -29px;
|
2025-01-16 14:39:27 +01:00
|
|
|
}
|
2024-11-26 13:28:03 +01:00
|
|
|
|
2025-01-16 14:39:27 +01:00
|
|
|
// Select-fields have a smaller gap between the header and input field.
|
|
|
|
&.has-select {
|
|
|
|
--block-header-gap: 8px;
|
|
|
|
}
|
2024-11-26 13:28:03 +01:00
|
|
|
|
2025-01-16 14:39:27 +01:00
|
|
|
// Above the payment methods is a slightly larger gap.
|
|
|
|
&.payment-methods {
|
|
|
|
--block-separator-gap: 28px;
|
|
|
|
}
|
2024-11-26 13:28:03 +01:00
|
|
|
}
|
|
|
|
|
2025-01-15 12:25:37 +01:00
|
|
|
/* The settings-panel (left side) */
|
|
|
|
.settings-panel {
|
2025-01-16 19:30:01 +01:00
|
|
|
width: var(--panel-width);
|
2024-11-26 13:28:03 +01:00
|
|
|
padding: 48px;
|
2025-01-15 12:25:37 +01:00
|
|
|
|
|
|
|
.ppcp-r-styling__section {
|
|
|
|
padding-bottom: 24px;
|
|
|
|
margin-bottom: 28px;
|
|
|
|
border-bottom: 1px solid var(--color-separators);
|
2025-01-15 19:41:46 +01:00
|
|
|
|
2025-01-16 14:39:27 +01:00
|
|
|
&.no-gap,
|
2025-01-15 19:41:46 +01:00
|
|
|
&:last-child {
|
|
|
|
padding-bottom: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
border-bottom-style: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-01-16 14:39:27 +01:00
|
|
|
// Horizontal radio buttons have a width of 100px.
|
2025-01-15 19:41:46 +01:00
|
|
|
.components-radio-control__option {
|
|
|
|
min-width: 100px;
|
2025-01-15 12:25:37 +01:00
|
|
|
}
|
2024-11-26 13:28:03 +01:00
|
|
|
}
|
|
|
|
|
2025-01-15 12:25:37 +01:00
|
|
|
/* The preview area (right side) */
|
|
|
|
.preview-panel {
|
2025-01-16 19:30:01 +01:00
|
|
|
width: calc(100% - var(--panel-width));
|
2025-01-15 12:25:37 +01:00
|
|
|
background-color: var(--color-preview-background);
|
2025-01-16 19:30:01 +01:00
|
|
|
z-index: 0;
|
2024-11-28 10:31:16 +01:00
|
|
|
|
2025-01-15 12:25:37 +01:00
|
|
|
.preview-panel-inner {
|
2025-01-16 19:30:01 +01:00
|
|
|
position: sticky;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2024-11-28 10:31:16 +01:00
|
|
|
width: 100%;
|
|
|
|
padding: 24px;
|
2025-01-16 19:30:01 +01:00
|
|
|
height: calc(100vh - var(--preview-height-reduction));
|
|
|
|
top: var(--sticky-offset-top);
|
2024-11-28 10:31:16 +01:00
|
|
|
}
|
2024-11-26 13:28:03 +01:00
|
|
|
}
|
|
|
|
}
|