You are here

pager.css in Drupal 10

Styles for pagination.

File

core/themes/olivero/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 pagination.
  10. */
  11. /*
  12. * Media query breakpoints.
  13. * Processed by postcss/postcss-custom-media.
  14. */
  15. /* Navigation related breakpoints */
  16. /* Grid related breakpoints */
  17. /* Grid shifts from 6 to 14 columns. */
  18. /* Width of the entire grid maxes out. */
  19. [dir="ltr"] .pager__items {
  20. margin-left: 0;
  21. }
  22. [dir="rtl"] .pager__items {
  23. margin-right: 0;
  24. }
  25. [dir="ltr"] .pager__items {
  26. padding-left: 0;
  27. }
  28. [dir="rtl"] .pager__items {
  29. padding-right: 0;
  30. }
  31. [dir="ltr"] .pager__items {
  32. padding-right: 0;
  33. }
  34. [dir="rtl"] .pager__items {
  35. padding-left: 0;
  36. }
  37. .pager__items {
  38. display: flex;
  39. flex-wrap: wrap;
  40. align-items: flex-end;
  41. margin-top: 0;
  42. margin-bottom: 0;
  43. padding-top: 0;
  44. padding-bottom: 0;
  45. list-style: none;
  46. font-weight: bold;
  47. }
  48. .pager__item {
  49. display: flex;
  50. align-items: center;
  51. justify-content: center;
  52. width: var(--sp2-5);
  53. height: var(--sp2-5);
  54. cursor: default;
  55. color: var(--color-text-neutral-soft);
  56. background-color: var(--color--white)
  57. }
  58. @media (min-width: 31.25rem) {
  59. .pager__item {
  60. width: var(--sp3);
  61. height: var(--sp3)
  62. }
  63. }
  64. [dir="rtl"] .pager__item--control {
  65. transform: scaleX(-1);
  66. }
  67. .pager__item--active {
  68. color: var(--color--white);
  69. background-color: var(--color--primary-40);
  70. }
  71. @media (forced-colors: active) {
  72. .pager__item--control path {
  73. fill: linktext;
  74. }
  75. }
  76. .pager__link {
  77. display: flex;
  78. align-items: center;
  79. justify-content: center;
  80. width: 100%;
  81. height: 100%;
  82. text-decoration: none;
  83. color: var(--color-text-neutral-soft);
  84. }
  85. .pager__link:hover {
  86. background-color: var(--color--gray-95);
  87. }
  88. .pager__link:focus {
  89. color: var(--color-text-primary-medium);
  90. outline: solid 2px currentColor;
  91. outline-offset: -2px;
  92. }
  93. .pager__item svg {
  94. display: block;
  95. fill: currentColor;
  96. }
  97. .pager__item--next svg,
  98. .pager__item--last svg {
  99. transform: rotate(180deg);
  100. }