@import './colors';
@import './mixins';

@mixin hc-scroll-nav() {
    position: relative;
}

@mixin hc-scroll-nav-links-container() {
    margin-right: 30px;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
    height: 100%;
}

@mixin hc-scroll-nav-links-ul() {
    list-style: none;
}

@mixin hc-scroll-nav-links() {
    @include fontSize(14px);
    background-color: transparent;
    color: $offblack;
    cursor: pointer;
    font-weight: 500;
    padding: 10px 15px;

    &:hover {
        background-color: transparentize($slate-gray-200, 0.75);
    }

    &:active {
        background-color: transparentize($slate-gray-200, 0.5);
    }
}

@mixin hc-scroll-nav-link-focus {
    outline: none;
    box-shadow: 0 0 0 2px transparentize($primary-brand, 0.6);
}

@mixin hc-scroll-nav-link-active() {
    &,
    &:hover {
        color: $white;
        font-weight: 500;
        position: relative;
        z-index: 1;
    }
}

@mixin hc-scroll-nav-link-active-bg {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    height: 41px;
    width: 100%;
    background-color: $blue;
    z-index: -1;
}

@mixin hc-scroll-nav-active-parent-section-link() {
    &,
    &:hover {
        font-weight: bold;
        border-left: 5px solid #00aeff;
    }
}

@mixin hc-scroll-nav-parent-section-link() {
    ul {
        margin-top: 0;
        margin-bottom: 0;
    }

    .hc-scroll-nav-subsection-link {
        padding: 10px 0 10px 15px;
    }

    &,
    &.hc-scroll-nav-subsection-link {
        padding: 10px 0 0px 15px;
    }
}

@mixin hc-scroll-nav-parent-section-link-content() {
    &.hc-scroll-nav-subsection-link {
        margin-top: 10px;

        ul:first-child {
            padding-top: 10px;
        }
    }
}

@mixin hc-scroll-nav-content-container() {
    position: relative;
    max-height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    width: 100%;
}

@mixin hc-scroll-nav-smooth() {
    scroll-behavior: smooth;
}
