| 1 |
/** |
| 2 |
* Elementor editor-specific styles for Charitable Campaigns Widget |
| 3 |
*/ |
| 4 |
|
| 5 |
/* Editor-only styling for campaigns shortcode */ |
| 6 |
.elementor-editor-active .charitable-elementor-editor-wrapper { |
| 7 |
/* Make the wrapper stand out in the editor */ |
| 8 |
/* border: 2px dashed #e52e6d; |
| 9 |
padding: 15px; |
| 10 |
background-color: rgba(229, 46, 109, 0.05); |
| 11 |
margin: 10px 0; |
| 12 |
position: relative; */ |
| 13 |
} |
| 14 |
|
| 15 |
/* Specific styling for the donation form widget only */ |
| 16 |
.elementor-editor-active .elementor-widget-charitable_donation_form .charitable-elementor-editor-wrapper { |
| 17 |
min-height: 100px; |
| 18 |
display: flex; |
| 19 |
align-items: center; |
| 20 |
justify-content: center; |
| 21 |
border: 2px dashed #e52e6d; |
| 22 |
padding: 15px; |
| 23 |
background-color: rgba(229, 46, 109, 0.05); |
| 24 |
margin: 10px 0; |
| 25 |
position: relative; |
| 26 |
} |
| 27 |
|
| 28 |
.elementor-editor-active .elementor-widget-charitable_donation_form .charitable-elementor-editor-wrapper::before { |
| 29 |
content: "Donation Form Cannot Be Previewed In Elementor Editor"; |
| 30 |
display: block; |
| 31 |
background: #e52e6d; |
| 32 |
color: white; |
| 33 |
padding: 5px 10px; |
| 34 |
font-size: 12px; |
| 35 |
position: absolute; |
| 36 |
top: 0; |
| 37 |
left: 0; |
| 38 |
z-index: 100; |
| 39 |
} |
| 40 |
|
| 41 |
/* Hide the actual form content in editor - donation form widget only */ |
| 42 |
.elementor-editor-active .elementor-widget-charitable_donation_form .charitable-elementor-editor-wrapper > * { |
| 43 |
display: none; |
| 44 |
} |
| 45 |
|
| 46 |
/* Show placeholder text - donation form widget only */ |
| 47 |
.elementor-editor-active .elementor-widget-charitable_donation_form .charitable-elementor-editor-wrapper::after { |
| 48 |
content: "The donation form will be displayed on the frontend."; |
| 49 |
display: block; |
| 50 |
text-align: center; |
| 51 |
padding: 20px; |
| 52 |
color: #666; |
| 53 |
font-style: italic; |
| 54 |
} |
| 55 |
|
| 56 |
.campaign-loop.campaign-grid:before, .campaign-loop.campaign-grid:after { |
| 57 |
display: none; |
| 58 |
} |
| 59 |
|
| 60 |
.campaign-loop.campaign-grid:after { |
| 61 |
clear: both; |
| 62 |
} |
| 63 |
/* Style adjustments for campaign grid in editor */ |
| 64 |
.elementor-editor-active .charitable-elementor-editor-wrapper .campaign-grid { |
| 65 |
opacity: 0.8; |
| 66 |
transition: opacity 0.3s ease; |
| 67 |
} |
| 68 |
|
| 69 |
.elementor-editor-active .charitable-elementor-editor-wrapper:hover .campaign-grid { |
| 70 |
opacity: 1; |
| 71 |
} |
| 72 |
|
| 73 |
/* Improved visibility for campaign elements in editor */ |
| 74 |
.elementor-editor-active .charitable-elementor-editor-wrapper .campaign-title, |
| 75 |
.elementor-editor-active .charitable-elementor-editor-wrapper .campaign-excerpt { |
| 76 |
color: #333; |
| 77 |
} |
| 78 |
|
| 79 |
.elementor-editor-active .charitable-elementor-editor-wrapper .campaign-loop-wrapper { |
| 80 |
overflow: visible; |
| 81 |
} |
| 82 |
|
| 83 |
/* Make sure buttons are easily visible in editor */ |
| 84 |
.elementor-editor-active .charitable-elementor-editor-wrapper .campaign-button { |
| 85 |
pointer-events: none; |
| 86 |
} |
| 87 |
|
| 88 |
.campaign-loop.campaign-grid.campaign-grid-2 { |
| 89 |
/* make a grid of 2 columns */ |
| 90 |
display: grid; |
| 91 |
grid-template-columns: repeat(2, 1fr); |
| 92 |
gap: 1em; |
| 93 |
} |
| 94 |
|
| 95 |
.campaign-loop.campaign-grid.campaign-grid-3 { |
| 96 |
/* make a grid of 3 columns */ |
| 97 |
display: grid; |
| 98 |
grid-template-columns: repeat(3, 1fr); |
| 99 |
gap: 1em; |
| 100 |
} |
| 101 |
|
| 102 |
.campaign-loop.campaign-grid.campaign-grid-4 { |
| 103 |
/* make a grid of 4 columns */ |
| 104 |
display: grid; |
| 105 |
grid-template-columns: repeat(4, 1fr); |
| 106 |
gap: 1em; |
| 107 |
} |
| 108 |
|
| 109 |
.campaign-loop.campaign-grid.campaign-grid-5 { |
| 110 |
/* make a grid of 5 columns */ |
| 111 |
display: grid; |
| 112 |
grid-template-columns: repeat(5, 1fr); |
| 113 |
gap: 1em; |
| 114 |
} |
| 115 |
|
| 116 |
.campaign-loop.campaign-grid.campaign-grid-6 { |
| 117 |
/* make a grid of 6 columns */ |
| 118 |
display: grid; |
| 119 |
grid-template-columns: repeat(6, 1fr); |
| 120 |
gap: 1em; |
| 121 |
} |
| 122 |
|