Skip to content

Commit

Permalink
Add styling for checks message
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Jan 3, 2024
1 parent a629a77 commit 9180d82
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions includes/Admin/Admin_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public function add_and_initialize_page() {
*/
public function initialize_page() {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
add_action( 'admin_head', array( $this, 'admin_head' ) );
add_action( 'admin_footer', array( $this, 'admin_footer' ) );
}

Expand Down Expand Up @@ -274,6 +275,32 @@ public function admin_footer() {
);
}

/**
* Adds the check's styles.
*
* @since n.e.x.t
*/
public function admin_head() {
echo '<style>';
echo '

Check warning on line 285 in includes/Admin/Admin_Page.php

View check run for this annotation

Codecov / codecov/patch

includes/Admin/Admin_Page.php#L283-L285

Added lines #L283 - L285 were not covered by tests
#plugin-check__results .notice {
margin-top: 20px;
}
#plugin-check__results .notice ~ h4:first-of-type {
margin-top: 20px;
}
#plugin-check__results > h4:first-of-type {
margin-top: 80.5px;
}
@media ( max-width: 782px ) {
#plugin-check__results > h4:first-of-type {
margin-top: 88.5px;
}
}
';
echo '</style>';

Check warning on line 301 in includes/Admin/Admin_Page.php

View check run for this annotation

Codecov / codecov/patch

includes/Admin/Admin_Page.php#L300-L301

Added lines #L300 - L301 were not covered by tests
}

/**
* Gets the hook suffix under which the admin page is added.
*
Expand Down

0 comments on commit 9180d82

Please sign in to comment.