pager.css

Same filename in this branch
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/pager.css
  2. 8.9.x core/themes/seven/css/components/pager.css
  3. 8.9.x core/themes/seven/css/classy/components/pager.css
  4. 8.9.x core/themes/bartik/css/components/pager.css
  5. 8.9.x core/themes/bartik/css/classy/components/pager.css
  6. 8.9.x core/themes/classy/css/components/pager.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/pager.css
  2. 9 core/themes/olivero/css/components/pager.css
  3. 9 core/themes/seven/css/components/pager.css
  4. 9 core/themes/seven/css/classy/components/pager.css
  5. 9 core/themes/claro/css/components/pager.css
  6. 9 core/themes/bartik/css/components/pager.css
  7. 9 core/themes/bartik/css/classy/components/pager.css
  8. 9 core/themes/starterkit_theme/css/components/pager.css
  9. 9 core/themes/classy/css/components/pager.css
  10. 10 core/profiles/demo_umami/themes/umami/css/classy/components/pager.css
  11. 10 core/themes/olivero/css/components/pager.css
  12. 10 core/themes/claro/css/components/pager.css
  13. 10 core/themes/starterkit_theme/css/components/pager.css
  14. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/pager.css
  15. 11.x core/themes/olivero/css/components/pager.css
  16. 11.x core/themes/claro/css/components/pager.css
  17. 11.x core/themes/starterkit_theme/css/components/pager.css

Styles for Claro's Pagination.

File

core/themes/claro/css/components/pager.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styles for Claro's Pagination.
  10. */
  11. :root {
  12. /**
  13. * Pager.
  14. */ /* --space-m × 2 */ /* 2px */
  15. }
  16. .pager {
  17. margin-top: 1rem;
  18. margin-bottom: 1rem;
  19. }
  20. .pager__items {
  21. display: flex;
  22. flex-wrap: wrap;
  23. align-items: flex-end;
  24. justify-content: center;
  25. margin: 1rem 0; /* LTR */
  26. list-style: none;
  27. text-align: center;
  28. font-weight: bold;
  29. }
  30. [dir="rtl"] .pager__items {
  31. margin: 1rem 0;
  32. }
  33. .pager__item {
  34. display: inline-block;
  35. margin-right: 0.25rem;
  36. margin-left: 0.25rem;
  37. vertical-align: top;
  38. }
  39. .pager__link,
  40. .pager__item--current {
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. box-sizing: border-box;
  45. min-width: 2rem;
  46. height: 2rem;
  47. padding-right: 0.5rem;
  48. padding-left: 0.5rem;
  49. text-decoration: none;
  50. color: #545560;
  51. border-radius: 1rem; /* Pager size ÷ 2 */
  52. background: #fff; /* Make sure that the text is visible on dark background. */
  53. line-height: 1;
  54. }
  55. .pager__link:hover,
  56. .pager__link:focus,
  57. .pager__link:active {
  58. text-decoration: none;
  59. }
  60. .pager__link:hover,
  61. .pager__link.is-active:hover {
  62. color: #545560;
  63. background: #e6ecf8;
  64. }
  65. .pager__link--action-link {
  66. border-radius: 0.125rem;
  67. }
  68. /* Active number link. */
  69. .pager__link.is-active,
  70. .pager__item--current {
  71. color: #fff;
  72. background: #003cc5;
  73. }
  74. .pager__item--first .pager__link::before {
  75. background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2V14' stroke='%23545560' stroke-width='2'/%3E%3Cpath d='M14 2L8 8L14 14' stroke='%23545560' stroke-width='2'/%3E%3C/svg%3E%0A");
  76. }
  77. .pager__item--previous .pager__link::before {
  78. background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 2L5 8L11 14' stroke='%23545560' stroke-width='2'/%3E%3C/svg%3E%0A");
  79. }
  80. .pager__item--next .pager__link::after {
  81. background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 14L11 8L5 2' stroke='%23545560' stroke-width='2'/%3E%3C/svg%3E%0A");
  82. }
  83. .pager__item--last .pager__link::after {
  84. background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 14L14 2.00001' stroke='%23545560' stroke-width='2'/%3E%3Cpath d='M2 14L8 8.00001L2 2.00001' stroke='%23545560' stroke-width='2'/%3E%3C/svg%3E%0A");
  85. }
  86. .pager__item--first .pager__link::before,
  87. .pager__item--previous .pager__link::before,
  88. .pager__item--next .pager__link::after,
  89. .pager__item--last .pager__link::after {
  90. position: relative;
  91. display: inline-block;
  92. width: 1rem;
  93. height: 1rem;
  94. content: "";
  95. background-repeat: no-repeat;
  96. background-position: center;
  97. }
  98. [dir="rtl"] .pager__item--first .pager__link::before,
  99. [dir="rtl"] .pager__item--previous .pager__link::before,
  100. [dir="rtl"] .pager__item--next .pager__link::after,
  101. [dir="rtl"] .pager__item--last .pager__link::after {
  102. transform: scaleX(-1);
  103. }
  104. .pager__item--mini {
  105. margin-right: 0.5rem;
  106. margin-left: 0.5rem;
  107. }
  108. .pager__link--mini {
  109. border-radius: 50%;
  110. }
  111. /**
  112. * On the mini pager, remove margins for the previous and next icons.
  113. * Margins are not needed here as there is no accompanying text.
  114. */
  115. .pager__link--mini::before {
  116. margin-right: 0;
  117. margin-left: 0;
  118. }
  119. .pager__item-title--backwards {
  120. margin-left: 0.5rem; /* LTR */
  121. }
  122. [dir="rtl"] .pager__item-title--backwards {
  123. margin-right: 0.5rem;
  124. margin-left: 0;
  125. }
  126. .pager__item-title--forward {
  127. margin-right: 0.5rem; /* LTR */
  128. }
  129. [dir="rtl"] .pager__item-title--forward {
  130. margin-right: 0;
  131. margin-left: 0.5rem;
  132. }
  133. @media (-ms-high-contrast: active) {
  134. .pager__item a:hover {
  135. text-decoration: underline;
  136. }
  137. .pager__link.is-active {
  138. border: 0.125rem solid #fff;
  139. }
  140. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.