Skip to content

Commit

Permalink
Simply CSS for check message
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Jan 4, 2024
1 parent f1e1e0f commit b058833
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions includes/Admin/Admin_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,26 +272,22 @@ public function admin_footer() {
'type' => 'text/template',
)
);

// Print check's page styles.
echo '<style>';
echo '
#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;
?>
<style>
#plugin-check__results .notice,
#plugin-check__results .notice + h4 {
margin-top: 20px;
}
}
';
echo '</style>';
#plugin-check__results h4:first-child {
margin-top: 80.5px;
}
@media ( max-width: 782px ) {
#plugin-check__results h4:first-child {
margin-top: 88.5px;
}
}
</style>
<?php
}

/**
Expand Down

0 comments on commit b058833

Please sign in to comment.