
/* Navs */
.nav {
    > li {
        > a:hover, > a:focus {
            background: transparent;
        }
    }
    i.icon-image {
        display: inline-block;
        max-width: 20px;
    }
}

ul {
    &.nav-list,
    /* Sitemap */
    &[class^="wsp-"] {
        li {
            margin: 0;
            padding: 0;
            display: block;
            position: relative;
            a {
                @include transition (background 0.1s);
                border-bottom: if-light(1px solid #ededde, 1px solid $color-dark-3);
                padding: side-values(8px 0 8px 20px);
                display: block;
                color: #666;
                font-size: 0.9em;
                text-decoration: none;
                line-height: 20px;
                &:before {
                    content: "";
                    display: inline-block;
                    width: 0;
                    height: 4px;
                    border-top: 4px solid transparent;
                    border-bottom: 4px solid transparent;
                    border-#{$left}: if-light(4px solid #333, 4px solid #555);
                    position: absolute;
                    top: 15px;
                    #{$left}: 10px;
                }
                &:hover {
                    background-color: if-light(#eee, $color-dark-3);
                    text-decoration: none;
                }
            }
            &.active > a {
                font-weight: bold;
            }
            ul {
                list-style: none;
                margin: 0 0 0 25px;
                padding: 0;
            }
            .wsp-category-title {
                margin-top: 10px;
            }
            .wsp-category-title a {
                display: inline-block;
                padding-#{$left}: 0;
                font-size: 1em;

                &:before {
                    display: none;
                }
                &:hover {
                    background-color: transparent;
                }
            }
        }

        &.hide-not-active {
            li {
                ul {
                    display: none;
                }
                &.active {
                    ul {
                        display: block;
                    }
                }
            }
        }

        &.show-bg-active {
            .active > a {
                background-color: if-light(#f5f5f5, $color-dark-4);
                &:hover {
                    background-color: if-light(#eee, $color-dark-3);
                }
            }
        }
    }

    &.narrow {
        li {
            a {
                padding-top: 4px;
                padding-bottom: 4px;
            }
        }
    }

    &.nav-pills > li.active > a {
        background-color: #CCC;
        &:hover, &:focus {
            background-color: #CCC;
        }
    }
    &.nav-pills-center {
        text-align: center;
        > li {
            display: inline-block;
            float: none;
        }
    }
    &.nav-pills-left {
        > li {
            float: left;
        }
    }
    &.nav-pills-right {
        > li {
            float: right;
        }
    }
    &.nav-pills-justify {
        display: flex;
        > li {
            float: none;
            text-align: center;
            width: 100%;
        }
    }
}

/* Nav Secondary */
.nav-secondary {
    background: #fafafa;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    z-index: 100;
    .nav-pills > li {
        float: none;
        display: inline-block;
        a,
        span {
            font-size: 12px;
            font-style: normal;
            font-weight: 600;
            line-height: 20px;
            padding: 10px 13px;
            text-transform: uppercase;
            i {
                font-size: 14px;
                margin-#{$right}: 5px;
            }
        }
    }
    &.sticky-active {
        border-bottom-color: #e9e9e9;
        box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
    }
}

.sticky-nav-wrapper {
    margin: 0 (-($grid-gutter-width / 2));
}