Forked from
Stud.IP / Stud.IP
1858 commits behind the upstream repository.
-
Jan-Hendrik Willms authored
use transition-duration as css variable and adjust it according to media feature prefers-reduced-motion, fixes #3216 Closes #3216 Merge request studip/studip!2181
Jan-Hendrik Willms authoreduse transition-duration as css variable and adjust it according to media feature prefers-reduced-motion, fixes #3216 Closes #3216 Merge request studip/studip!2181
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
skiplinks.scss 907 B
/* skiplink-area highlighting -------------------------------------------- */
#skip_link_navigation {
background-color: var(--white);
border: 2px solid var(--orange);
left: 50vw;
margin: 0;
padding: 10px;
position: fixed;
transform: translateX(-50%);
transition: opacity 0.5s linear;
top: 20px;
z-index: 3000;
&:not(:focus-within) {
opacity: 0;
pointer-events: none;
}
#skiplink_list {
display: unset;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
}
}
button.skiplink {
border: 0;
background-color: var(--white);
color: var(--base-color);
cursor: pointer;
line-height: 1em;
margin-bottom: 0.1em;
&:hover,
&:active {
color: var(--active-color);
}
transition: color var(--transition-duration);
}
#skiplink_list {
display: none;
}