skip-link.css in Drupal 10
Same filename in this branch
Same filename and directory in other branches
Skip link
Allows keyboard users to quickly skip to the main content of the page.
File
core/themes/claro/css/components/skip-link.cssView source
- /*
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/3084859
- * @preserve
- */
-
- /**
- * @file
- * Skip link
- *
- * Allows keyboard users to quickly skip to the main content of the page.
- */
-
- .skip-link {
- z-index: 50;
- left: 50%;
- padding: 1px 0.625rem 2px;
- transform: translateX(-50%);
- color: var(--color-white);
- border-radius: 0 0 0.625rem 0.625rem;
- background: var(--color-gray-800);
- font-size: 0.94em;
- }
-
- .skip-link:hover,
- .skip-link:active {
- color: var(--color-white);
- background-color: var(--color-gray);
- }
-
- .skip-link:focus {
- text-decoration: none;
- }
-
- .skip-link.visually-hidden.focusable:focus {
- position: absolute !important;
- }