_ui.paging.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. @charset "utf-8";
  2. /*
  3. * @file: 分页导航基础UI组件
  4. * @update: 2015-06-03 16:25:44
  5. */
  6. /*
  7. * 默认分页导航
  8. * @base
  9. */
  10. $paging-num-color: #666; // 分页码字体颜色
  11. .ui-paging {
  12. vertical-align: middle;
  13. zoom: 1;
  14. font-size: 0; /* 所有浏览器 */
  15. *word-spacing: -1px; /* IE6/7 */
  16. }
  17. @media (-webkit-min-device-pixel-ratio:0) {
  18. .ui-paging {
  19. letter-spacing: -5px; /* Safari 5- 等不支持 font-size: 0 的浏览器*/
  20. }
  21. }
  22. .ui-paging {
  23. .ui-paging__item,
  24. .ui-paging__info,
  25. .ui-paging__which,
  26. .ui-paging__ellipsis {
  27. font-size: 12px;
  28. letter-spacing: normal;
  29. word-spacing: normal;
  30. }
  31. }
  32. .ui-paging__item {
  33. @include inline-block;
  34. padding: 5px 8px;
  35. margin-right: 10px;
  36. line-height: 1;
  37. border-radius: 3px;
  38. color: $paging-num-color;
  39. border: 1px solid #fff;
  40. /* ===状态类(当前)=== */
  41. &.is-current {
  42. color: $primary-text-color;
  43. background-color: $primary-color;
  44. border-color: $primary-color;
  45. &:hover {
  46. background-color: $primary-color;
  47. border-color: $primary-color;
  48. }
  49. }
  50. /* ===状态类(禁用)=== */
  51. &.is-disabled {
  52. filter: none;
  53. cursor: default;
  54. }
  55. }
  56. a.ui-paging__item {
  57. &:hover {
  58. text-decoration: none;
  59. color: $paging-num-color;
  60. background-color: $heading-bg-color;
  61. border-color: $heading-bg-color;
  62. }
  63. }
  64. .ui-paging__ellipsis,
  65. .ui-paging__info {
  66. margin-right: 10px;
  67. }
  68. .ui-paging__info {
  69. @include inline-block;
  70. }
  71. .ui-paging__which {
  72. width: 22px;
  73. height: 20px;
  74. line-height: 20px;
  75. padding: 0 6px;
  76. margin-right: 10px;
  77. border: 1px solid #ccc;
  78. vertical-align: middle;
  79. text-align: center;
  80. }
  81. /*
  82. * 完整型分页导航
  83. * @extend: primary
  84. */
  85. .ui-paging {
  86. &.ext-full {
  87. .ui-paging__item {
  88. background-color: $heading-bg-color;
  89. border-color: $heading-bg-color;
  90. &.is-current {
  91. color: $primary-text-color;
  92. background-color: $primary-color;
  93. border-color: $primary-color;
  94. }
  95. &.is-disabled {
  96. color: $disabled-text-color;
  97. background-color: $disabled-bg-color;
  98. border-color: $disabled-bg-color;
  99. }
  100. }
  101. a.ui-paging__item {
  102. &:hover {
  103. color: $primary-text-color;
  104. background-color: $primary-color;
  105. border-color: $primary-color;
  106. }
  107. }
  108. }
  109. }