skip-link.css

Same filename in this branch
  1. main core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  2. main core/themes/olivero/css/components/skip-link.css
  3. main core/themes/claro/css/components/skip-link.css
  4. main core/themes/admin/css/components/skip-link.css
Same filename and directory in other branches
  1. 10 core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  2. 10 core/themes/olivero/css/components/skip-link.css
  3. 10 core/themes/claro/css/components/skip-link.css
  4. 11.x core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  5. 11.x core/themes/olivero/css/components/skip-link.css
  6. 11.x core/themes/claro/css/components/skip-link.css
  7. 9 core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  8. 9 core/themes/olivero/css/components/skip-link.css
  9. 9 core/themes/seven/css/components/skip-link.css
  10. 9 core/themes/claro/css/components/skip-link.css
  11. 9 core/themes/bartik/css/components/skip-link.css
  12. 8.9.x core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
  13. 8.9.x core/themes/seven/css/components/skip-link.css
  14. 8.9.x core/themes/claro/css/components/skip-link.css
  15. 8.9.x core/themes/bartik/css/components/skip-link.css
  16. 11.x core/themes/admin/css/components/skip-link.css
  17. 11.x core/themes/default_admin/css/components/skip-link.css

Skip link

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

File

core/themes/default_admin/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. /* Dark chrome pill with light text — kept on the gray ramp directly: no
  15. semantic surface token matches these mid/near-black bg values, and the skip
  16. link is a self-contained always-dark component (not mode-aware). */
  17. --skip-link-bg-color: var(--admin-color-gray-800);
  18. --skip-link-color: var(--admin-color-white); /* Fixed: light text on the always-dark pill. */
  19. --skip-link-active-bg-color: var(--admin-color-gray-950);
  20. }
  21. .skip-link {
  22. z-index: 503;
  23. top: 0;
  24. left: 0; /* LTR */
  25. padding: 1px 0.625rem 2px;
  26. color: var(--skip-link-color);
  27. border-radius: 0 0 0.625rem 0; /* LTR */
  28. background: var(--skip-link-bg-color);
  29. box-shadow:
  30. 0 0 0 2px var(--admin-color-bg-surface),
  31. 0 0 0 5px var(--admin-color-focus);
  32. font-size: 0.94em;
  33. &:hover,
  34. &:active {
  35. color: var(--skip-link-color);
  36. background-color: var(--skip-link-active-bg-color);
  37. }
  38. &:focus {
  39. -webkit-text-decoration: none;
  40. text-decoration: none;
  41. }
  42. &.visually-hidden.focusable:focus {
  43. position: absolute !important;
  44. }
  45. }
  46. [dir="rtl"] .skip-link {
  47. right: 0;
  48. left: auto;
  49. border-radius: 0 0 0 0.625rem;
  50. }

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