You are here

pager.css in Drupal 9

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. [dir="ltr"] .pager__items {
  12. margin-left: 0;
  13. }
  14. [dir="rtl"] .pager__items {
  15. margin-right: 0;
  16. }
  17. [dir="ltr"] .pager__items {
  18. padding-left: 0;
  19. }
  20. [dir="rtl"] .pager__items {
  21. padding-right: 0;
  22. }
  23. [dir="ltr"] .pager__items {
  24. padding-right: 0;
  25. }
  26. [dir="rtl"] .pager__items {
  27. padding-left: 0;
  28. }
  29. .pager__items {
  30. display: flex;
  31. flex-wrap: wrap;
  32. align-items: flex-end;
  33. margin-top: 0;
  34. margin-bottom: 0;
  35. padding-top: 0;
  36. padding-bottom: 0;
  37. list-style: none;
  38. font-weight: bold;
  39. }
  40. .pager__item {
  41. display: flex;
  42. align-items: center;
  43. justify-content: center;
  44. width: 2.8125rem;
  45. height: 2.8125rem;
  46. cursor: default;
  47. color: #6e7172;
  48. background-color: #fff
  49. }
  50. @media (min-width: 31.25rem) {
  51. .pager__item {
  52. width: 3.375rem;
  53. height: 3.375rem
  54. }
  55. }
  56. [dir="rtl"] .pager__item--control {
  57. transform: scaleX(-1);
  58. }
  59. .pager__item--active {
  60. color: #fff;
  61. background-color: #0d77b5;
  62. }
  63. .pager__link {
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. width: 100%;
  68. height: 100%;
  69. text-decoration: none;
  70. color: #6e7172;
  71. }
  72. .pager__link:hover {
  73. background-color: #e7edf1;
  74. }
  75. .pager__link:focus {
  76. color: #0d77b5;
  77. outline: solid 2px #0d77b5;
  78. outline-offset: -2px;
  79. }
  80. .pager__item svg {
  81. display: block;
  82. fill: currentColor;
  83. }
  84. .pager__item--next svg,
  85. .pager__item--last svg {
  86. transform: rotate(180deg);
  87. }