| 1 |
body.charitable_page_charitable-settings { |
| 2 |
|
| 3 |
.charitable-square-btn { |
| 4 |
display: flex; |
| 5 |
align-items: center; |
| 6 |
justify-content: center; |
| 7 |
border-radius: 5px; |
| 8 |
font-size: 14px; |
| 9 |
margin: 0; |
| 10 |
padding: 8px 12px; |
| 11 |
gap: 10px; |
| 12 |
text-decoration: none; |
| 13 |
width: fit-content; |
| 14 |
&.charitable-square-live-btn { |
| 15 |
background-color: #383f49; |
| 16 |
color: #fff; |
| 17 |
} |
| 18 |
&.charitable-square-sandbox-btn { |
| 19 |
background-color: #fff; |
| 20 |
color: #383f49; |
| 21 |
border: 1px solid #383f49; |
| 22 |
} |
| 23 |
svg { |
| 24 |
width: 32px; |
| 25 |
height: 32px; |
| 26 |
margin-left: -2px; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
.charitable-square-btn + p.desc { |
| 31 |
margin-top: 10px !important; |
| 32 |
} |
| 33 |
|
| 34 |
.charitable-square-settings-actions-message { |
| 35 |
background-color: #fff; |
| 36 |
color: #383f49; |
| 37 |
border: 1px solid #a2a2a2; |
| 38 |
padding: 10px; |
| 39 |
border-radius: 5px; |
| 40 |
} |
| 41 |
|
| 42 |
.charitable-square-settings-actions-title-testmode-sandbox { |
| 43 |
/* green */ |
| 44 |
color: #008000; |
| 45 |
} |
| 46 |
|
| 47 |
.charitable-square-settings-actions-title-testmode-live { |
| 48 |
/* red */ |
| 49 |
color: #ff0000; |
| 50 |
} |
| 51 |
|
| 52 |
.charitable-success-icon { |
| 53 |
background-image: url("../../images/icons/check-circle.svg"); |
| 54 |
background-repeat: no-repeat; |
| 55 |
display: inline-block; |
| 56 |
width: 17px; |
| 57 |
height: 17px; |
| 58 |
background-size: contain; |
| 59 |
position: relative; |
| 60 |
top: 4px; |
| 61 |
margin-right: 10px; |
| 62 |
} |
| 63 |
|
| 64 |
.charitable-square-connected { |
| 65 |
display: flex; |
| 66 |
flex-direction: column; |
| 67 |
align-items: flex-start; |
| 68 |
|
| 69 |
// Style the first paragraph (connection status) to be inline with the icon |
| 70 |
> p:first-of-type { |
| 71 |
display: flex; |
| 72 |
align-items: center; |
| 73 |
margin: 0; |
| 74 |
width: 100%; |
| 75 |
|
| 76 |
strong { |
| 77 |
margin-left: 5px; |
| 78 |
} |
| 79 |
|
| 80 |
// Add the success icon before the text |
| 81 |
&::before { |
| 82 |
content: ''; |
| 83 |
display: inline-block; |
| 84 |
width: 17px; |
| 85 |
height: 17px; |
| 86 |
background-image: url("../../images/icons/check-circle.svg"); |
| 87 |
background-repeat: no-repeat; |
| 88 |
background-size: contain; |
| 89 |
margin-right: 10px; |
| 90 |
flex-shrink: 0; |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
// Hide the original success icon span since we're using ::before |
| 95 |
> span.charitable-success-icon { |
| 96 |
display: none; |
| 97 |
} |
| 98 |
|
| 99 |
// Handle error states - when there's an error icon followed by text |
| 100 |
> span.charitable-error-icon + * { |
| 101 |
display: flex; |
| 102 |
align-items: center; |
| 103 |
margin: 0; |
| 104 |
width: 100%; |
| 105 |
|
| 106 |
&::before { |
| 107 |
content: ''; |
| 108 |
display: inline-block; |
| 109 |
width: 17px; |
| 110 |
height: 17px; |
| 111 |
background-image: url("../../images/icons/exclamation-circle.svg"); |
| 112 |
background-repeat: no-repeat; |
| 113 |
background-size: contain; |
| 114 |
margin-right: 10px; |
| 115 |
flex-shrink: 0; |
| 116 |
} |
| 117 |
} |
| 118 |
|
| 119 |
// Hide the original error icon span since we're using ::before |
| 120 |
> span.charitable-error-icon { |
| 121 |
display: none; |
| 122 |
} |
| 123 |
|
| 124 |
// Style the disconnect button paragraph |
| 125 |
> p.charitable-square-disconnect-btn { |
| 126 |
margin-top: 10px; |
| 127 |
width: 100%; |
| 128 |
} |
| 129 |
|
| 130 |
// Handle cases where there's just error text without a paragraph wrapper |
| 131 |
> span.charitable-error-icon + :not(p) { |
| 132 |
display: flex; |
| 133 |
align-items: center; |
| 134 |
margin: 0; |
| 135 |
width: 100%; |
| 136 |
|
| 137 |
&::before { |
| 138 |
content: ''; |
| 139 |
display: inline-block; |
| 140 |
width: 17px; |
| 141 |
height: 17px; |
| 142 |
background-image: url("../../images/icons/exclamation-circle.svg"); |
| 143 |
background-repeat: no-repeat; |
| 144 |
background-size: contain; |
| 145 |
margin-right: 10px; |
| 146 |
flex-shrink: 0; |
| 147 |
} |
| 148 |
} |
| 149 |
} |
| 150 |
|
| 151 |
.charitable-square-disconnect-btn { |
| 152 |
margin-top: 20px !important; |
| 153 |
a.charitable-btn-md { |
| 154 |
min-height: auto !important; |
| 155 |
border-radius: 0 !important; |
| 156 |
} |
| 157 |
} |
| 158 |
|
| 159 |
.charitable-square-connnected { |
| 160 |
display: flex; |
| 161 |
flex-direction: column; |
| 162 |
align-items: center; |
| 163 |
} |
| 164 |
.charitable-square-connnected p.charitable-square-disconnect-btn { |
| 165 |
width: 100% !important; |
| 166 |
} |
| 167 |
|
| 168 |
.charitable-square-refresh-btn { |
| 169 |
border-radius: 0 !important; |
| 170 |
margin-right: 10px !important; |
| 171 |
} |
| 172 |
|
| 173 |
.charitable-error-icon { |
| 174 |
background-image: url("../../images/icons/exclamation-circle.svg"); |
| 175 |
display: inline-block; |
| 176 |
width: 17px; |
| 177 |
height: 17px; |
| 178 |
background-size: contain; |
| 179 |
position: relative; |
| 180 |
top: 4px; |
| 181 |
margin-right: 10px; |
| 182 |
} |
| 183 |
|
| 184 |
.charitable-btn-connect-webhooks { |
| 185 |
border-radius: 0 !important; |
| 186 |
background-color: #E89940 !important; |
| 187 |
margin-bottom: 10px !important; |
| 188 |
border: 0 !important; |
| 189 |
color: #fff !important; |
| 190 |
} |
| 191 |
} |
| 192 |
|
| 193 |
body.charitable-pro.charitable_page_charitable-settings { |
| 194 |
.square-connection-status td, |
| 195 |
.square-enable-webhooks td { |
| 196 |
padding-top: 10px !important; |
| 197 |
} |
| 198 |
} |
| 199 |
|
| 200 |
body.charitable_page_charitable-settings:not(.charitable-pro) { |
| 201 |
.square-enable-webhooks td { |
| 202 |
padding-top: 10px !important; |
| 203 |
} |
| 204 |
} |