diff --git a/index.php b/index.php
index 88fc401..87541f2 100644
--- a/index.php
+++ b/index.php
@@ -16,6 +16,14 @@ if ( hasSidebar() ) {
$classes = 'container my-section lg:my-0 mx-auto';
}
+ob_start();
+get_template_part( 'views/icons/prev' );
+$pagination_prev_icon = ob_get_clean();
+
+ob_start();
+get_template_part( 'views/icons/next' );
+$pagination_next_icon = ob_get_clean();
+
get_header();
?>
@@ -64,8 +72,8 @@ get_header();
the_posts_pagination(
array(
'mid_size' => 2,
- 'prev_text' => '« Previous',
- 'next_text' => 'Next »',
+ 'prev_text' => $pagination_prev_icon . '' . esc_html__( 'Previous', 'cwc' ) . '',
+ 'next_text' => $pagination_next_icon . '' . esc_html__( 'Next', 'cwc' ) . '',
)
);
?>
diff --git a/styles/components/pagination.css b/styles/components/pagination.css
index e5cd5e0..1440982 100644
--- a/styles/components/pagination.css
+++ b/styles/components/pagination.css
@@ -1,35 +1,29 @@
/* Post index pagination styles */
.pagination {
- .nav-links {
- @apply hidden md:flex items-center justify-center mt-12;
+ .nav-links {
+ @apply hidden md:flex items-center justify-center mt-12;
- .page-numbers {
- @apply hidden md:flex items-center justify-center h-10 p-4 text-base font-medium transition duration-300 rounded stroke-primary text-primary hover:bg-info hover:text-light hover:stroke-info focus-visible:bg-info focus-visible:text-light focus-visible:stroke-info focus-visible:outline-none;
+ .page-numbers {
+ @apply hidden md:flex items-center justify-center h-16 w-16 text-32px font-quincy font-medium transition duration-300 rounded stroke-primary text-primary hover:bg-info hover:text-light hover:stroke-info focus-visible:bg-info focus-visible:text-light focus-visible:stroke-info focus-visible:outline-none;
+ }
+
+ .page-numbers.current { @apply text-light whitespace-nowrap bg-info ring-offset-2 hover:bg-primary hover:stroke-primary focus-visible:bg-info; }
+
+ .prev, .next { @apply flex gap-4 w-fit; }
}
- .page-numbers.current {
- @apply text-light whitespace-nowrap bg-info ring-offset-2 hover:bg-primary hover:stroke-primary focus-visible:bg-info;
+ & a, & span {
+ border-radius: 4px;
+ color: var(--color-cwc-blue-01) !important;
+ margin: 0 5px;
+ padding: .25rem .5rem;
+ text-decoration: none;
}
- .prev, .next {
- @apply flex gap-4;
+ & .current, & a:hover {
+ background: color-mix(in oklch, var(--color-cwc-blue-03), white 50%) !important;
+ color: var(--color-cwc-blue-01) !important;
+ padding: .25rem .5rem;
}
- }
-
- & a, & span {
- border: 1px solid #ddd;
- border-radius: 4px;
- color: #3857BC !important;
- margin: 0 5px;
- padding: .25rem .5rem;
- text-decoration: none;
- }
-
- & .current, & a:hover {
- background: #3857BC !important;
- border-color: #3857BC !important;
- color: #fff !important;
- padding: .25rem .5rem;
- }
}
diff --git a/views/icons/next.php b/views/icons/next.php
new file mode 100644
index 0000000..e8d70bd
--- /dev/null
+++ b/views/icons/next.php
@@ -0,0 +1,4 @@
+
diff --git a/views/icons/prev.php b/views/icons/prev.php
new file mode 100644
index 0000000..e2cc2ab
--- /dev/null
+++ b/views/icons/prev.php
@@ -0,0 +1,4 @@
+