| 1 | .pagination { |
| 2 | display: flex; |
| 3 | flex-wrap: wrap; |
| 4 | justify-content: center; |
| 5 | align-items: center; |
| 6 | gap: 0.5rem; |
| 7 | margin: 2rem 0; |
| 8 | } |
| 9 | |
| 10 | .page-link, .page-current, .page-ellipsis { |
| 11 | display: flex; |
| 12 | align-items: center; |
| 13 | justify-content: center; |
| 14 | min-width: 2.5rem; |
| 15 | height: 2.5rem; |
| 16 | padding: 0 0.5rem; |
| 17 | border-radius: 4px; |
| 18 | text-align: center; |
| 19 | } |
| 20 | |
| 21 | .page-link { |
| 22 | background: #c016c6; |
| 23 | color: #232023; |
| 24 | text-decoration: none; |
| 25 | transition: background 0.4s, transform 0.2s; |
| 26 | } |
| 27 | |
| 28 | .page-link:hover { |
| 29 | background: #ea79d8; |
| 30 | transform: translateY(-2px); |
| 31 | } |
| 32 | |
| 33 | .page-current { |
| 34 | background: #443b44; |
| 35 | color: #fcfcfc; |
| 36 | font-weight: bold; |
| 37 | } |
| 38 | |
| 39 | .page-ellipsis { |
| 40 | color: #c016c6; |
| 41 | } |
| 42 | |
| 43 | @media screen and (max-width: 768px) { |
| 44 | .pagination { |
| 45 | gap: 0.4rem; |
| 46 | } |
| 47 | |
| 48 | .page-link, .page-current, .page-ellipsis { |
| 49 | min-width: 2.2rem; |
| 50 | height: 2.2rem; |
| 51 | font-size: 0.9rem; |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | @media screen and (max-width: 480px) { |
| 56 | .pagination { |
| 57 | gap: 0.3rem; |
| 58 | } |
| 59 | |
| 60 | .page-link, .page-current, .page-ellipsis { |
| 61 | min-width: 1.8rem; |
| 62 | height: 1.8rem; |
| 63 | font-size: 0.8rem; |
| 64 | padding: 0 0.3rem; |
| 65 | } |
| 66 | } |