You are here

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