pagination.less 1.8 KB
Newer Older
V
Vben 已提交
1 2 3 4 5 6
html[data-theme='dark'] {
  .ant-pagination {
    &.mini {
      .ant-pagination-prev,
      .ant-pagination-next,
      .ant-pagination-item {
V
Vben 已提交
7
        background-color: rgb(255 255 255 / 4%) !important;
V
Vben 已提交
8 9 10 11 12 13 14 15 16 17 18

        a {
          color: #8b949e !important;
        }
      }

      .ant-select-arrow {
        color: @text-color-secondary !important;
      }

      .ant-pagination-item-active {
V
Vben 已提交
19
        background-color: @primary-color !important;
V
Vben 已提交
20 21 22 23 24 25 26 27 28 29 30
        border: none;
        border-radius: none !important;

        a {
          color: @white !important;
        }
      }
    }
  }
}

陈文彬 已提交
31 32 33 34
.ant-pagination {
  &.mini {
    .ant-pagination-prev,
    .ant-pagination-next {
V
vben 已提交
35 36
      font-size: 12px;
      color: @text-color-base;
陈文彬 已提交
37 38
      border: 1px solid;
    }
陈文彬 已提交
39

陈文彬 已提交
40 41 42 43
    .ant-pagination-prev:hover,
    .ant-pagination-next:hover,
    .ant-pagination-item:focus,
    .ant-pagination-item:hover {
V
vben 已提交
44 45 46
      a {
        color: @primary-color;
      }
陈文彬 已提交
47
    }
陈文彬 已提交
48

V
vben 已提交
49 50
    .ant-pagination-prev,
    .ant-pagination-next,
陈文彬 已提交
51
    .ant-pagination-item {
V
vben 已提交
52
      margin: 0 4px !important;
V
Vben 已提交
53
      background-color: #f4f4f5 !important;
V
vben 已提交
54 55 56 57 58 59 60
      border: none;
      border-radius: none !important;

      a {
        margin-top: 1px;
        color: #606266;
      }
陈文彬 已提交
61

陈文彬 已提交
62 63
      &:last-child {
        margin-right: 0 !important;
陈文彬 已提交
64
      }
陈文彬 已提交
65
    }
陈文彬 已提交
66

陈文彬 已提交
67
    .ant-pagination-item-active {
V
Vben 已提交
68
      background-color: @primary-color !important;
V
vben 已提交
69 70
      border: none;
      border-radius: none !important;
陈文彬 已提交
71

陈文彬 已提交
72
      a {
V
vben 已提交
73
        color: @white !important;
陈文彬 已提交
74
      }
陈文彬 已提交
75
    }
陈文彬 已提交
76

陈文彬 已提交
77
    .ant-pagination-options {
V
vben 已提交
78
      margin-left: 12px;
陈文彬 已提交
79
    }
陈文彬 已提交
80

陈文彬 已提交
81
    .ant-pagination-options-quick-jumper input {
V
vben 已提交
82
      height: 22px;
陈文彬 已提交
83
      margin: 0 6px;
V
vben 已提交
84
      line-height: 22px;
陈文彬 已提交
85 86
      text-align: center;
    }
陈文彬 已提交
87

陈文彬 已提交
88 89
    .ant-select-arrow {
      color: @border-color-shallow-dark;
陈文彬 已提交
90 91
    }
  }
陈文彬 已提交
92 93

  &-disabled {
V
vben 已提交
94
    display: none !important;
陈文彬 已提交
95
  }
陈文彬 已提交
96
}