pager.css

Same filename in this branch
  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/bartik/css/components/pager.css
  6. 9 core/themes/bartik/css/classy/components/pager.css
  7. 9 core/themes/starterkit_theme/css/components/pager.css
  8. 9 core/themes/classy/css/components/pager.css
Same filename in other branches
  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/claro/css/components/pager.css
  5. 8.9.x core/themes/bartik/css/components/pager.css
  6. 8.9.x core/themes/bartik/css/classy/components/pager.css
  7. 8.9.x core/themes/classy/css/components/pager.css
  8. 10 core/profiles/demo_umami/themes/umami/css/classy/components/pager.css
  9. 10 core/themes/olivero/css/components/pager.css
  10. 10 core/themes/claro/css/components/pager.css
  11. 10 core/themes/starterkit_theme/css/components/pager.css
  12. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/pager.css
  13. 11.x core/themes/olivero/css/components/pager.css
  14. 11.x core/themes/claro/css/components/pager.css
  15. 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/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Styles for Claro's Pagination.
  10. */
  11. :root {
  12. /**
  13. * Pager.
  14. */
  15. /* --space-m × 2 */
  16. /* 2px */
  17. }
  18. .pager {
  19. margin-top: 1rem;
  20. margin-bottom: 1rem;
  21. }
  22. .pager__items {
  23. display: flex;
  24. flex-wrap: wrap;
  25. align-items: flex-end;
  26. justify-content: center;
  27. margin: 1rem 0; /* LTR */
  28. list-style: none;
  29. text-align: center;
  30. font-weight: bold;
  31. }
  32. [dir="rtl"] .pager__items {
  33. margin: 1rem 0;
  34. }
  35. .pager__item {
  36. display: inline-block;
  37. margin-right: 0.25rem;
  38. margin-left: 0.25rem;
  39. vertical-align: top;
  40. }
  41. .pager__link,
  42. .pager__item--current {
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. box-sizing: border-box;
  47. min-width: 2rem;
  48. height: 2rem;
  49. padding-right: 0.5rem;
  50. padding-left: 0.5rem;
  51. text-decoration: none;
  52. color: #55565b;
  53. border-radius: 1rem; /* Pager size ÷ 2 */
  54. background: #fff; /* Make sure that the text is visible on dark background. */
  55. line-height: 1;
  56. }
  57. .pager__link:hover,
  58. .pager__link:focus,
  59. .pager__link:active {
  60. text-decoration: none;
  61. }
  62. .pager__link:hover,
  63. .pager__link.is-active:hover {
  64. color: #55565b;
  65. background: #e5edff;
  66. }
  67. .pager__link--action-link {
  68. border-radius: 0.125rem;
  69. }
  70. /* Active number link. */
  71. .pager__link.is-active,
  72. .pager__item--current {
  73. color: #fff;
  74. border: 0.125rem solid transparent;
  75. background: #003ecc;
  76. }
  77. .pager__item--first .pager__link::before {
  78. background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 2v12M14 2L8 8l6 6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  79. }
  80. .pager__item--previous .pager__link::before {
  81. background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 2L5 8l6 6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  82. }
  83. .pager__item--next .pager__link::after {
  84. background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 14l6-6-6-6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  85. }
  86. .pager__item--last .pager__link::after {
  87. background-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14 14V2M2 14l6-6-6-6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  88. }
  89. .pager__item--first .pager__link::before,
  90. .pager__item--previous .pager__link::before,
  91. .pager__item--next .pager__link::after,
  92. .pager__item--last .pager__link::after {
  93. position: relative;
  94. display: inline-block;
  95. width: 1rem;
  96. height: 1rem;
  97. content: "";
  98. background-repeat: no-repeat;
  99. background-position: center;
  100. }
  101. @media (forced-colors: active) {
  102. .pager__item--first .pager__link::before {
  103. -webkit-mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 2v12M14 2L8 8l6 6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  104. mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M2 2v12M14 2L8 8l6 6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  105. }
  106. .pager__item--previous .pager__link::before {
  107. -webkit-mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 2L5 8l6 6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  108. mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11 2L5 8l6 6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  109. }
  110. .pager__item--next .pager__link::after {
  111. -webkit-mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 14l6-6-6-6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  112. mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 14l6-6-6-6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  113. }
  114. .pager__item--last .pager__link::after {
  115. -webkit-mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14 14V2M2 14l6-6-6-6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  116. mask-image: url("data:image/svg+xml,%3csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M14 14V2M2 14l6-6-6-6' stroke='%23545560' stroke-width='2'/%3e%3c/svg%3e");
  117. }
  118. .pager__item--first .pager__link::before,
  119. .pager__item--previous .pager__link::before,
  120. .pager__item--next .pager__link::after,
  121. .pager__item--last .pager__link::after {
  122. background-color: linktext;
  123. background-image: none;
  124. -webkit-mask-repeat: no-repeat;
  125. mask-repeat: no-repeat;
  126. -webkit-mask-position: center;
  127. mask-position: center;
  128. }
  129. }
  130. [dir="rtl"] .pager__item--first .pager__link::before,
  131. [dir="rtl"] .pager__item--previous .pager__link::before,
  132. [dir="rtl"] .pager__item--next .pager__link::after,
  133. [dir="rtl"] .pager__item--last .pager__link::after {
  134. transform: scaleX(-1);
  135. }
  136. .pager__item--mini {
  137. margin-right: 0.5rem;
  138. margin-left: 0.5rem;
  139. }
  140. .pager__link--mini {
  141. border-radius: 50%;
  142. }
  143. /**
  144. * On the mini pager, remove margins for the previous and next icons.
  145. * Margins are not needed here as there is no accompanying text.
  146. */
  147. .pager__link--mini::before {
  148. margin-right: 0;
  149. margin-left: 0;
  150. }
  151. .pager__item-title--backwards {
  152. margin-left: 0.5rem; /* LTR */
  153. }
  154. [dir="rtl"] .pager__item-title--backwards {
  155. margin-right: 0.5rem;
  156. margin-left: 0;
  157. }
  158. .pager__item-title--forward {
  159. margin-right: 0.5rem; /* LTR */
  160. }
  161. [dir="rtl"] .pager__item-title--forward {
  162. margin-right: 0;
  163. margin-left: 0.5rem;
  164. }
  165. @media (-ms-high-contrast: active), (forced-colors: active) {
  166. .pager__item a:hover {
  167. text-decoration: underline;
  168. }
  169. }

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