pagination.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. html[data-theme='dark'] {
  2. .ant-pagination {
  3. &.mini {
  4. .ant-pagination-prev,
  5. .ant-pagination-next,
  6. .ant-pagination-item {
  7. background: rgb(255 255 255 / 4%) !important;
  8. a {
  9. color: #8b949e !important;
  10. }
  11. }
  12. .ant-select-arrow {
  13. color: @text-color-secondary !important;
  14. }
  15. .ant-pagination-item-active {
  16. background: @primary-color !important;
  17. border: none;
  18. border-radius: none !important;
  19. a {
  20. color: @white !important;
  21. }
  22. }
  23. }
  24. }
  25. }
  26. .ant-pagination {
  27. &.mini {
  28. .ant-pagination-prev,
  29. .ant-pagination-next {
  30. font-size: 12px;
  31. color: @text-color-base;
  32. border: 1px solid;
  33. }
  34. .ant-pagination-prev:hover,
  35. .ant-pagination-next:hover,
  36. .ant-pagination-item:focus,
  37. .ant-pagination-item:hover {
  38. a {
  39. color: @primary-color;
  40. }
  41. }
  42. .ant-pagination-prev,
  43. .ant-pagination-next,
  44. .ant-pagination-item {
  45. margin: 0 4px !important;
  46. background: #f4f4f5 !important;
  47. border: none;
  48. border-radius: none !important;
  49. a {
  50. margin-top: 1px;
  51. color: #606266;
  52. }
  53. &:last-child {
  54. margin-right: 0 !important;
  55. }
  56. }
  57. .ant-pagination-item-active {
  58. background: @primary-color !important;
  59. border: none;
  60. border-radius: none !important;
  61. a {
  62. color: @white !important;
  63. }
  64. }
  65. .ant-pagination-options {
  66. margin-left: 12px;
  67. }
  68. .ant-pagination-options-quick-jumper input {
  69. height: 22px;
  70. margin: 0 6px;
  71. line-height: 22px;
  72. text-align: center;
  73. }
  74. .ant-select-arrow {
  75. color: @border-color-shallow-dark;
  76. }
  77. }
  78. &-disabled {
  79. display: none !important;
  80. }
  81. }