pager.pcss.css

Same filename in this branch
  1. 9 core/themes/claro/css/components/pager.pcss.css
Same filename in other branches
  1. 8.9.x core/themes/claro/css/components/pager.pcss.css
  2. 10 core/themes/olivero/css/components/pager.pcss.css
  3. 10 core/themes/claro/css/components/pager.pcss.css
  4. 11.x core/themes/olivero/css/components/pager.pcss.css
  5. 11.x core/themes/claro/css/components/pager.pcss.css

Styles for pagination.

File

core/themes/olivero/css/components/pager.pcss.css

View source
  1. /**
  2. * @file
  3. * Styles for pagination.
  4. */
  5. @import "../base/variables.pcss.css";
  6. .pager__items {
  7. display: flex;
  8. flex-wrap: wrap;
  9. align-items: flex-end;
  10. margin-block: 0;
  11. margin-inline-start: 0;
  12. padding-block: 0;
  13. padding-inline-start: 0;
  14. padding-inline-end: 0;
  15. list-style: none;
  16. font-weight: bold;
  17. }
  18. .pager__item {
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. width: var(--sp2-5);
  23. height: var(--sp2-5);
  24. cursor: default;
  25. color: var(--color--gray-20);
  26. background-color: var(--color--white);
  27. @media (--sm) {
  28. width: var(--sp3);
  29. height: var(--sp3);
  30. }
  31. }
  32. [dir="rtl"] .pager__item--control {
  33. transform: scaleX(-1);
  34. }
  35. .pager__item--active {
  36. color: var(--color--white);
  37. background-color: var(--color--blue-20);
  38. }
  39. .pager__item--control {
  40. & path {
  41. /* IE11 Specific. */
  42. @media (-ms-high-contrast: active) {
  43. fill: currentColor;
  44. }
  45. @media (forced-colors: active) {
  46. fill: linktext;
  47. }
  48. }
  49. }
  50. .pager__link {
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. width: 100%;
  55. height: 100%;
  56. text-decoration: none;
  57. color: var(--color--gray-20);
  58. }
  59. .pager__link:hover {
  60. background-color: var(--color--gray-80);
  61. }
  62. .pager__link:focus {
  63. color: var(--color--blue-20);
  64. outline: solid 2px var(--color--blue-20);
  65. outline-offset: -2px;
  66. }
  67. .pager__item svg {
  68. display: block;
  69. fill: currentColor;
  70. }
  71. .pager__item--next svg,
  72. .pager__item--last svg {
  73. transform: rotate(180deg);
  74. }

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