2c324a7cfbd1aa0911541677c10273c201f838ac46614e5902ecef4280de3531361ea8537366fb413a1cf35063cad43a1d0eaa457891409ef75179d9a96ea6 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. @import "mixins/mixins";
  2. @import "mixins/utils";
  3. @import "common/var";
  4. @import "select";
  5. @include b(pagination) {
  6. white-space: nowrap;
  7. padding: 2px 5px;
  8. color: $--pagination-font-color;
  9. font-weight: bold;
  10. @include utils-clearfix;
  11. span:not([class*=suffix]),
  12. button {
  13. display: inline-block;
  14. font-size: $--pagination-font-size;
  15. min-width: $--pagination-button-width;
  16. height: $--pagination-button-height;
  17. line-height: $--pagination-button-height;
  18. vertical-align: top;
  19. box-sizing: border-box;
  20. }
  21. .el-input__inner {
  22. text-align: center;
  23. -moz-appearance: textfield;
  24. line-height: normal;
  25. }
  26. // pagesize 的下拉 icon
  27. .el-input__suffix {
  28. right: 0;
  29. transform: scale(.8);
  30. }
  31. .el-select .el-input {
  32. width: 100px;
  33. margin: 0 5px;
  34. .el-input__inner {
  35. padding-right: 25px;
  36. border-radius: $--pagination-border-radius;
  37. }
  38. }
  39. button {
  40. border: none;
  41. padding: 0 6px;
  42. background: transparent;
  43. &:focus {
  44. outline: none;
  45. }
  46. &:hover {
  47. color: $--pagination-hover-color;
  48. }
  49. &:disabled {
  50. color: $--pagination-button-disabled-color;
  51. background-color: $--pagination-button-disabled-background-color;
  52. cursor: not-allowed;
  53. }
  54. }
  55. .btn-prev,
  56. .btn-next {
  57. background: center center no-repeat;
  58. background-size: 16px;
  59. background-color: $--pagination-background-color;
  60. cursor: pointer;
  61. margin: 0;
  62. color: $--pagination-button-color;
  63. .el-icon {
  64. display: block;
  65. font-size: 12px;
  66. font-weight: bold;
  67. }
  68. }
  69. .btn-prev {
  70. padding-right: 12px;
  71. }
  72. .btn-next {
  73. padding-left: 12px;
  74. }
  75. .el-pager li.disabled {
  76. color: $--color-text-placeholder;
  77. cursor: not-allowed;
  78. }
  79. @include m(small) {
  80. .btn-prev,
  81. .btn-next,
  82. .el-pager li,
  83. .el-pager li.btn-quicknext,
  84. .el-pager li.btn-quickprev,
  85. .el-pager li:last-child {
  86. border-color: transparent;
  87. font-size: 12px;
  88. line-height: 22px;
  89. height: 22px;
  90. min-width: 22px;
  91. }
  92. .arrow.disabled {
  93. visibility: hidden;
  94. }
  95. .more::before,
  96. li.more::before {
  97. line-height: 24px;
  98. }
  99. span:not([class*=suffix]),
  100. button {
  101. height: 22px;
  102. line-height: 22px;
  103. }
  104. @include e(editor) {
  105. height: 22px;
  106. &.el-input .el-input__inner {
  107. height: 22px;
  108. }
  109. }
  110. }
  111. @include e(sizes) {
  112. margin: 0 10px 0 0;
  113. font-weight: normal;
  114. color: $--color-text-regular;
  115. .el-input .el-input__inner {
  116. font-size: $--pagination-font-size;
  117. padding-left: 8px;
  118. &:hover {
  119. border-color: $--pagination-hover-color;
  120. }
  121. }
  122. }
  123. @include e(total) {
  124. margin-right: 10px;
  125. font-weight: normal;
  126. color: $--color-text-regular;
  127. }
  128. @include e(jump) {
  129. margin-left: 24px;
  130. font-weight: normal;
  131. color: $--color-text-regular;
  132. .el-input__inner {
  133. padding: 0 3px;
  134. }
  135. }
  136. @include e(rightwrapper) {
  137. float: right;
  138. }
  139. @include e(editor) {
  140. line-height: 18px;
  141. padding: 0 2px;
  142. height: $--pagination-button-height;
  143. text-align: center;
  144. margin: 0 2px;
  145. box-sizing: border-box;
  146. border-radius: $--pagination-border-radius;
  147. &.el-input {
  148. width: 50px;
  149. }
  150. &.el-input .el-input__inner {
  151. height: $--pagination-button-height;
  152. }
  153. .el-input__inner::-webkit-inner-spin-button,
  154. .el-input__inner::-webkit-outer-spin-button {
  155. -webkit-appearance: none;
  156. margin: 0;
  157. }
  158. }
  159. @include when(background) {
  160. .btn-prev,
  161. .btn-next,
  162. .el-pager li {
  163. margin: 0 5px;
  164. background-color: $--color-info-lighter;
  165. color: $--color-text-regular;
  166. min-width: 30px;
  167. border-radius: 2px;
  168. &.disabled {
  169. color: $--color-text-placeholder;
  170. }
  171. }
  172. .btn-prev, .btn-next {
  173. padding: 0;
  174. &:disabled {
  175. color: $--color-text-placeholder;
  176. }
  177. }
  178. .el-pager li:not(.disabled) {
  179. &:hover {
  180. color: $--pagination-hover-color;
  181. }
  182. &.active {
  183. background-color: $--color-primary;
  184. color: $--color-white;
  185. }
  186. }
  187. &.el-pagination--small {
  188. .btn-prev,
  189. .btn-next,
  190. .el-pager li {
  191. margin: 0 3px;
  192. min-width: 22px;
  193. }
  194. }
  195. }
  196. }
  197. @include b(pager) {
  198. user-select: none;
  199. list-style: none;
  200. display: inline-block;
  201. vertical-align: top;
  202. font-size: 0;
  203. padding: 0;
  204. margin: 0;
  205. .more::before {
  206. line-height: 30px;
  207. }
  208. li {
  209. padding: 0 4px;
  210. background: $--pagination-background-color;
  211. vertical-align: top;
  212. display: inline-block;
  213. font-size: $--pagination-font-size;
  214. min-width: $--pagination-button-width;
  215. height: $--pagination-button-height;
  216. line-height: $--pagination-button-height;
  217. cursor: pointer;
  218. box-sizing: border-box;
  219. text-align: center;
  220. margin: 0;
  221. &.btn-quicknext,
  222. &.btn-quickprev {
  223. line-height: 28px;
  224. color: $--pagination-button-color;
  225. &.disabled {
  226. color: $--color-text-placeholder;
  227. }
  228. }
  229. &.btn-quickprev:hover {
  230. cursor: pointer;
  231. }
  232. &.btn-quicknext:hover {
  233. cursor: pointer;
  234. }
  235. &.active + li {
  236. border-left: 0;
  237. }
  238. &:hover {
  239. color: $--pagination-hover-color;
  240. }
  241. &.active {
  242. color: $--pagination-hover-color;
  243. cursor: default;
  244. }
  245. }
  246. }