@orion-studios/payload-studio 0.6.0-beta.172 → 0.6.0-beta.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1779,6 +1779,11 @@ var negativePaddingCss = `
|
|
|
1779
1779
|
overflow: visible;
|
|
1780
1780
|
}
|
|
1781
1781
|
|
|
1782
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
1783
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-right:not(.is-orion-negative-padding-left) {
|
|
1784
|
+
overflow: hidden;
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1782
1787
|
.orion-builder-v2-negative-padding > * {
|
|
1783
1788
|
margin-top: var(--orion-negative-padding-top, 0px) !important;
|
|
1784
1789
|
margin-right: var(--orion-negative-padding-right, 0px) !important;
|
|
@@ -2591,6 +2596,7 @@ function GrapesPageEditor({
|
|
|
2591
2596
|
if (side) {
|
|
2592
2597
|
selected.removeStyle?.(negativePaddingVariableForSide(side));
|
|
2593
2598
|
selected.removeAttributes?.(negativePaddingAttributeForSide(side));
|
|
2599
|
+
selected.removeClass?.(`is-orion-negative-padding-${side}`);
|
|
2594
2600
|
const attrs = selected.getAttributes?.() || {};
|
|
2595
2601
|
const hasOtherNegativePadding = negativePaddingSides.some(
|
|
2596
2602
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
@@ -2624,6 +2630,7 @@ function GrapesPageEditor({
|
|
|
2624
2630
|
const side = negativePaddingSideFromProperty(property);
|
|
2625
2631
|
const negativeStyleValue = `${Number.isInteger(adjustment) ? adjustment : Number(adjustment.toFixed(2))}${unit}`;
|
|
2626
2632
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2633
|
+
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2627
2634
|
selected.addAttributes?.({ [negativePaddingAttributeForSide(side)]: negativeStyleValue });
|
|
2628
2635
|
selected.addStyle?.({
|
|
2629
2636
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
|
@@ -1655,6 +1655,11 @@ var negativePaddingCss = `
|
|
|
1655
1655
|
overflow: visible;
|
|
1656
1656
|
}
|
|
1657
1657
|
|
|
1658
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-bottom:not(.is-orion-negative-padding-top),
|
|
1659
|
+
.orion-builder-v2-negative-padding.is-orion-negative-padding-right:not(.is-orion-negative-padding-left) {
|
|
1660
|
+
overflow: hidden;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1658
1663
|
.orion-builder-v2-negative-padding > * {
|
|
1659
1664
|
margin-top: var(--orion-negative-padding-top, 0px) !important;
|
|
1660
1665
|
margin-right: var(--orion-negative-padding-right, 0px) !important;
|
|
@@ -2467,6 +2472,7 @@ function GrapesPageEditor({
|
|
|
2467
2472
|
if (side) {
|
|
2468
2473
|
selected.removeStyle?.(negativePaddingVariableForSide(side));
|
|
2469
2474
|
selected.removeAttributes?.(negativePaddingAttributeForSide(side));
|
|
2475
|
+
selected.removeClass?.(`is-orion-negative-padding-${side}`);
|
|
2470
2476
|
const attrs = selected.getAttributes?.() || {};
|
|
2471
2477
|
const hasOtherNegativePadding = negativePaddingSides.some(
|
|
2472
2478
|
(paddingSide) => paddingSide !== side && Boolean(attrs[negativePaddingAttributeForSide(paddingSide)])
|
|
@@ -2500,6 +2506,7 @@ function GrapesPageEditor({
|
|
|
2500
2506
|
const side = negativePaddingSideFromProperty(property);
|
|
2501
2507
|
const negativeStyleValue = `${Number.isInteger(adjustment) ? adjustment : Number(adjustment.toFixed(2))}${unit}`;
|
|
2502
2508
|
selected.addClass?.("orion-builder-v2-negative-padding");
|
|
2509
|
+
selected.addClass?.(`is-orion-negative-padding-${side}`);
|
|
2503
2510
|
selected.addAttributes?.({ [negativePaddingAttributeForSide(side)]: negativeStyleValue });
|
|
2504
2511
|
selected.addStyle?.({
|
|
2505
2512
|
[negativePaddingVariableForSide(side)]: negativeStyleValue,
|
package/package.json
CHANGED