You are here

skip-link.css in Drupal 10

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. .skip-link {
  14. z-index: 50;
  15. left: 50%;
  16. padding: 1px 0.625rem 2px;
  17. transform: translateX(-50%);
  18. color: var(--color-white);
  19. border-radius: 0 0 0.625rem 0.625rem;
  20. background: var(--color-gray-800);
  21. font-size: 0.94em;
  22. }
  23. .skip-link:hover,
  24. .skip-link:active {
  25. color: var(--color-white);
  26. background-color: var(--color-gray);
  27. }
  28. .skip-link:focus {
  29. text-decoration: none;
  30. }
  31. .skip-link.visually-hidden.focusable:focus {
  32. position: absolute !important;
  33. }