.pagination { .page-item:not(:first-child) { margin-left: 0.4rem; } .page-item:first-child:not(.active), .page-item:last-child:not(.active), .page-item.disabled { .page-link { background: lighten($primary-50, 10%); } } .page-link { border-radius: $border-radius; border-width: 0px; &:hover { background-color: $primary-500 !important; color: $white; } } &.pagination-xs { .page-link { padding: 0.2rem 0.5rem; font-size: rem($fs-xs) } } }