Skip to content

Commit d3c6dd8

Browse files
committed
Library update
1 parent 747d485 commit d3c6dd8

File tree

1 file changed

+62
-1
lines changed

1 file changed

+62
-1
lines changed

includes/ddwlib-plugin-installer-recommendations.php

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @package DDWlib Plugin Installer Recommendations
2222
* @author David Decker
2323
* @license http://www.gnu.org/licenses GNU General Public License
24-
* @version 1.1.0
24+
* @version 1.2.0
2525
* @link https://github.com/deckerweb/ddwlib-plugin-installer-recommendations
2626
*/
2727

@@ -482,6 +482,7 @@ static function plugin_install_action_links( $action_links, $plugin ) {
482482
* - Theme uploader
483483
*
484484
* @since 1.1.0
485+
* @since 1.2.0 Added more styles for plugin cards. Dark mode support.
485486
*/
486487
static function installer_styles() {
487488

@@ -512,6 +513,57 @@ static function installer_styles() {
512513
margin-left: 10px;
513514
}
514515

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+
515567
/** Plugin & Theme uploaders */
516568
.upload-plugin .wp-upload-form,
517569
.upload-theme .wp-upload-form {
@@ -539,6 +591,15 @@ static function installer_styles() {
539591
font-size: 120%;
540592
margin-top: 20px;
541593
}
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+
}
542603
</style>
543604
<?php
544605

0 commit comments

Comments
 (0)