You are here

skip-link.pcss.css in Drupal 9

Skip link

Allows keyboard users to quickly skip to the main content of the page.

File

core/themes/olivero/css/components/skip-link.pcss.css
View source
  1. /**
  2. * @file
  3. * Skip link
  4. *
  5. * Allows keyboard users to quickly skip to the main content of the page.
  6. */
  7. @import "../base/variables.pcss.css";
  8. .skip-link {
  9. display: block;
  10. width: 100%;
  11. max-width: var(--max-bg-color);
  12. padding-block: var(--sp0-5);
  13. padding-inline-start: var(--sp);
  14. padding-inline-end: var(--sp);
  15. text-decoration: none;
  16. color: var(--color--white);
  17. outline: 0;
  18. background-color: var(--color--gray-0);
  19. &:after {
  20. content: "\0020 ➔";
  21. }
  22. }
  23. .skip-link.focusable:focus {
  24. position: absolute !important; /* Override position from module file. */
  25. z-index: 503;
  26. width: 100%;
  27. height: 40px;
  28. outline: none;
  29. }