skip-link.pcss.css

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

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/media-queries.pcss.css";
  8. .skip-link {
  9. display: block;
  10. width: 100%;
  11. max-width: calc(var(--max-bg-color) + var(--drupal-displace-offset-left, 0px));
  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-5);
  19. &:hover {
  20. text-decoration: underline;
  21. color: var(--color--white);
  22. }
  23. &::after {
  24. content: "\0020 ➔";
  25. }
  26. }
  27. .skip-link.focusable:focus {
  28. position: absolute !important; /* Override position from module file. */
  29. z-index: 503;
  30. width: 100%;
  31. height: 40px;
  32. outline: none;
  33. }

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