pagination.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .m-pagination{
  2. white-space: nowrap;
  3. padding: 2px 5px;
  4. color: #303133;
  5. font-weight: 700;
  6. .m-pagination__total{
  7. display: inline-block;
  8. font-size: 13px;
  9. min-width: 35.5px;
  10. height: 28px;
  11. line-height: 28px;
  12. vertical-align: top;
  13. box-sizing: border-box;
  14. font-weight: 400;
  15. margin-right: 10px;
  16. }
  17. .m-pagination__sizes{
  18. display: inline-block;
  19. width: 100px;
  20. height: 29px;
  21. font-size: 14px;
  22. font-weight: 400;
  23. margin-right: 10px;
  24. color: #ccc;
  25. .m-pagination-select{
  26. width: 100%;
  27. height: 100%;
  28. }
  29. }
  30. .m-pagination__jump{
  31. display: inline-block;
  32. font-size: 13px;
  33. min-width: 35.5px;
  34. height: 28px;
  35. line-height: 28px;
  36. vertical-align: top;
  37. box-sizing: border-box;
  38. margin-left: 10px;
  39. font-weight: 400;
  40. color: #606266;
  41. input{
  42. display: inline-block;
  43. width: 50px;
  44. height: 28px;
  45. line-height: 1;
  46. font-size: 12px;
  47. outline:none;
  48. border: 1px solid #d7dde4;
  49. color: #657180;
  50. background-color: transparent;
  51. cursor: text;
  52. border-radius: 4px;
  53. padding: 0 5px;
  54. margin: 0 2px;
  55. box-sizing: border-box;
  56. text-align: center;
  57. &:focus{
  58. border-color: #409eff;
  59. }
  60. }
  61. }
  62. button{
  63. display: inline-block;
  64. font-size: 13px;
  65. min-width: 35.5px;
  66. height: 28px;
  67. line-height: 28px;
  68. vertical-align: top;
  69. box-sizing: border-box;
  70. border: none;
  71. padding: 0 6px;
  72. background: #fff;
  73. cursor: pointer;
  74. &:hover{
  75. color: #409eff;
  76. }
  77. }
  78. .is-disabled{
  79. cursor: no-drop;
  80. color: #c0c4cc;
  81. }
  82. .m-pager{
  83. user-select: none;
  84. list-style: none;
  85. display: inline-block;
  86. vertical-align: top;
  87. font-size: 0;
  88. padding: 0;
  89. margin: 0;
  90. li{
  91. padding: 0 4px;
  92. background: #fff;
  93. vertical-align: top;
  94. display: inline-block;
  95. font-size: 13px;
  96. min-width: 35.5px;
  97. height: 28px;
  98. line-height: 28px;
  99. cursor: pointer;
  100. box-sizing: border-box;
  101. text-align: center;
  102. margin: 0;
  103. &:hover{
  104. color: #409eff;
  105. }
  106. &.active{
  107. color: #409eff;
  108. }
  109. }
  110. .m-icon-more{
  111. i{
  112. letter-spacing: 1px;
  113. font-size: 16px;
  114. color: #000;
  115. &.icon-arrow-double-left{
  116. color: #409eff;
  117. }
  118. &.icon-arrow-double-right{
  119. color: #409eff;
  120. }
  121. }
  122. }
  123. }
  124. .select-size{
  125. display: inline-block;
  126. font-size: 13px;
  127. width: 100px;
  128. height: 28px;
  129. line-height: 28px;
  130. vertical-align: top;
  131. box-sizing: border-box;
  132. input{
  133. padding: 0px 25px 0 8px !important;
  134. }
  135. }
  136. }
  137. // 背景色
  138. .is-background{
  139. .btn-prev,
  140. .btn-next{
  141. margin: 0 5px;
  142. background-color: #f4f4f5;
  143. color: #606266;
  144. min-width: 30px;
  145. border-radius: 2px;
  146. }
  147. .m-pager{
  148. li{
  149. margin: 0 5px;
  150. background-color: #f4f4f5;
  151. color: #606266;
  152. min-width: 30px;
  153. border-radius: 2px;
  154. &.active{
  155. color: #fff;
  156. background: #409eff;
  157. }
  158. }
  159. }
  160. }
  161. .is-small{
  162. .m-pagination__total,
  163. .m-pagination__sizes,
  164. .m-pagination__jump {
  165. font-size: 12px;
  166. height: 24px;
  167. line-height: 24px;
  168. }
  169. .m-pagination__jump{
  170. input{
  171. height: 100%;
  172. }
  173. }
  174. .btn-prev,
  175. .btn-next{
  176. line-height: 24px;
  177. height: 24px;
  178. min-width: 24px;
  179. }
  180. .m-pager{
  181. li{
  182. border-color: transparent;
  183. line-height: 24px;
  184. height: 24px;
  185. min-width: 24px;
  186. }
  187. }
  188. }