Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move dark-mode styling into dashboard.css #278

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
fill: #606a73;
}

html.dark-mode body:not(.block-editor-page) #dashboard_right_now .cachify-icon {
fill: #bbc8d4;
}

#dashboard_right_now li a.cachify-glance::before {
content: "";
padding: 0;
Expand Down
4 changes: 2 additions & 2 deletions inc/class-cachify.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ public function __construct() {

add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_dashboard_styles' ) );

add_action( 'doing_dark_mode', array( __CLASS__, 'admin_dashboard_dark_mode_styles' ) );

add_action( 'transition_comment_status', array( __CLASS__, 'touch_comment' ), 10, 3 );

add_action( 'edit_comment', array( __CLASS__, 'edit_comment' ) );
Expand Down Expand Up @@ -1608,6 +1606,8 @@ public static function admin_dashboard_styles() {
* Fixing some admin dashboard styles
*
* @since 2.3.0
*
* @deprecated included in dashboard.css since 2.4
*/
public static function admin_dashboard_dark_mode_styles() {
wp_add_inline_style( 'cachify-dashboard', '#dashboard_right_now .cachify-icon use { fill: #bbc8d4; }' );
Expand Down