90 lines
2.0KB

  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. line-height: @line-height-base;
  17. text-decoration: none;
  18. color: @pagination-color;
  19. background-color: @pagination-bg;
  20. border: 1px solid @pagination-border;
  21. margin-left: -1px;
  22. }
  23. &:first-child {
  24. > a,
  25. > span {
  26. margin-left: 0;
  27. .border-left-radius(@border-radius-base);
  28. }
  29. }
  30. &:last-child {
  31. > a,
  32. > span {
  33. .border-right-radius(@border-radius-base);
  34. }
  35. }
  36. }
  37. > li > a,
  38. > li > span {
  39. &:hover,
  40. &:focus {
  41. z-index: 2;
  42. color: @pagination-hover-color;
  43. background-color: @pagination-hover-bg;
  44. border-color: @pagination-hover-border;
  45. }
  46. }
  47. > .active > a,
  48. > .active > span {
  49. &,
  50. &:hover,
  51. &:focus {
  52. z-index: 3;
  53. color: @pagination-active-color;
  54. background-color: @pagination-active-bg;
  55. border-color: @pagination-active-border;
  56. cursor: default;
  57. }
  58. }
  59. > .disabled {
  60. > span,
  61. > span:hover,
  62. > span:focus,
  63. > a,
  64. > a:hover,
  65. > a:focus {
  66. color: @pagination-disabled-color;
  67. background-color: @pagination-disabled-bg;
  68. border-color: @pagination-disabled-border;
  69. cursor: @cursor-disabled;
  70. }
  71. }
  72. }
  73. // Sizing
  74. // --------------------------------------------------
  75. // Large
  76. .pagination-lg {
  77. .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
  78. }
  79. // Small
  80. .pagination-sm {
  81. .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
  82. }