2024-06-27 19:42:39 +02:00
|
|
|
.ppcp-settings-field-preview {
|
|
|
|
position: relative;
|
|
|
|
|
2024-07-01 15:25:06 +02:00
|
|
|
> td {
|
|
|
|
position: relative;
|
2024-06-27 19:42:39 +02:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-11-27 08:02:06 +01:00
|
|
|
.ppcp-preview:not(.ppcp-r-styling__preview) {
|
2024-06-27 19:42:39 +02:00
|
|
|
width: var(--box-width, 100%);
|
2022-10-19 11:38:49 +03:00
|
|
|
padding: 15px;
|
|
|
|
border: 1px solid lightgray;
|
2024-06-07 12:28:49 +02:00
|
|
|
background: #eeeeef;
|
2022-10-19 11:38:49 +03:00
|
|
|
border-radius: 15px;
|
|
|
|
box-shadow: 0 2px 10px 1px #ddd;
|
2024-06-27 19:42:39 +02:00
|
|
|
margin-right: 0;
|
|
|
|
box-sizing: border-box;
|
2022-10-19 11:38:49 +03:00
|
|
|
|
2024-06-27 19:42:39 +02:00
|
|
|
h4 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2024-06-07 12:28:49 +02:00
|
|
|
|
2024-06-27 19:42:39 +02:00
|
|
|
@media (min-width: 601px) {
|
|
|
|
--box-width: 382px;
|
2024-06-07 12:28:49 +02:00
|
|
|
}
|
|
|
|
|
2024-06-27 19:42:39 +02:00
|
|
|
@media (max-width: 782px) {
|
|
|
|
margin-top: 16px;
|
2022-10-19 11:38:49 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1200px) {
|
2022-11-09 18:58:41 +04:00
|
|
|
float: right;
|
2024-07-22 13:44:48 +02:00
|
|
|
margin-top: -250px;
|
2024-06-27 19:42:39 +02:00
|
|
|
max-width: calc(100vw - 850px);
|
2022-10-19 11:38:49 +03:00
|
|
|
}
|
2022-11-09 18:58:41 +04:00
|
|
|
|
|
|
|
@media (min-width: 1400px) {
|
2024-06-27 19:42:39 +02:00
|
|
|
margin-right: 12%;
|
2022-11-09 18:58:41 +04:00
|
|
|
}
|
2022-11-09 19:26:17 +04:00
|
|
|
|
|
|
|
@media (min-width: 2000px) {
|
2024-06-27 19:42:39 +02:00
|
|
|
margin-right: 41%;
|
2022-11-09 19:26:17 +04:00
|
|
|
}
|
2022-11-09 19:47:15 +04:00
|
|
|
|
2024-06-27 19:42:39 +02:00
|
|
|
// Align the preview box to the bottom of the form row and expand it upwards.
|
|
|
|
// (The default layout above expands the box downwards)
|
|
|
|
&.align-bottom {
|
|
|
|
@media (min-width: 1200px) {
|
|
|
|
position: absolute;
|
|
|
|
margin: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 30px;
|
|
|
|
}
|
2022-11-02 17:36:21 +04:00
|
|
|
|
2024-06-27 19:42:39 +02:00
|
|
|
@media (min-width: 1400px) {
|
|
|
|
right: 13%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 2000px) {
|
|
|
|
right: 42%;
|
|
|
|
}
|
2022-11-02 17:36:21 +04:00
|
|
|
}
|
|
|
|
|
2024-06-27 19:42:39 +02:00
|
|
|
// Preview box showing a single button, that is displayed inside a "frame".
|
|
|
|
&.ppcp-preview-single {
|
|
|
|
@media (min-width: 1200px) {
|
|
|
|
margin-right: 20px;
|
|
|
|
bottom: 50px;
|
|
|
|
max-width: calc(100vw - 880px);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1400px) {
|
|
|
|
margin-right: -20px;
|
|
|
|
}
|
2022-11-02 17:36:21 +04:00
|
|
|
}
|
|
|
|
}
|