.pagination-outer{ text-align: center; } .pagination{ font-family: 'Poppins', sans-serif; display: inline-flex; position: relative; } .pagination li a.page-link{ color: #fff; background-color: #333; font-size: 18px; font-weight: 500; line-height: 35px; height: 35px; width: 35px; padding: 0; margin: 0 8px; border-radius: 50%; border: none; position: relative; z-index: 1; transition: all 0.3s ease 0s; } .pagination li:first-child a.page-link, .pagination li:last-child a.page-link{ font-size: 35px; line-height: 31px; font-weight: 300; } .pagination li a.page-link:hover, .pagination li a.page-link:focus, .pagination li.active a.page-link:hover, .pagination li.active a.page-link{ color: #fff; background-color: #92bb40; text-shadow: 0 0 5px rgba(0,0,0,0.5); } .pagination li a.page-link:before, .pagination li a.page-link:after{ content: ''; height: 100%; width: 100%; border: 5px dashed #92bb40; opacity: 0; position: absolute; left: 0; top: 0; z-index: -1; transition: all 0.4s ease 0s; } .pagination li a.page-link:hover:before, .pagination li a.page-link:focus:before, .pagination li.active a.page-link:hover:before, .pagination li.active a.page-link:before{ opacity: 1; transform: rotate(20deg); } .pagination li a.page-link:hover:after, .pagination li a.page-link:focus:after, .pagination li.active a.page-link:hover:after, .pagination li.active a.page-link:after{ opacity: 1; transform: rotate(-20deg); } @media only screen and (max-width: 480px){ .pagination{ font-size: 0; display: inline-block; } .pagination li{ display: inline-block; vertical-align: top; margin: 10px 0; } }