pagination.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. html[data-theme='dark'] {
  2. .ant-pagination.ant-pagination {
  3. &-mini {
  4. .ant-pagination-prev,
  5. .ant-pagination-next,
  6. .ant-pagination-item {
  7. background-color: 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-color: @primary-color !important;
  17. background: fade(#2a50ed, 85) !important;
  18. border: none;
  19. border-radius: none !important;
  20. a {
  21. color: @white !important;
  22. }
  23. }
  24. }
  25. .ant-select-status-error {
  26. .ant-select-selector {
  27. border-color: #424242 !important;
  28. }
  29. }
  30. }
  31. }
  32. .ant-pagination.ant-pagination {
  33. &-mini {
  34. .ant-pagination-prev,
  35. .ant-pagination-next {
  36. font-size: 12px;
  37. color: @text-color-base;
  38. border: 1px solid;
  39. }
  40. .ant-pagination-prev:hover,
  41. .ant-pagination-next:hover,
  42. .ant-pagination-item:focus,
  43. .ant-pagination-item:hover {
  44. a {
  45. color: @primary-color;
  46. }
  47. }
  48. .ant-pagination-prev,
  49. .ant-pagination-next,
  50. .ant-pagination-item {
  51. margin: 0 4px !important;
  52. background-color: #f4f4f5 !important;
  53. border: none;
  54. border-radius: 4px !important;
  55. a {
  56. margin-top: 1px;
  57. color: #606266;
  58. }
  59. &:last-child {
  60. margin-right: 0 !important;
  61. }
  62. }
  63. .ant-pagination-item-active {
  64. background-color: @primary-color !important;
  65. border: none;
  66. border-radius: none !important;
  67. a {
  68. color: @white !important;
  69. }
  70. }
  71. .ant-pagination-options {
  72. margin-left: 12px;
  73. }
  74. .ant-pagination-options-quick-jumper input {
  75. height: 22px;
  76. margin: 0 6px;
  77. line-height: 22px;
  78. text-align: center;
  79. }
  80. .ant-select-arrow {
  81. color: @border-color-shallow-dark;
  82. }
  83. }
  84. .ant-select.ant-select-in-form-item {
  85. width: auto;
  86. }
  87. &-disabled {
  88. display: none !important;
  89. }
  90. .ant-select-status-error {
  91. .ant-select-selector {
  92. border-color: @border-color-base !important;
  93. }
  94. }
  95. .ant-select-focused.ant-select-status-error {
  96. .ant-select-selector {
  97. box-shadow: 0 0 0 2px fade(@border-color-base, 10%) !important;
  98. }
  99. }
  100. }