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/olivero/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.
- */
-
- /*
- * Media query breakpoints.
- * Processed by postcss/postcss-custom-media.
- */
-
- /* Navigation related breakpoints */
-
- /* Grid related breakpoints */
-
- /* Grid shifts from 6 to 14 columns. */
-
- /* Width of the entire grid maxes out. */
-
- [dir="ltr"] .skip-link {
- padding-left: var(--sp)
- }
-
- [dir="rtl"] .skip-link {
- padding-right: var(--sp)
- }
-
- [dir="ltr"] .skip-link {
- padding-right: var(--sp)
- }
-
- [dir="rtl"] .skip-link {
- padding-left: var(--sp)
- }
-
- .skip-link {
- display: block;
- width: 100%;
- max-width: var(--max-bg-color);
- padding-top: var(--sp0-5);
- padding-bottom: var(--sp0-5);
- text-decoration: none;
- color: var(--color--white);
- outline: 0;
- background-color: var(--color--gray-5)
- }
-
- .skip-link:hover {
- text-decoration: underline;
- color: var(--color--white);
- }
-
- .skip-link:after {
- content: "\0020 ➔";
- }
-
- .skip-link.focusable:focus {
- position: absolute !important; /* Override position from module file. */
- z-index: 503;
- width: 100%;
- height: 2.5rem;
- outline: none;
- }