Skip to content
Snippets Groups Projects
Forked from Stud.IP / Stud.IP
1858 commits behind the upstream repository.
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;
}