| 1 |
.btd-pagination-wrapper { |
| 2 |
display: flex; |
| 3 |
align-items: center; |
| 4 |
justify-content: space-between; |
| 5 |
margin-top: 10px; |
| 6 |
$pagination-prefix-cls: rc-pagination; |
| 7 |
|
| 8 |
.btd-groups{ |
| 9 |
display: flex; |
| 10 |
justify-content: space-around; |
| 11 |
gap: 10px; |
| 12 |
} |
| 13 |
|
| 14 |
.#{$pagination-prefix-cls} { |
| 15 |
display: flex; |
| 16 |
> *:not(:last-child) { |
| 17 |
margin-right: 5px; |
| 18 |
} |
| 19 |
&:after { |
| 20 |
display: block; |
| 21 |
clear: both; |
| 22 |
height: 0; |
| 23 |
overflow: hidden; |
| 24 |
visibility: hidden; |
| 25 |
content: ""; |
| 26 |
} |
| 27 |
&-total-text { |
| 28 |
display: flex; |
| 29 |
align-items: center; |
| 30 |
justify-content: center; |
| 31 |
height: 24px; |
| 32 |
} |
| 33 |
&-item { |
| 34 |
display: flex; |
| 35 |
min-width: 30px; |
| 36 |
height: 30px; |
| 37 |
font-size: 14px; |
| 38 |
font-weight: 500; |
| 39 |
color: var(--text-color-900); |
| 40 |
cursor: pointer; |
| 41 |
user-select: none; |
| 42 |
border-radius: 3px; |
| 43 |
padding: 5px; |
| 44 |
box-sizing: border-box; |
| 45 |
background: var(--base-background); |
| 46 |
border: 1px solid var(--text-color-150); |
| 47 |
transition: none; |
| 48 |
button, |
| 49 |
a { |
| 50 |
display: inline-flex; |
| 51 |
justify-content: center; |
| 52 |
align-items: center; |
| 53 |
width: 100%; |
| 54 |
color: var(--text-color-900); |
| 55 |
transition: none; |
| 56 |
} |
| 57 |
&:focus, |
| 58 |
&-active, |
| 59 |
&:hover { |
| 60 |
background: var(--base-color-700); |
| 61 |
border-color: var(--base-color-700); |
| 62 |
a { |
| 63 |
color: #fff; |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
&-jump-prev, |
| 69 |
&-jump-next { |
| 70 |
cursor: pointer; |
| 71 |
border-radius: 3px; |
| 72 |
user-select: none; |
| 73 |
background: transparent; |
| 74 |
border: 1px solid transparent; |
| 75 |
transition: none; |
| 76 |
.#{$pagination-prefix-cls}-item-link, |
| 77 |
button { |
| 78 |
background: none; |
| 79 |
border-color: transparent; |
| 80 |
cursor: pointer; |
| 81 |
&:after { |
| 82 |
display: block; |
| 83 |
content: "•••"; |
| 84 |
color: var(--text-color-900); |
| 85 |
font-size: 14px; |
| 86 |
transition: none; |
| 87 |
} |
| 88 |
} |
| 89 |
&:focus, |
| 90 |
&:hover { |
| 91 |
background: var(--base-color-700); |
| 92 |
border-color: var(--base-color-700); |
| 93 |
.#{$pagination-prefix-cls}-item-link, |
| 94 |
button { |
| 95 |
&:after { |
| 96 |
color: #fff; |
| 97 |
} |
| 98 |
} |
| 99 |
} |
| 100 |
} |
| 101 |
&-prev, |
| 102 |
&-next, |
| 103 |
&-jump-prev, |
| 104 |
&-jump-next { |
| 105 |
display: flex; |
| 106 |
justify-content: center; |
| 107 |
align-items: center; |
| 108 |
min-width: 30px; |
| 109 |
height: 30px; |
| 110 |
color: var(--text-color-900); |
| 111 |
cursor: pointer; |
| 112 |
font-size: 14px; |
| 113 |
} |
| 114 |
|
| 115 |
&-prev, |
| 116 |
&-next { |
| 117 |
button { |
| 118 |
cursor: pointer; |
| 119 |
user-select: none; |
| 120 |
} |
| 121 |
.#{$pagination-prefix-cls}-item-link { |
| 122 |
height: 100%; |
| 123 |
width: 100%; |
| 124 |
display: flex; |
| 125 |
align-items: center; |
| 126 |
justify-content: center; |
| 127 |
color: var(--base-color-700); |
| 128 |
background: var(--base-background); |
| 129 |
border: 1px solid var(--text-color-150); |
| 130 |
transition: none; |
| 131 |
} |
| 132 |
&:focus .#{$pagination-prefix-cls}-item-link, |
| 133 |
&:hover .#{$pagination-prefix-cls}-item-link { |
| 134 |
border-color: var(--base-color-700); |
| 135 |
} |
| 136 |
&:focus, |
| 137 |
&-active, |
| 138 |
&:hover { |
| 139 |
&:not([aria-disabled="true"]) { |
| 140 |
background: var(--base-color-700); |
| 141 |
border-radius: 3px; |
| 142 |
color: #fff; |
| 143 |
} |
| 144 |
} |
| 145 |
} |
| 146 |
&-prev button:after { |
| 147 |
font-size: 18px; |
| 148 |
display: inline-block; |
| 149 |
} |
| 150 |
|
| 151 |
&-next button:after { |
| 152 |
font-size: 18px; |
| 153 |
display: block; |
| 154 |
} |
| 155 |
|
| 156 |
&-disabled { |
| 157 |
color: var(--text-color-200); |
| 158 |
&:hover, |
| 159 |
&:focus { |
| 160 |
cursor: not-allowed; |
| 161 |
} |
| 162 |
} |
| 163 |
|
| 164 |
&-simple &-prev, |
| 165 |
&-simple &-next { |
| 166 |
height: 30px; |
| 167 |
display: flex; |
| 168 |
align-items: center; |
| 169 |
justify-content: center; |
| 170 |
.#{$pagination-prefix-cls}-item-link { |
| 171 |
height: 24px; |
| 172 |
&::after { |
| 173 |
height: 24px; |
| 174 |
} |
| 175 |
} |
| 176 |
} |
| 177 |
} |
| 178 |
} |
| 179 |
|