admin-style.css
605 lines
| 1 | /** |
| 2 | * Admin styles for Easy Actions Scheduler Cleaner |
| 3 | * |
| 4 | * @package EasyActionsSchedulerCleanerAyudaWP |
| 5 | * @since 1.2.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 | Info, success and schedule boxes |
| 22 | ========================================================================== */ |
| 23 | |
| 24 | .easc-info-box { |
| 25 | background: #f8f9fa; |
| 26 | border: 1px solid #dee2e6; |
| 27 | border-left: 4px solid #007cba; |
| 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-info-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 | /* Irreversibility note */ |
| 54 | .easc-note { |
| 55 | color: #856404; |
| 56 | background: #fff3cd; |
| 57 | border: 1px solid #ffeeba; |
| 58 | padding: 10px 14px; |
| 59 | border-radius: 4px; |
| 60 | font-size: 13px; |
| 61 | } |
| 62 | |
| 63 | /* ========================================================================== |
| 64 | Button styling |
| 65 | ========================================================================== */ |
| 66 | |
| 67 | .easc-button-group { |
| 68 | margin-top: 20px; |
| 69 | } |
| 70 | |
| 71 | .easc-button-group .button, |
| 72 | .easc-button-group input[type="submit"] { |
| 73 | margin-right: 10px; |
| 74 | padding: 10px 20px; |
| 75 | height: auto; |
| 76 | font-weight: 500; |
| 77 | border-radius: 4px; |
| 78 | text-decoration: none; |
| 79 | transition: all 0.2s ease; |
| 80 | } |
| 81 | |
| 82 | /* Equal width button group */ |
| 83 | .easc-button-group-equal { |
| 84 | display: flex; |
| 85 | gap: 12px; |
| 86 | } |
| 87 | |
| 88 | .easc-button-group-equal .button, |
| 89 | .easc-button-group-equal input[type="submit"] { |
| 90 | flex: 1; |
| 91 | text-align: center; |
| 92 | margin-right: 0; |
| 93 | max-width: 280px; |
| 94 | } |
| 95 | |
| 96 | /* Execute / primary action button */ |
| 97 | .easc-execute { |
| 98 | background: #007cba !important; |
| 99 | border-color: #007cba !important; |
| 100 | color: white !important; |
| 101 | } |
| 102 | |
| 103 | .easc-execute:hover { |
| 104 | background: #005a87 !important; |
| 105 | border-color: #005177 !important; |
| 106 | color: white !important; |
| 107 | } |
| 108 | |
| 109 | /* Schedule button */ |
| 110 | .easc-schedule-btn { |
| 111 | background: #007cba !important; |
| 112 | border-color: #007cba !important; |
| 113 | color: white !important; |
| 114 | } |
| 115 | |
| 116 | .easc-schedule-btn:hover { |
| 117 | background: #005a87 !important; |
| 118 | border-color: #005177 !important; |
| 119 | color: white !important; |
| 120 | } |
| 121 | |
| 122 | /* Neutral / secondary button */ |
| 123 | .easc-neutral-btn { |
| 124 | background: #6c757d !important; |
| 125 | border-color: #6c757d !important; |
| 126 | color: white !important; |
| 127 | } |
| 128 | |
| 129 | .easc-neutral-btn:hover { |
| 130 | background: #545b62 !important; |
| 131 | border-color: #4e555b !important; |
| 132 | color: white !important; |
| 133 | } |
| 134 | |
| 135 | /* ========================================================================== |
| 136 | Actions list styling |
| 137 | ========================================================================== */ |
| 138 | |
| 139 | .easc-actions-list { |
| 140 | margin: 15px 0; |
| 141 | padding-left: 20px; |
| 142 | color: #495057; |
| 143 | list-style-type: '- '; |
| 144 | } |
| 145 | |
| 146 | .easc-actions-list li { |
| 147 | margin: 8px 0; |
| 148 | line-height: 1.5; |
| 149 | } |
| 150 | |
| 151 | /* ========================================================================== |
| 152 | Results table styling |
| 153 | ========================================================================== */ |
| 154 | |
| 155 | .easc-results-table { |
| 156 | margin-top: 20px; |
| 157 | width: 100%; |
| 158 | border-collapse: collapse; |
| 159 | background: white; |
| 160 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 161 | border-radius: 4px; |
| 162 | overflow: hidden; |
| 163 | } |
| 164 | |
| 165 | .easc-results-table th, |
| 166 | .easc-results-table td { |
| 167 | padding: 12px 15px; |
| 168 | border-bottom: 1px solid #dee2e6; |
| 169 | text-align: left; |
| 170 | } |
| 171 | |
| 172 | .easc-results-table th { |
| 173 | background: #f8f9fa; |
| 174 | font-weight: 600; |
| 175 | color: #495057; |
| 176 | border-bottom: 2px solid #dee2e6; |
| 177 | } |
| 178 | |
| 179 | .easc-results-table tr:last-child td { |
| 180 | border-bottom: none; |
| 181 | } |
| 182 | |
| 183 | .easc-results-table tbody tr:hover { |
| 184 | background: #f8f9fa; |
| 185 | } |
| 186 | |
| 187 | /* Total rows */ |
| 188 | .easc-row-total td { |
| 189 | font-weight: 600; |
| 190 | background: #f8f9fa; |
| 191 | color: #495057; |
| 192 | } |
| 193 | |
| 194 | .easc-row-total-success td { |
| 195 | font-weight: 600; |
| 196 | background: #e8f5e8; |
| 197 | color: #155724; |
| 198 | } |
| 199 | |
| 200 | /* Space estimation rows */ |
| 201 | .easc-row-space td { |
| 202 | color: #007cba; |
| 203 | font-style: italic; |
| 204 | border-top: 2px solid #dee2e6; |
| 205 | } |
| 206 | |
| 207 | .easc-row-space-saved td { |
| 208 | font-weight: 600; |
| 209 | background: #d4edda; |
| 210 | color: #155724; |
| 211 | } |
| 212 | |
| 213 | /* Post-cleanup info box */ |
| 214 | .easc-post-cleanup-info { |
| 215 | margin-top: 20px; |
| 216 | padding: 15px; |
| 217 | background: #f8f9fa; |
| 218 | border: 1px solid #dee2e6; |
| 219 | border-radius: 4px; |
| 220 | color: #495057; |
| 221 | } |
| 222 | |
| 223 | /* ========================================================================== |
| 224 | Schedule page styles |
| 225 | ========================================================================== */ |
| 226 | |
| 227 | .easc-schedule-box { |
| 228 | background: #f8f9fa; |
| 229 | border: 1px solid #dee2e6; |
| 230 | border-left: 4px solid #007cba; |
| 231 | padding: 20px; |
| 232 | margin: 20px 0; |
| 233 | border-radius: 4px; |
| 234 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 235 | } |
| 236 | |
| 237 | .easc-schedule-box h2 { |
| 238 | color: #495057; |
| 239 | margin-top: 0; |
| 240 | font-size: 18px; |
| 241 | font-weight: 600; |
| 242 | } |
| 243 | |
| 244 | .easc-schedule-box h3 { |
| 245 | margin-top: 25px; |
| 246 | margin-bottom: 5px; |
| 247 | font-size: 14px; |
| 248 | color: #495057; |
| 249 | } |
| 250 | |
| 251 | /* Master toggle */ |
| 252 | .easc-schedule-master { |
| 253 | margin: 15px 0 20px; |
| 254 | padding: 15px; |
| 255 | background: #fff; |
| 256 | border: 1px solid #dee2e6; |
| 257 | border-radius: 4px; |
| 258 | } |
| 259 | |
| 260 | .easc-toggle-label { |
| 261 | display: flex; |
| 262 | align-items: center; |
| 263 | gap: 8px; |
| 264 | cursor: pointer; |
| 265 | } |
| 266 | |
| 267 | .easc-toggle-label input[type="checkbox"] { |
| 268 | width: 18px; |
| 269 | height: 18px; |
| 270 | } |
| 271 | |
| 272 | .easc-next-run { |
| 273 | margin-top: 8px; |
| 274 | margin-bottom: 0; |
| 275 | color: #007cba; |
| 276 | font-style: italic; |
| 277 | font-size: 13px; |
| 278 | } |
| 279 | |
| 280 | /* Field row */ |
| 281 | .easc-field-row { |
| 282 | margin-bottom: 15px; |
| 283 | } |
| 284 | |
| 285 | .easc-field-row label { |
| 286 | display: block; |
| 287 | margin-bottom: 5px; |
| 288 | } |
| 289 | |
| 290 | .easc-field-row select { |
| 291 | min-width: 200px; |
| 292 | } |
| 293 | |
| 294 | /* Schedule table */ |
| 295 | .easc-schedule-table { |
| 296 | width: 100%; |
| 297 | border-collapse: collapse; |
| 298 | background: #fff; |
| 299 | margin-top: 10px; |
| 300 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); |
| 301 | border-radius: 4px; |
| 302 | overflow: hidden; |
| 303 | } |
| 304 | |
| 305 | .easc-schedule-table th, |
| 306 | .easc-schedule-table td { |
| 307 | padding: 12px 15px; |
| 308 | border-bottom: 1px solid #dee2e6; |
| 309 | text-align: left; |
| 310 | vertical-align: top; |
| 311 | } |
| 312 | |
| 313 | .easc-schedule-table th { |
| 314 | background: #f8f9fa; |
| 315 | font-weight: 600; |
| 316 | color: #495057; |
| 317 | font-size: 13px; |
| 318 | } |
| 319 | |
| 320 | .easc-schedule-table tr:last-child td { |
| 321 | border-bottom: none; |
| 322 | } |
| 323 | |
| 324 | .easc-col-toggle { |
| 325 | width: 60px; |
| 326 | text-align: center !important; |
| 327 | } |
| 328 | |
| 329 | .easc-col-toggle input[type="checkbox"] { |
| 330 | width: 16px; |
| 331 | height: 16px; |
| 332 | } |
| 333 | |
| 334 | .easc-col-type { |
| 335 | width: auto; |
| 336 | } |
| 337 | |
| 338 | .easc-col-threshold { |
| 339 | width: 130px; |
| 340 | } |
| 341 | |
| 342 | .easc-col-threshold input[type="number"] { |
| 343 | width: 90px; |
| 344 | } |
| 345 | |
| 346 | .easc-col-current { |
| 347 | width: 130px; |
| 348 | color: #495057; |
| 349 | } |
| 350 | |
| 351 | .easc-type-desc { |
| 352 | display: block; |
| 353 | color: #6c757d; |
| 354 | font-size: 12px; |
| 355 | margin-top: 2px; |
| 356 | } |
| 357 | |
| 358 | .easc-days-field { |
| 359 | display: block; |
| 360 | margin-top: 6px; |
| 361 | font-size: 13px; |
| 362 | } |
| 363 | |
| 364 | .easc-days-field input[type="number"] { |
| 365 | width: 60px; |
| 366 | } |
| 367 | |
| 368 | /* Badge for threshold reached */ |
| 369 | .easc-badge { |
| 370 | display: inline-block; |
| 371 | font-size: 12px; |
| 372 | padding: 1px 6px; |
| 373 | border-radius: 3px; |
| 374 | margin-left: 4px; |
| 375 | font-weight: 600; |
| 376 | } |
| 377 | |
| 378 | .easc-badge-ready { |
| 379 | background: #d4edda; |
| 380 | color: #155724; |
| 381 | } |
| 382 | |
| 383 | /* Row highlight when threshold is met */ |
| 384 | .easc-will-clean { |
| 385 | background: #f0fff4; |
| 386 | } |
| 387 | |
| 388 | /* Last run info - base */ |
| 389 | .easc-last-run-info { |
| 390 | margin: 10px 0 15px; |
| 391 | padding: 10px 15px; |
| 392 | border-radius: 4px; |
| 393 | font-size: 13px; |
| 394 | line-height: 1.6; |
| 395 | } |
| 396 | |
| 397 | /* Last run - success (records deleted) */ |
| 398 | .easc-last-run-success { |
| 399 | background: #e8f5e8; |
| 400 | border: 1px solid #c3e6cb; |
| 401 | color: #155724; |
| 402 | } |
| 403 | |
| 404 | /* Last run - skipped (thresholds not met) */ |
| 405 | .easc-last-run-skipped { |
| 406 | background: #e8f4fd; |
| 407 | border: 1px solid #b8daff; |
| 408 | color: #004085; |
| 409 | } |
| 410 | |
| 411 | /* Last run - error */ |
| 412 | .easc-last-run-error { |
| 413 | background: #f8d7da; |
| 414 | border: 1px solid #f5c6cb; |
| 415 | color: #721c24; |
| 416 | } |
| 417 | |
| 418 | /* Breakdown details */ |
| 419 | .easc-last-run-details { |
| 420 | display: block; |
| 421 | margin-top: 4px; |
| 422 | font-size: 12px; |
| 423 | opacity: 0.85; |
| 424 | } |
| 425 | |
| 426 | /* Schedule options container (toggled by JS) */ |
| 427 | .easc-schedule-options, |
| 428 | .easc-notification-options { |
| 429 | transition: opacity 0.2s ease; |
| 430 | } |
| 431 | |
| 432 | .easc-schedule-options.easc-disabled, |
| 433 | .easc-notification-options.easc-disabled { |
| 434 | opacity: 0.5; |
| 435 | pointer-events: none; |
| 436 | } |
| 437 | |
| 438 | /* ========================================================================== |
| 439 | Notification page styles |
| 440 | ========================================================================== */ |
| 441 | |
| 442 | .easc-notification-section { |
| 443 | margin-bottom: 10px; |
| 444 | padding-bottom: 10px; |
| 445 | border-bottom: 1px solid #dee2e6; |
| 446 | } |
| 447 | |
| 448 | .easc-notification-section:last-of-type { |
| 449 | border-bottom: none; |
| 450 | } |
| 451 | |
| 452 | .easc-notification-section h3 { |
| 453 | margin-top: 20px; |
| 454 | margin-bottom: 5px; |
| 455 | font-size: 14px; |
| 456 | color: #495057; |
| 457 | font-weight: 600; |
| 458 | } |
| 459 | |
| 460 | /* ========================================================================== |
| 461 | Promotional notice - Plugin install boxes |
| 462 | ========================================================================== */ |
| 463 | |
| 464 | .easc-promo-notice { |
| 465 | background: #f6f7f7; |
| 466 | border: 1px solid #c3c4c7; |
| 467 | padding: 20px; |
| 468 | margin-top: 30px; |
| 469 | } |
| 470 | |
| 471 | .easc-promo-notice > h4 { |
| 472 | margin: 0 0 20px; |
| 473 | font-size: 15px; |
| 474 | font-weight: 600; |
| 475 | color: #1d2327; |
| 476 | } |
| 477 | |
| 478 | .easc-promo-columns { |
| 479 | display: grid; |
| 480 | grid-template-columns: repeat(3, 1fr); |
| 481 | gap: 25px; |
| 482 | } |
| 483 | |
| 484 | .easc-promo-column { |
| 485 | background: #fff; |
| 486 | border: 1px solid #dcdcde; |
| 487 | padding: 20px; |
| 488 | display: flex; |
| 489 | flex-direction: column; |
| 490 | } |
| 491 | |
| 492 | .easc-promo-column > .dashicons { |
| 493 | font-size: 28px; |
| 494 | width: 28px; |
| 495 | height: 28px; |
| 496 | color: #007cba; |
| 497 | margin-bottom: 12px; |
| 498 | } |
| 499 | |
| 500 | .easc-promo-column h5 { |
| 501 | margin: 0 0 10px; |
| 502 | font-size: 13px; |
| 503 | font-weight: 600; |
| 504 | color: #1d2327; |
| 505 | line-height: 1.4; |
| 506 | } |
| 507 | |
| 508 | .easc-promo-column p { |
| 509 | margin: 0 0 15px; |
| 510 | color: #50575e; |
| 511 | font-size: 13px; |
| 512 | line-height: 1.5; |
| 513 | flex-grow: 1; |
| 514 | } |
| 515 | |
| 516 | .easc-promo-notice .easc-promo-column .button { |
| 517 | align-self: flex-start; |
| 518 | margin-top: auto; |
| 519 | white-space: normal; |
| 520 | height: auto; |
| 521 | min-height: auto; |
| 522 | line-height: 1.4; |
| 523 | padding: 6px 12px; |
| 524 | text-align: center; |
| 525 | } |
| 526 | |
| 527 | /* ========================================================================== |
| 528 | General |
| 529 | ========================================================================== */ |
| 530 | |
| 531 | .wrap h1 { |
| 532 | color: #23282d; |
| 533 | } |
| 534 | |
| 535 | .wrap h3 { |
| 536 | color: #495057; |
| 537 | margin-top: 30px; |
| 538 | margin-bottom: 15px; |
| 539 | } |
| 540 | |
| 541 | /* ========================================================================== |
| 542 | Responsive |
| 543 | ========================================================================== */ |
| 544 | |
| 545 | @media (max-width: 1200px) { |
| 546 | .easc-promo-columns { |
| 547 | grid-template-columns: repeat(2, 1fr); |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | @media (max-width: 782px) { |
| 552 | .easc-promo-columns { |
| 553 | grid-template-columns: 1fr; |
| 554 | } |
| 555 | |
| 556 | .easc-button-group .button, |
| 557 | .easc-button-group input[type="submit"] { |
| 558 | display: block; |
| 559 | margin-bottom: 10px; |
| 560 | margin-right: 0; |
| 561 | text-align: center; |
| 562 | } |
| 563 | |
| 564 | .easc-button-group-equal { |
| 565 | flex-direction: column; |
| 566 | } |
| 567 | |
| 568 | .easc-button-group-equal .button, |
| 569 | .easc-button-group-equal input[type="submit"] { |
| 570 | max-width: 100%; |
| 571 | } |
| 572 | |
| 573 | .easc-results-table, |
| 574 | .easc-schedule-table { |
| 575 | font-size: 14px; |
| 576 | } |
| 577 | |
| 578 | .easc-results-table th, |
| 579 | .easc-results-table td, |
| 580 | .easc-schedule-table th, |
| 581 | .easc-schedule-table td { |
| 582 | padding: 8px 10px; |
| 583 | } |
| 584 | |
| 585 | .easc-schedule-table { |
| 586 | display: block; |
| 587 | overflow-x: auto; |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | /* Test email links */ |
| 592 | .easc-test-link-wrap { |
| 593 | margin: 5px 0 0; |
| 594 | } |
| 595 | |
| 596 | .easc-test-link { |
| 597 | font-size: 13px; |
| 598 | color: #007cba; |
| 599 | text-decoration: none; |
| 600 | } |
| 601 | |
| 602 | .easc-test-link:hover { |
| 603 | color: #005177; |
| 604 | text-decoration: underline; |
| 605 | } |