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/olivero/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. /*
  14. * Media query breakpoints.
  15. * Processed by postcss/postcss-custom-media.
  16. */
  17. /* Navigation related breakpoints */
  18. /* Grid related breakpoints */
  19. /* Grid shifts from 6 to 14 columns. */
  20. /* Width of the entire grid maxes out. */
  21. [dir="ltr"] .skip-link {
  22. padding-left: var(--sp)
  23. }
  24. [dir="rtl"] .skip-link {
  25. padding-right: var(--sp)
  26. }
  27. [dir="ltr"] .skip-link {
  28. padding-right: var(--sp)
  29. }
  30. [dir="rtl"] .skip-link {
  31. padding-left: var(--sp)
  32. }
  33. .skip-link {
  34. display: block;
  35. width: 100%;
  36. max-width: var(--max-bg-color);
  37. padding-top: var(--sp0-5);
  38. padding-bottom: var(--sp0-5);
  39. text-decoration: none;
  40. color: var(--color--white);
  41. outline: 0;
  42. background-color: var(--color--gray-5)
  43. }
  44. .skip-link:hover {
  45. text-decoration: underline;
  46. color: var(--color--white);
  47. }
  48. .skip-link:after {
  49. content: "\0020 ➔";
  50. }
  51. .skip-link.focusable:focus {
  52. position: absolute !important; /* Override position from module file. */
  53. z-index: 503;
  54. width: 100%;
  55. height: 2.5rem;
  56. outline: none;
  57. }