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