skip-link.css

Same filename in this branch
  1. 11.x core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  2. 11.x core/themes/olivero/css/components/skip-link.css
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  2. 9 core/themes/olivero/css/components/skip-link.css
  3. 9 core/themes/seven/css/components/skip-link.css
  4. 9 core/themes/claro/css/components/skip-link.css
  5. 9 core/themes/bartik/css/components/skip-link.css
  6. 8.9.x core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  7. 8.9.x core/themes/seven/css/components/skip-link.css
  8. 8.9.x core/themes/claro/css/components/skip-link.css
  9. 8.9.x core/themes/bartik/css/components/skip-link.css
  10. 10 core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  11. 10 core/themes/olivero/css/components/skip-link.css
  12. 10 core/themes/claro/css/components/skip-link.css

Skip link

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

File

core/themes/claro/css/components/skip-link.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. * Skip link
  10. *
  11. * Allows keyboard users to quickly skip to the main content of the page.
  12. */
  13. :root {
  14. --skip-link-bg-color: var(--color-gray-800);
  15. --skip-link-color: var(--color-white);
  16. --skip-link-active-bg-color: var(--color-gray);
  17. }
  18. .skip-link {
  19. z-index: 503;
  20. top: 0;
  21. left: 0; /* LTR */
  22. padding: 1px 0.625rem 2px;
  23. color: var(--skip-link-color);
  24. border-radius: 0 0 0.625rem 0; /* LTR */
  25. background: var(--skip-link-bg-color);
  26. box-shadow:
  27. 0 0 0 2px var(--color-white),
  28. 0 0 0 5px var(--color-focus);
  29. font-size: 0.94em;
  30. }
  31. .skip-link:hover,
  32. .skip-link:active {
  33. color: var(--skip-link-color);
  34. background-color: var(--skip-link-active-bg-color);
  35. }
  36. .skip-link:focus {
  37. -webkit-text-decoration: none;
  38. text-decoration: none;
  39. }
  40. .skip-link.visually-hidden.focusable:focus {
  41. position: absolute !important;
  42. }
  43. [dir="rtl"] .skip-link {
  44. right: 0;
  45. left: auto;
  46. border-radius: 0 0 0 0.625rem;
  47. }

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