st-admin-css.css
343 lines
| 1 | .suretriggers-nobase { |
| 2 | position: fixed; |
| 3 | top: 50px; |
| 4 | height: calc(100% - 50px); |
| 5 | width: -webkit-fill-available; |
| 6 | } |
| 7 | |
| 8 | .suretriggers-nobase > div { |
| 9 | display: flex; |
| 10 | flex-direction: column; |
| 11 | justify-content: center; |
| 12 | align-items: center; |
| 13 | width: 100%; |
| 14 | height: 100%; |
| 15 | } |
| 16 | |
| 17 | .suretriggers-nobase > div > div { |
| 18 | width: 550px; |
| 19 | max-width: 800px; |
| 20 | margin: 0 auto; |
| 21 | background: white; |
| 22 | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
| 23 | border-radius: 8px; |
| 24 | padding: 40px; |
| 25 | text-align: center; |
| 26 | } |
| 27 | |
| 28 | .suretriggers-info-title { |
| 29 | text-align: center; font-size: 1.5rem; font-weight: 600; color: #111827; margin-bottom: 16px; |
| 30 | } |
| 31 | |
| 32 | .suretriggers-info-content { |
| 33 | font-size: 0.875rem; color: #6b7280; margin-bottom: 16px; |
| 34 | } |
| 35 | |
| 36 | .suretriggers-info-link { |
| 37 | --primary: #145485;--primary-foreground: #f8fafc;color: var(--primary-foreground);background-color: var(--primary);display: inline-block; padding: 10px 20px; border-radius: 6px; font-size: 1rem; text-decoration: none; margin-bottom: 16px; |
| 38 | } |
| 39 | |
| 40 | .suretriggers-info-link:active, .suretriggers-info-link:hover, .suretriggers-info-link:focus { |
| 41 | --primary: #145485;--primary-foreground: #f8fafc;color: var(--primary-foreground);background-color: var(--primary); |
| 42 | } |
| 43 | |
| 44 | /* General Admin Page Styling */ |
| 45 | .admin-page { |
| 46 | background: #fff; |
| 47 | border: 1px solid #ddd; |
| 48 | padding: 20px; |
| 49 | border-radius: 5px; |
| 50 | } |
| 51 | |
| 52 | .suretriggers-nav-tab { |
| 53 | margin: 1.5em 0 1em; |
| 54 | } |
| 55 | |
| 56 | .suretriggers-system-table { |
| 57 | margin-bottom: 1em; |
| 58 | } |
| 59 | |
| 60 | .suretriggers-system-table h2 { |
| 61 | font-size: 14px; |
| 62 | font-weight: 600; |
| 63 | } |
| 64 | |
| 65 | .suretriggers-system-table h5 { |
| 66 | display: inline-block; |
| 67 | font-size: 14px; |
| 68 | font-weight: 800; |
| 69 | } |
| 70 | |
| 71 | .suretriggers-system-table td svg { |
| 72 | display: inline; |
| 73 | } |
| 74 | |
| 75 | .suretriggers-system-table-trigger tbody tr { |
| 76 | background-color: #f9f9f9; |
| 77 | } |
| 78 | .suretriggers-system-table-trigger tbody tr.odd-row { |
| 79 | background-color: #ffffff; |
| 80 | } |
| 81 | |
| 82 | table.suretriggers-system-table-trigger th, table.suretriggers-system-table-trigger td { |
| 83 | border: 1px solid #e0dede; |
| 84 | } |
| 85 | |
| 86 | table.suretriggers-system-table-trigger tr.integration-row { |
| 87 | border-top: 1px solid #e0dede; |
| 88 | } |
| 89 | |
| 90 | .st-permalink-warning-wrapper { |
| 91 | display: flex; |
| 92 | justify-content: center; |
| 93 | margin-top: 24px; |
| 94 | } |
| 95 | |
| 96 | .st-permalink-warning-card { |
| 97 | background-color: #fffbeb; |
| 98 | border: 1px solid #f4aa28; |
| 99 | border-radius: 8px; |
| 100 | padding: 20px 24px; |
| 101 | width: 550px; |
| 102 | display: flex; |
| 103 | align-items: flex-start; |
| 104 | gap: 12px; |
| 105 | color: #a14800; |
| 106 | } |
| 107 | |
| 108 | .st-permalink-warning-icon { |
| 109 | background-color: #fff9e8; |
| 110 | border: 1.5px solid #a14800; |
| 111 | border-radius: 50%; |
| 112 | width: 22px; |
| 113 | height: 22px; |
| 114 | display: flex; |
| 115 | align-items: center; |
| 116 | justify-content: center; |
| 117 | flex-shrink: 0; |
| 118 | margin-top: 3px; |
| 119 | } |
| 120 | |
| 121 | .st-permalink-warning-icon-text { |
| 122 | color: #a14800; |
| 123 | font-size: 14px; |
| 124 | font-weight: bold; |
| 125 | } |
| 126 | |
| 127 | .st-permalink-warning-content { |
| 128 | color: #a14800; |
| 129 | } |
| 130 | |
| 131 | .st-permalink-warning-title { |
| 132 | margin: 0 0 6px 0; |
| 133 | font-weight: 600; |
| 134 | font-size: 16px; |
| 135 | } |
| 136 | |
| 137 | .st-permalink-warning-message { |
| 138 | margin: 0; |
| 139 | font-size: 14.5px; |
| 140 | line-height: 1.6; |
| 141 | } |
| 142 | |
| 143 | .st-permalink-warning-link { |
| 144 | color: #a14800; |
| 145 | text-decoration: underline; |
| 146 | font-weight: 500; |
| 147 | } |
| 148 | |
| 149 | /* OttoKit Upgrade Button Styling - Enhanced Green Theme */ |
| 150 | .ottokit-upgrade-btn { |
| 151 | background: linear-gradient(135deg, #28a745 0%, #20a848 100%) !important; |
| 152 | color: #fff !important; |
| 153 | font-weight: 600 !important; |
| 154 | padding: 6px 12px !important; |
| 155 | border-radius: 6px !important; |
| 156 | font-size: 12px !important; |
| 157 | line-height: 1.3 !important; |
| 158 | transition: all .3s ease !important; |
| 159 | border: none !important; |
| 160 | outline: none !important; |
| 161 | text-decoration: none !important; |
| 162 | display: inline-block !important; |
| 163 | margin: 0 !important; |
| 164 | box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important; |
| 165 | letter-spacing: 0.5px !important; |
| 166 | white-space: nowrap !important; |
| 167 | min-width: max-content !important; |
| 168 | } |
| 169 | |
| 170 | .ottokit-upgrade-btn:hover { |
| 171 | background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important; |
| 172 | color: #fff !important; |
| 173 | transform: translateY(-1px) !important; |
| 174 | box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4) !important; |
| 175 | } |
| 176 | |
| 177 | .ottokit-upgrade-btn:active { |
| 178 | background: linear-gradient(135deg, #1e7e34 0%, #1c7430 100%) !important; |
| 179 | transform: translateY(0) !important; |
| 180 | box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3) !important; |
| 181 | } |
| 182 | |
| 183 | /* Plugin action links styling */ |
| 184 | .plugin-action-links .ottokit-upgrade-btn { |
| 185 | margin: 0 !important; |
| 186 | } |
| 187 | |
| 188 | /* Admin menu styling */ |
| 189 | #adminmenu .ottokit-upgrade-btn { |
| 190 | margin: 0 !important; |
| 191 | vertical-align: baseline !important; |
| 192 | } |
| 193 | |
| 194 | |
| 195 | /* Reset Tailwind @tailwindcss/forms checkbox overrides on WP admin list tables */ |
| 196 | #suretriggers-requests-table-form .check-column input[type="checkbox"]:checked, |
| 197 | #suretriggers-requests-table-form .check-column input[type="checkbox"]:checked:hover, |
| 198 | #suretriggers-requests-table-form .check-column input[type="checkbox"]:checked:focus { |
| 199 | background-color: #fff; |
| 200 | border-color: #8c8f94; |
| 201 | background-image: none; |
| 202 | } |
| 203 | |
| 204 | /* Date filter inputs */ |
| 205 | .st-date-input { |
| 206 | padding: 4px 8px; |
| 207 | height: 30px; |
| 208 | vertical-align: middle; |
| 209 | margin: 0 4px; |
| 210 | border: 1px solid #8c8f94; |
| 211 | border-radius: 4px; |
| 212 | font-size: 13px; |
| 213 | } |
| 214 | |
| 215 | .st-filters-row { |
| 216 | display: flex; |
| 217 | align-items: center; |
| 218 | gap: 4px; |
| 219 | flex-wrap: wrap; |
| 220 | } |
| 221 | |
| 222 | /* View Response Modal */ |
| 223 | .st-modal-overlay { |
| 224 | position: fixed; |
| 225 | top: 0; |
| 226 | left: 0; |
| 227 | right: 0; |
| 228 | bottom: 0; |
| 229 | background: rgba(0, 0, 0, 0.6); |
| 230 | z-index: 100050; |
| 231 | display: flex; |
| 232 | justify-content: center; |
| 233 | align-items: center; |
| 234 | } |
| 235 | |
| 236 | .st-modal-content { |
| 237 | background: #fff; |
| 238 | width: 700px; |
| 239 | max-width: 90vw; |
| 240 | max-height: 80vh; |
| 241 | border-radius: 8px; |
| 242 | box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); |
| 243 | display: flex; |
| 244 | flex-direction: column; |
| 245 | overflow: hidden; |
| 246 | } |
| 247 | |
| 248 | .st-modal-header { |
| 249 | display: flex; |
| 250 | justify-content: space-between; |
| 251 | align-items: center; |
| 252 | padding: 16px 20px; |
| 253 | border-bottom: 1px solid #ddd; |
| 254 | } |
| 255 | |
| 256 | .st-modal-header h3 { margin: 0; font-size: 16px; } |
| 257 | |
| 258 | .st-modal-close { |
| 259 | background: none; |
| 260 | border: none; |
| 261 | font-size: 24px; |
| 262 | cursor: pointer; |
| 263 | color: #666; |
| 264 | padding: 0 4px; |
| 265 | line-height: 1; |
| 266 | } |
| 267 | |
| 268 | .st-modal-close:hover { color: #d63638; } |
| 269 | |
| 270 | .st-modal-body { padding: 20px; overflow-y: auto; } |
| 271 | |
| 272 | .st-modal-section { margin-bottom: 16px; } |
| 273 | |
| 274 | .st-modal-section h4 { margin: 0 0 4px 0; font-size: 13px; color: #1d2327; font-weight: 600; } |
| 275 | |
| 276 | .st-modal-section p { margin: 0; color: #50575e; } |
| 277 | |
| 278 | .st-json-display { |
| 279 | background: #f0f0f1; |
| 280 | border: 1px solid #dcdcde; |
| 281 | border-radius: 4px; |
| 282 | padding: 12px; |
| 283 | font-size: 12px; |
| 284 | line-height: 1.5; |
| 285 | max-height: 300px; |
| 286 | overflow: auto; |
| 287 | white-space: pre-wrap; |
| 288 | word-wrap: break-word; |
| 289 | } |
| 290 | |
| 291 | /* Troubleshooting Page */ |
| 292 | .st-troubleshooting-wrap { max-width: 800px; } |
| 293 | .st-troubleshooting-header { margin-bottom: 24px; } |
| 294 | .st-troubleshooting-desc { font-size: 14px; color: #50575e; margin: 8px 0 16px; } |
| 295 | .st-troubleshooting-scenarios { margin-bottom: 24px; } |
| 296 | .st-troubleshooting-scenarios h3 { font-size: 15px; margin-bottom: 12px; } |
| 297 | |
| 298 | .st-scenario-card { |
| 299 | background: #fff; |
| 300 | border: 1px solid #dcdcde; |
| 301 | border-left: 4px solid #2271b1; |
| 302 | border-radius: 4px; |
| 303 | padding: 16px 20px; |
| 304 | margin-bottom: 12px; |
| 305 | } |
| 306 | |
| 307 | .st-scenario-card h4 { margin: 0 0 8px 0; font-size: 14px; color: #1d2327; } |
| 308 | .st-scenario-card p { margin: 0; font-size: 13px; color: #50575e; line-height: 1.6; } |
| 309 | |
| 310 | .st-troubleshooting-note { |
| 311 | background: #fcf9e8; |
| 312 | border: 1px solid #dba617; |
| 313 | border-radius: 4px; |
| 314 | padding: 12px 16px; |
| 315 | } |
| 316 | |
| 317 | .st-troubleshooting-note p { margin: 0; font-size: 13px; color: #50575e; line-height: 1.5; } |
| 318 | |
| 319 | @media screen and (max-width: 782px) { |
| 320 | .suretriggers-nobase > div { |
| 321 | display: flex; |
| 322 | flex-direction: row; |
| 323 | justify-content: center; |
| 324 | align-items: center; |
| 325 | height: 100%; |
| 326 | } |
| 327 | |
| 328 | #suretriggers-requests-table-form .tablenav.top .actions { |
| 329 | display: block; |
| 330 | margin-bottom: 5px; |
| 331 | width: 100%; |
| 332 | text-align: center; |
| 333 | } |
| 334 | |
| 335 | #suretriggers-requests-table-form .tablenav .actions select { |
| 336 | float: none; |
| 337 | } |
| 338 | |
| 339 | #suretriggers_filter_request { margin: 0; } |
| 340 | .st-filters-row { flex-direction: column; align-items: stretch; } |
| 341 | .st-date-input { margin: 4px 0; width: 100%; } |
| 342 | .st-modal-content { width: 95vw; max-height: 90vh; } |
| 343 | } |