Skip to content

Commit

Permalink
fix: 💄 WIP pagination styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Herm71 committed Mar 29, 2022
1 parent 17247cd commit 6c1986a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function ucsc_theme_setup()
/*
* Load additional block styles.
*/
$styled_blocks = ['button','post-template', 'post-author','site-title'];
$styled_blocks = ['button','post-template', 'post-author','site-title','query-pagination'];
foreach ($styled_blocks as $block_name) {
$args = array(
'handle' => "ucsc-$block_name",
Expand Down
27 changes: 27 additions & 0 deletions wp-blocks/query-pagination.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

.wp-block-query-pagination {
justify-content:space-between;
}

.wp-block-query-pagination a, .wp-block-query-pagination a:hover, .wp-block-query-pagination a:active {
text-decoration:none;
}

.wp-block-query-pagination a:hover, .wp-block-query-pagination a:active {
background-color: var(--wp--custom--color--link);
color: var(--wp--preset--color--white);
}
.wp-block-query-pagination-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next {
margin:0 !important;
}

.wp-block-query-pagination-numbers > .page-numbers {
padding: 0.75rem;
margin: 0 0.75rem;
/* background: green; */
}

.wp-block-query-pagination-numbers > .page-numbers.current {
background-color: var(--wp--preset--color--ucsc-rubine-red);
color: var(--wp--preset--color--white);
}

0 comments on commit 6c1986a

Please sign in to comment.