skip-link.pcss.css
Same filename in this branch
Same filename 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.pcss.css
View source
- /**
- * @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 10px 2px;
- color: var(--skip-link-color);
- border-radius: 0 0 10px 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;
- &:hover,
- &:active {
- color: var(--skip-link-color);
- background-color: var(--skip-link-active-bg-color);
- }
- &:focus {
- text-decoration: none;
- }
- &.visually-hidden.focusable:focus {
- position: absolute !important;
- }
- }
- [dir="rtl"] .skip-link {
- right: 0;
- left: auto;
- border-radius: 0 0 0 10px;
- }
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.