.pagination-outer{ text-align: center; } .pagination{ font-family: 'Poppins', sans-serif; display: inline-flex; position: relative; } .pagination li a.page-link{ color: #000; background: repeating-linear-gradient(#7a54f2,#7a54f2 2px,#fff 2px, #fff 4px); font-size: 17px; font-weight: 600; text-align: center; line-height: 36px; height: 35px; width: 35px; padding: 0; margin: 0 4px; border: none; border-radius: 0; display: block; position: relative; z-index: 0; transition: all 0.1s ease 0s; } .pagination li:first-child a.page-link, .pagination li:last-child a.page-link{ font-size: 30px; line-height: 32.5px; } .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: #7a54f2; } .pagination li a.page-link:before{ content: ''; background: #fff; opacity: 0.8; position: absolute; left: 0; bottom: 0; right: 0; top: 0; z-index: -1; transition: all 0.3s 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{ border-radius: 50%; opacity: 1; transform: scale(0.7); } @media only screen and (max-width: 480px){ .pagination{ font-size: 0; display: inline-block; } .pagination li{ display: inline-block; vertical-align: top; margin: 0 0 15px; } }