skip-link.css
Same filename in this branch
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
- 9 core/themes/olivero/css/components/skip-link.css
- 9 core/themes/seven/css/components/skip-link.css
- 9 core/themes/claro/css/components/skip-link.css
- 9 core/themes/bartik/css/components/skip-link.css
- 8.9.x core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
- 8.9.x core/themes/seven/css/components/skip-link.css
- 8.9.x core/themes/claro/css/components/skip-link.css
- 8.9.x core/themes/bartik/css/components/skip-link.css
- 10 core/profiles/demo_umami/themes/umami/css/components/navigation/skip-link/skip-link.css
- 10 core/themes/olivero/css/components/skip-link.css
- 10 core/themes/claro/css/components/skip-link.css
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
- /*
- * 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.
- */
-
- :root {
- --skip-link-bg-color: var(--color-gray-800);
- --skip-link-color: var(--color-white);
- --skip-link-active-bg-color: var(--color-gray);
- }
-
- .skip-link {
- z-index: 503;
- top: 0;
- left: 0; /* LTR */
- padding: 1px 0.625rem 2px;
- color: var(--skip-link-color);
- border-radius: 0 0 0.625rem 0; /* LTR */
- background: var(--skip-link-bg-color);
- box-shadow:
- 0 0 0 2px var(--color-white),
- 0 0 0 5px var(--color-focus);
- font-size: 0.94em;
- }
-
- .skip-link:hover,
- .skip-link:active {
- color: var(--skip-link-color);
- background-color: var(--skip-link-active-bg-color);
- }
-
- .skip-link:focus {
- -webkit-text-decoration: none;
- text-decoration: none;
- }
-
- .skip-link.visually-hidden.focusable:focus {
- position: absolute !important;
- }
-
- [dir="rtl"] .skip-link {
- right: 0;
- left: auto;
- border-radius: 0 0 0 0.625rem;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.