_pagination.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. .pagination {
  2. border-radius: 0.25rem;
  3. margin: 2rem 1rem;
  4. padding: 0.5rem 0;
  5. @include flexbox();
  6. @include align-items(center);
  7. @include justify-content(center);
  8. li {
  9. border-radius: 0.25rem;
  10. &.disabled {
  11. a {
  12. @include on-event {
  13. @include themify($themes) {
  14. color: themed('pagination-number-color');
  15. text-decoration: none;
  16. }
  17. }
  18. }
  19. }
  20. &.active {
  21. font-weight: bold;
  22. a {
  23. @include themify($themes) {
  24. color: themed('link-hover');
  25. border-bottom: 5px solid themed('pagination-number-color');
  26. }
  27. }
  28. }
  29. }
  30. a {
  31. font-size: 1.25rem;
  32. padding: 0.5rem 0.75rem;
  33. @include themify($themes) {
  34. color: themed('pagination-number-color');
  35. @include on-event {
  36. color: themed('link-hover');
  37. }
  38. }
  39. }
  40. }
  41. .pagination-single {
  42. margin: 1rem 0;
  43. padding-top: 0.75rem;
  44. @include flexbox();
  45. @include align-items(center);
  46. @include justify-content(center);
  47. @include flex-wrap(wrap);
  48. &__left,
  49. &__right {
  50. padding: 0.25rem;
  51. border-radius: 0.125rem;
  52. @include truncate($grid-body-width);
  53. @include flexbox();
  54. @include align-items(center);
  55. @include justify-content(center);
  56. @include themify($themes) {
  57. color: themed('pagination-color');
  58. }
  59. &-title {
  60. font-size: 16.8px;
  61. @include truncate($grid-body-width);
  62. }
  63. }
  64. &__left {
  65. @include on-event {
  66. }
  67. }
  68. &__right {
  69. @include on-event {
  70. }
  71. }
  72. &__icon {
  73. border-radius: 100%;
  74. margin: 0 0.5rem;
  75. color: inherit;
  76. svg {
  77. display: block;
  78. margin: auto;
  79. }
  80. }
  81. }