You are here

pager.pcss.css in Drupal 9

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__link {
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. width: 100%;
  44. height: 100%;
  45. text-decoration: none;
  46. color: var(--color--gray-20);
  47. }
  48. .pager__link:hover {
  49. background-color: var(--color--gray-80);
  50. }
  51. .pager__link:focus {
  52. color: var(--color--blue-20);
  53. outline: solid 2px var(--color--blue-20);
  54. outline-offset: -2px;
  55. }
  56. .pager__item svg {
  57. display: block;
  58. fill: currentColor;
  59. }
  60. .pager__item--next svg,
  61. .pager__item--last svg {
  62. transform: rotate(180deg);
  63. }