|
21 | 21 | * @package DDWlib Plugin Installer Recommendations
|
22 | 22 | * @author David Decker
|
23 | 23 | * @license http://www.gnu.org/licenses GNU General Public License
|
24 |
| - * @version 1.1.0 |
| 24 | + * @version 1.2.0 |
25 | 25 | * @link https://github.com/deckerweb/ddwlib-plugin-installer-recommendations
|
26 | 26 | */
|
27 | 27 |
|
@@ -482,6 +482,7 @@ static function plugin_install_action_links( $action_links, $plugin ) {
|
482 | 482 | * - Theme uploader
|
483 | 483 | *
|
484 | 484 | * @since 1.1.0
|
| 485 | + * @since 1.2.0 Added more styles for plugin cards. Dark mode support. |
485 | 486 | */
|
486 | 487 | static function installer_styles() {
|
487 | 488 |
|
@@ -512,6 +513,57 @@ static function installer_styles() {
|
512 | 513 | margin-left: 10px;
|
513 | 514 | }
|
514 | 515 |
|
| 516 | + .dark-mode .plugin-card:hover { |
| 517 | + background: #404C58 !important; |
| 518 | + border-color: #090909 !important; |
| 519 | + } |
| 520 | + .dark-mode .plugin-card:hover > .plugin-card-bottom { |
| 521 | + background: #111921 !important; |
| 522 | + } |
| 523 | + .dark-mode .plugin-action-buttons div small { |
| 524 | + color: #bbc8d4; |
| 525 | + } |
| 526 | + |
| 527 | + /** Plugin cards: buttons */ |
| 528 | + #wpwrap .plugin-action-buttons .button-disabled { |
| 529 | + background-color: #d9edc2 !important; |
| 530 | + border-color: #b2ce96 !important; |
| 531 | + color: #555 !important; |
| 532 | + } |
| 533 | + .plugin-action-buttons .update-now, |
| 534 | + .plugin-action-buttons .install-now.updating-message { |
| 535 | + background-color: #fef5c4; |
| 536 | + } |
| 537 | + .plugin-action-buttons .activate-now, |
| 538 | + .plugin-action-buttons .activate-now:focus, |
| 539 | + .dark-mode .plugin-action-buttons .activate-now, |
| 540 | + .dark-mode .plugin-action-buttons .activate-now:focus, { |
| 541 | + background-color: #e2e2f9; |
| 542 | + border-color: #bebde9; |
| 543 | + color: #333; |
| 544 | + } |
| 545 | + .plugin-action-buttons a.activate-now:before { |
| 546 | + color: #999; /* #f56e28; */ |
| 547 | + content: "\f106"; |
| 548 | + display: inline-block; |
| 549 | + font: 400 20px/1 dashicons; |
| 550 | + margin: 3px 5px 0 -2px; |
| 551 | + speak: none; |
| 552 | + -webkit-font-smoothing: antialiased; |
| 553 | + -moz-osx-font-smoothing: grayscale; |
| 554 | + vertical-align: top; |
| 555 | + } |
| 556 | + |
| 557 | + /** Plugin cards: compatibility */ |
| 558 | + .plugin-card .compatibility-compatible:before, |
| 559 | + .plugin-card .compatibility-compatible strong { |
| 560 | + color: #0b0 !important; |
| 561 | + } |
| 562 | + .plugin-card .compatibility-incompatible:before, |
| 563 | + .plugin-card .compatibility-incompatible strong { |
| 564 | + color: #f00 !important; |
| 565 | + } |
| 566 | + |
515 | 567 | /** Plugin & Theme uploaders */
|
516 | 568 | .upload-plugin .wp-upload-form,
|
517 | 569 | .upload-theme .wp-upload-form {
|
@@ -539,6 +591,15 @@ static function installer_styles() {
|
539 | 591 | font-size: 120%;
|
540 | 592 | margin-top: 20px;
|
541 | 593 | }
|
| 594 | + .dark-mode input#pluginzip, |
| 595 | + .dark-mode input#themezip { |
| 596 | + background-color: #404C58; |
| 597 | + border-color: #23282d; |
| 598 | + } |
| 599 | + .dark-mode input#pluginzip:hover, |
| 600 | + .dark-mode input#themezip:hover { |
| 601 | + background-color: #50626f; |
| 602 | + } |
542 | 603 | </style>
|
543 | 604 | <?php
|
544 | 605 |
|
|
0 commit comments