Skip to content

Commit

Permalink
make pagination styles theme wide
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Mar 29, 2022
1 parent c8b4d2d commit 4e0d33d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pendant/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ <h1 class="alignwide">Articles</h1>
<!-- /wp:separator -->

<!-- wp:query-pagination {"style":{"elements":{"link":{"color":{"text":"var:preset|color|foreground"}}}},"layout":{"type":"flex","justifyContent":"space-between"}} -->
<!-- wp:query-pagination-previous {"style":{"typography":{"fontStyle":"normal","fontWeight":"500"}},"fontSize":"small"} /-->
<!-- wp:query-pagination-previous /-->

<!-- wp:query-pagination-numbers /-->

<!-- wp:query-pagination-next {"style":{"typography":{"textTransform":"uppercase","fontStyle":"normal","fontWeight":"500"}},"fontSize":"small"} /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination --></div>
<!-- /wp:group --></main>
<!-- /wp:query -->
Expand Down
21 changes: 21 additions & 0 deletions pendant/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,27 @@
}
}
},
"core/query-pagination-next":{
"typography": {
"fontWeight": "500",
"textTransform": "uppercase",
"fontSize": "var(--wp--preset--font-size--small)"

}
},
"core/query-pagination-numbers":{
"typography": {
"fontWeight": "500",
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/query-pagination-previous":{
"typography": {
"fontWeight": "500",
"textTransform": "uppercase",
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"core/read-more": {
"color": {
"text": "var(--wp--preset--color--foreground)"
Expand Down

0 comments on commit 4e0d33d

Please sign in to comment.