No Description

pagination.less 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // Pagination (multiple pages)
  3. // --------------------------------------------------
  4. .pagination {
  5. display: inline-block;
  6. padding-left: 0;
  7. margin: @line-height-computed 0;
  8. border-radius: @border-radius-base;
  9. > li {
  10. display: inline; // Remove list-style and block-level defaults
  11. > a,
  12. > span {
  13. position: relative;
  14. float: left; // Collapse white-space
  15. padding: @padding-base-vertical @padding-base-horizontal;
  16. margin-left: -1px;
  17. line-height: @line-height-base;
  18. color: @pagination-color;
  19. text-decoration: none;
  20. background-color: @pagination-bg;
  21. border: 1px solid @pagination-border;
  22. &:hover,
  23. &:focus {
  24. z-index: 2;
  25. color: @pagination-hover-color;
  26. background-color: @pagination-hover-bg;
  27. border-color: @pagination-hover-border;
  28. }
  29. }
  30. &:first-child {
  31. > a,
  32. > span {
  33. margin-left: 0;
  34. .border-left-radius(@border-radius-base);
  35. }
  36. }
  37. &:last-child {
  38. > a,
  39. > span {
  40. .border-right-radius(@border-radius-base);
  41. }
  42. }
  43. }
  44. > .active > a,
  45. > .active > span {
  46. &,
  47. &:hover,
  48. &:focus {
  49. z-index: 3;
  50. color: @pagination-active-color;
  51. cursor: default;
  52. background-color: @pagination-active-bg;
  53. border-color: @pagination-active-border;
  54. }
  55. }
  56. > .disabled {
  57. > span,
  58. > span:hover,
  59. > span:focus,
  60. > a,
  61. > a:hover,
  62. > a:focus {
  63. color: @pagination-disabled-color;
  64. cursor: @cursor-disabled;
  65. background-color: @pagination-disabled-bg;
  66. border-color: @pagination-disabled-border;
  67. }
  68. }
  69. }
  70. // Sizing
  71. // --------------------------------------------------
  72. // Large
  73. .pagination-lg {
  74. .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
  75. }
  76. // Small
  77. .pagination-sm {
  78. .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
  79. }