diff --git a/app/javascript/stylesheets/application.scss b/app/javascript/stylesheets/application.scss index add2ff0..21f86c8 100644 --- a/app/javascript/stylesheets/application.scss +++ b/app/javascript/stylesheets/application.scss @@ -16,4 +16,28 @@ .nav-tab { @apply text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium; } + + .paginate-page { + @apply relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50; + } + + .paginate-prev-page, + .paginate-next-page, + .paginate-first-page, + .paginate-last-page, { + @apply px-2 + } + .paginate-page--current { + @apply bg-gray-100; + } + .paginate-first-page { + @apply rounded-l-md; + } + .paginate-last-page { + @apply rounded-r-md; + } + .paginate-page-single { + @apply rounded-md text-gray-700 hover:text-gray-500; + } + } diff --git a/app/views/emails/_list.html.erb b/app/views/emails/_list.html.erb index 6f06d5f..bf97d97 100644 --- a/app/views/emails/_list.html.erb +++ b/app/views/emails/_list.html.erb @@ -17,8 +17,8 @@
- <%= link_to_previous_page @emails, 'Previous page', class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:text-gray-500" %> - <%= link_to_next_page @emails, 'Next Page', class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:text-gray-500" %> + <%= link_to_previous_page @emails, 'Previous page', class: "ml-3 paginate-page paginate-page-single" %> + <%= link_to_next_page @emails, 'Next Page', class: "paginate-page paginate-page-single" %>