admin-style.css
505 lines
| 1 | /** |
| 2 | * Admin styles for Easy Actions Scheduler Cleaner |
| 3 | * |
| 4 | * @package EasyActionsSchedulerCleanerAyudaWP |
| 5 | * @since 1.1.0 |
| 6 | */ |
| 7 | |
| 8 | /* ========================================================================== |
| 9 | Tab navigation |
| 10 | ========================================================================== */ |
| 11 | |
| 12 | .easc-nav-tabs { |
| 13 | margin-bottom: 0; |
| 14 | } |
| 15 | |
| 16 | .easc-tab-content { |
| 17 | padding-top: 20px; |
| 18 | } |
| 19 | |
| 20 | /* ========================================================================== |
| 21 | Warning and success boxes |
| 22 | ========================================================================== */ |
| 23 | |
| 24 | .easc-warning-box { |
| 25 | background: #f8f9fa; |
| 26 | border: 1px solid #dee2e6; |
| 27 | border-left: 4px solid #dc3545; |
| 28 | padding: 20px; |
| 29 | margin: 20px 0; |
| 30 | border-radius: 4px; |
| 31 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 32 | } |
| 33 | |
| 34 | .easc-success-box { |
| 35 | background: #f8f9fa; |
| 36 | border: 1px solid #dee2e6; |
| 37 | border-left: 4px solid #28a745; |
| 38 | padding: 20px; |
| 39 | margin: 20px 0; |
| 40 | border-radius: 4px; |
| 41 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 42 | } |
| 43 | |
| 44 | /* Box titles */ |
| 45 | .easc-warning-box h2, |
| 46 | .easc-success-box h2 { |
| 47 | color: #495057; |
| 48 | margin-top: 0; |
| 49 | font-size: 18px; |
| 50 | font-weight: 600; |
| 51 | } |
| 52 | |
| 53 | /* ========================================================================== |
| 54 | Button styling |
| 55 | ========================================================================== */ |
| 56 | |
| 57 | .easc-button-group { |
| 58 | margin-top: 20px; |
| 59 | } |
| 60 | |
| 61 | .easc-button-group .button { |
| 62 | margin-right: 10px; |
| 63 | padding: 10px 20px; |
| 64 | height: auto; |
| 65 | font-weight: 500; |
| 66 | border-radius: 4px; |
| 67 | text-decoration: none; |
| 68 | transition: all 0.2s ease; |
| 69 | } |
| 70 | |
| 71 | /* Cancel button */ |
| 72 | .easc-cancel { |
| 73 | background: #dc3545 !important; |
| 74 | border-color: #dc3545 !important; |
| 75 | color: white !important; |
| 76 | } |
| 77 | |
| 78 | .easc-cancel:hover { |
| 79 | background: #c82333 !important; |
| 80 | border-color: #bd2130 !important; |
| 81 | color: white !important; |
| 82 | } |
| 83 | |
| 84 | /* Execute button */ |
| 85 | .easc-execute { |
| 86 | background: #007cba !important; |
| 87 | border-color: #007cba !important; |
| 88 | color: white !important; |
| 89 | } |
| 90 | |
| 91 | .easc-execute:hover { |
| 92 | background: #005a87 !important; |
| 93 | border-color: #005177 !important; |
| 94 | color: white !important; |
| 95 | } |
| 96 | |
| 97 | /* Deactivate button */ |
| 98 | .easc-deactivate { |
| 99 | background: #6c757d !important; |
| 100 | border-color: #6c757d !important; |
| 101 | color: white !important; |
| 102 | } |
| 103 | |
| 104 | .easc-deactivate:hover { |
| 105 | background: #545b62 !important; |
| 106 | border-color: #4e555b !important; |
| 107 | color: white !important; |
| 108 | } |
| 109 | |
| 110 | /* ========================================================================== |
| 111 | Actions list styling |
| 112 | ========================================================================== */ |
| 113 | |
| 114 | .easc-actions-list { |
| 115 | margin: 15px 0; |
| 116 | padding-left: 20px; |
| 117 | color: #495057; |
| 118 | } |
| 119 | |
| 120 | .easc-actions-list li { |
| 121 | margin: 8px 0; |
| 122 | line-height: 1.5; |
| 123 | } |
| 124 | |
| 125 | .easc-actions-list li strong { |
| 126 | color: #212529; |
| 127 | } |
| 128 | |
| 129 | /* ========================================================================== |
| 130 | Results table styling |
| 131 | ========================================================================== */ |
| 132 | |
| 133 | .easc-results-table { |
| 134 | margin-top: 20px; |
| 135 | width: 100%; |
| 136 | border-collapse: collapse; |
| 137 | background: white; |
| 138 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 139 | border-radius: 4px; |
| 140 | overflow: hidden; |
| 141 | } |
| 142 | |
| 143 | .easc-results-table th, |
| 144 | .easc-results-table td { |
| 145 | padding: 12px 15px; |
| 146 | border-bottom: 1px solid #dee2e6; |
| 147 | text-align: left; |
| 148 | } |
| 149 | |
| 150 | .easc-results-table th { |
| 151 | background: #f8f9fa; |
| 152 | font-weight: 600; |
| 153 | color: #495057; |
| 154 | border-bottom: 2px solid #dee2e6; |
| 155 | } |
| 156 | |
| 157 | .easc-results-table tr:last-child td { |
| 158 | border-bottom: none; |
| 159 | } |
| 160 | |
| 161 | .easc-results-table tbody tr:hover { |
| 162 | background: #f8f9fa; |
| 163 | } |
| 164 | |
| 165 | /* Post-cleanup info box */ |
| 166 | .easc-post-cleanup-info { |
| 167 | margin-top: 20px; |
| 168 | padding: 15px; |
| 169 | background: #f8f9fa; |
| 170 | border: 1px solid #dee2e6; |
| 171 | border-radius: 4px; |
| 172 | color: #495057; |
| 173 | } |
| 174 | |
| 175 | /* ========================================================================== |
| 176 | Schedule page styles |
| 177 | ========================================================================== */ |
| 178 | |
| 179 | .easc-schedule-box { |
| 180 | background: #f8f9fa; |
| 181 | border: 1px solid #dee2e6; |
| 182 | border-left: 4px solid #007cba; |
| 183 | padding: 20px; |
| 184 | margin: 20px 0; |
| 185 | border-radius: 4px; |
| 186 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 187 | } |
| 188 | |
| 189 | .easc-schedule-box h2 { |
| 190 | color: #495057; |
| 191 | margin-top: 0; |
| 192 | font-size: 18px; |
| 193 | font-weight: 600; |
| 194 | } |
| 195 | |
| 196 | .easc-schedule-box h3 { |
| 197 | margin-top: 25px; |
| 198 | margin-bottom: 5px; |
| 199 | font-size: 14px; |
| 200 | color: #495057; |
| 201 | } |
| 202 | |
| 203 | /* Master toggle */ |
| 204 | .easc-schedule-master { |
| 205 | margin: 15px 0 20px; |
| 206 | padding: 15px; |
| 207 | background: #fff; |
| 208 | border: 1px solid #dee2e6; |
| 209 | border-radius: 4px; |
| 210 | } |
| 211 | |
| 212 | .easc-toggle-label { |
| 213 | display: flex; |
| 214 | align-items: center; |
| 215 | gap: 8px; |
| 216 | cursor: pointer; |
| 217 | } |
| 218 | |
| 219 | .easc-toggle-label input[type="checkbox"] { |
| 220 | width: 18px; |
| 221 | height: 18px; |
| 222 | } |
| 223 | |
| 224 | .easc-next-run { |
| 225 | margin-top: 8px; |
| 226 | margin-bottom: 0; |
| 227 | color: #007cba; |
| 228 | font-style: italic; |
| 229 | font-size: 13px; |
| 230 | } |
| 231 | |
| 232 | /* Field row */ |
| 233 | .easc-field-row { |
| 234 | margin-bottom: 15px; |
| 235 | } |
| 236 | |
| 237 | .easc-field-row label { |
| 238 | display: block; |
| 239 | margin-bottom: 5px; |
| 240 | } |
| 241 | |
| 242 | .easc-field-row select { |
| 243 | min-width: 200px; |
| 244 | } |
| 245 | |
| 246 | /* Schedule table */ |
| 247 | .easc-schedule-table { |
| 248 | width: 100%; |
| 249 | border-collapse: collapse; |
| 250 | background: #fff; |
| 251 | margin-top: 10px; |
| 252 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 253 | border-radius: 4px; |
| 254 | overflow: hidden; |
| 255 | } |
| 256 | |
| 257 | .easc-schedule-table th, |
| 258 | .easc-schedule-table td { |
| 259 | padding: 12px 15px; |
| 260 | border-bottom: 1px solid #dee2e6; |
| 261 | text-align: left; |
| 262 | vertical-align: top; |
| 263 | } |
| 264 | |
| 265 | .easc-schedule-table th { |
| 266 | background: #f8f9fa; |
| 267 | font-weight: 600; |
| 268 | color: #495057; |
| 269 | font-size: 13px; |
| 270 | } |
| 271 | |
| 272 | .easc-schedule-table tr:last-child td { |
| 273 | border-bottom: none; |
| 274 | } |
| 275 | |
| 276 | .easc-col-toggle { |
| 277 | width: 60px; |
| 278 | text-align: center !important; |
| 279 | } |
| 280 | |
| 281 | .easc-col-toggle input[type="checkbox"] { |
| 282 | width: 16px; |
| 283 | height: 16px; |
| 284 | } |
| 285 | |
| 286 | .easc-col-type { |
| 287 | width: auto; |
| 288 | } |
| 289 | |
| 290 | .easc-col-threshold { |
| 291 | width: 130px; |
| 292 | } |
| 293 | |
| 294 | .easc-col-threshold input[type="number"] { |
| 295 | width: 90px; |
| 296 | } |
| 297 | |
| 298 | .easc-col-current { |
| 299 | width: 130px; |
| 300 | color: #495057; |
| 301 | } |
| 302 | |
| 303 | .easc-type-desc { |
| 304 | display: block; |
| 305 | color: #6c757d; |
| 306 | font-size: 12px; |
| 307 | margin-top: 2px; |
| 308 | } |
| 309 | |
| 310 | .easc-days-field { |
| 311 | display: block; |
| 312 | margin-top: 6px; |
| 313 | font-size: 13px; |
| 314 | } |
| 315 | |
| 316 | .easc-days-field input[type="number"] { |
| 317 | width: 60px; |
| 318 | } |
| 319 | |
| 320 | /* Badge for threshold reached */ |
| 321 | .easc-badge { |
| 322 | display: inline-block; |
| 323 | font-size: 12px; |
| 324 | padding: 1px 6px; |
| 325 | border-radius: 3px; |
| 326 | margin-left: 4px; |
| 327 | font-weight: 600; |
| 328 | } |
| 329 | |
| 330 | .easc-badge-ready { |
| 331 | background: #d4edda; |
| 332 | color: #155724; |
| 333 | } |
| 334 | |
| 335 | /* Row highlight when threshold is met */ |
| 336 | .easc-will-clean { |
| 337 | background: #f0fff4; |
| 338 | } |
| 339 | |
| 340 | /* Last run info - base */ |
| 341 | .easc-last-run-info { |
| 342 | margin: 10px 0 15px; |
| 343 | padding: 10px 15px; |
| 344 | border-radius: 4px; |
| 345 | font-size: 13px; |
| 346 | line-height: 1.6; |
| 347 | } |
| 348 | |
| 349 | /* Last run - success (records deleted) */ |
| 350 | .easc-last-run-success { |
| 351 | background: #e8f5e8; |
| 352 | border: 1px solid #c3e6cb; |
| 353 | color: #155724; |
| 354 | } |
| 355 | |
| 356 | /* Last run - skipped (thresholds not met) */ |
| 357 | .easc-last-run-skipped { |
| 358 | background: #e8f4fd; |
| 359 | border: 1px solid #b8daff; |
| 360 | color: #004085; |
| 361 | } |
| 362 | |
| 363 | /* Last run - error */ |
| 364 | .easc-last-run-error { |
| 365 | background: #f8d7da; |
| 366 | border: 1px solid #f5c6cb; |
| 367 | color: #721c24; |
| 368 | } |
| 369 | |
| 370 | /* Breakdown details */ |
| 371 | .easc-last-run-details { |
| 372 | display: block; |
| 373 | margin-top: 4px; |
| 374 | font-size: 12px; |
| 375 | opacity: 0.85; |
| 376 | } |
| 377 | |
| 378 | /* Schedule options container (toggled by JS) */ |
| 379 | .easc-schedule-options { |
| 380 | transition: opacity 0.2s ease; |
| 381 | } |
| 382 | |
| 383 | .easc-schedule-options.easc-disabled { |
| 384 | opacity: 0.5; |
| 385 | pointer-events: none; |
| 386 | } |
| 387 | |
| 388 | /* ========================================================================== |
| 389 | Promotional notice - Plugin install boxes |
| 390 | ========================================================================== */ |
| 391 | |
| 392 | .easc-promo-notice { |
| 393 | background: #f6f7f7; |
| 394 | border: 1px solid #c3c4c7; |
| 395 | padding: 20px; |
| 396 | margin-top: 30px; |
| 397 | } |
| 398 | |
| 399 | .easc-promo-notice > h4 { |
| 400 | margin: 0 0 20px; |
| 401 | font-size: 15px; |
| 402 | font-weight: 600; |
| 403 | color: #1d2327; |
| 404 | } |
| 405 | |
| 406 | .easc-promo-columns { |
| 407 | display: grid; |
| 408 | grid-template-columns: repeat(3, 1fr); |
| 409 | gap: 25px; |
| 410 | } |
| 411 | |
| 412 | .easc-promo-column { |
| 413 | background: #fff; |
| 414 | border: 1px solid #dcdcde; |
| 415 | padding: 20px; |
| 416 | display: flex; |
| 417 | flex-direction: column; |
| 418 | } |
| 419 | |
| 420 | .easc-promo-column > .dashicons { |
| 421 | font-size: 28px; |
| 422 | width: 28px; |
| 423 | height: 28px; |
| 424 | color: #007cba; |
| 425 | margin-bottom: 12px; |
| 426 | } |
| 427 | |
| 428 | .easc-promo-column h5 { |
| 429 | margin: 0 0 10px; |
| 430 | font-size: 13px; |
| 431 | font-weight: 600; |
| 432 | color: #1d2327; |
| 433 | line-height: 1.4; |
| 434 | } |
| 435 | |
| 436 | .easc-promo-column p { |
| 437 | margin: 0 0 15px; |
| 438 | color: #50575e; |
| 439 | font-size: 13px; |
| 440 | line-height: 1.5; |
| 441 | flex-grow: 1; |
| 442 | } |
| 443 | |
| 444 | .easc-promo-column .button { |
| 445 | align-self: flex-start; |
| 446 | white-space: normal; |
| 447 | height: auto; |
| 448 | line-height: 1.4; |
| 449 | padding: 6px 12px; |
| 450 | } |
| 451 | |
| 452 | /* ========================================================================== |
| 453 | General |
| 454 | ========================================================================== */ |
| 455 | |
| 456 | .wrap h1 { |
| 457 | color: #23282d; |
| 458 | } |
| 459 | |
| 460 | .wrap h3 { |
| 461 | color: #495057; |
| 462 | margin-top: 30px; |
| 463 | margin-bottom: 15px; |
| 464 | } |
| 465 | |
| 466 | /* ========================================================================== |
| 467 | Responsive |
| 468 | ========================================================================== */ |
| 469 | |
| 470 | @media (max-width: 1200px) { |
| 471 | .easc-promo-columns { |
| 472 | grid-template-columns: repeat(2, 1fr); |
| 473 | } |
| 474 | } |
| 475 | |
| 476 | @media (max-width: 782px) { |
| 477 | .easc-promo-columns { |
| 478 | grid-template-columns: 1fr; |
| 479 | } |
| 480 | |
| 481 | .easc-button-group .button { |
| 482 | display: block; |
| 483 | margin-bottom: 10px; |
| 484 | margin-right: 0; |
| 485 | text-align: center; |
| 486 | } |
| 487 | |
| 488 | .easc-results-table, |
| 489 | .easc-schedule-table { |
| 490 | font-size: 14px; |
| 491 | } |
| 492 | |
| 493 | .easc-results-table th, |
| 494 | .easc-results-table td, |
| 495 | .easc-schedule-table th, |
| 496 | .easc-schedule-table td { |
| 497 | padding: 8px 10px; |
| 498 | } |
| 499 | |
| 500 | .easc-schedule-table { |
| 501 | display: block; |
| 502 | overflow-x: auto; |
| 503 | } |
| 504 | } |
| 505 |