// _sidebars.scss

#sidebar-left {

    .sticky-grid-outer {

        &.scroll {
            position: absolute;
        }

        &.fixed {
            position: fixed;
        }

    }

    // TO-DO(WR-1956): Need to add a unique class dynamically for Menu Container instead of targeting <div> tag
    .widget_nav_menu > div {
        position: relative;
        width: 190px;

        ul.menu,
        ul.menu ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }

        > ul.menu {

            > li {

                a {
                    display: block;
                    font-size: 12px;
                    overflow: hidden;
                    position: relative;
                    padding: 5px;
                    width: 90%;
                    z-index: 1;
                }

                // Active/Inactive Menu for Sidebar(with submenus)
                a.active {
                    font-weight: $font-weight-bold;
                    text-decoration: none;
                }

                &.arrow-menu > a {
                    color: $rhino;
                    font-size: 14px;
                    font-weight: $font-weight-normal;
                    text-decoration: none;

                    + ul.sub-menu {
                        display: none;
                    }

                }

                &.arrow-menu.current-menu-item {

                    > a {
                        color: $gorilla;
                        font-weight: $font-weight-bold;
                        text-decoration: none;

                        &:before,
                        &:after {
                            border-right: 500px solid $mouse;
                            border-bottom: 1000px solid transparent;
                            content: "";
                            left: 100%;
                            position: absolute;
                            top: 50%;
                            z-index: -1;
                        }

                        &:before {
                            transform: scaleX(-1) translateX(100%);
                        }

                        &:after { 
                            transform: scaleY(-1) scaleX(-1) translateY(100%) translateX(100%);                            
                        }

                        + ul.sub-menu {
                            display: block;
                        }

                    }

                }

            }

        }

    }

}

#sidebar-right{

    .related-posts-widget {
        background: $mouse;
        padding: 20px;

        .title {
            margin: 0;
            text-transform: capitalize;
        }

        ul {
            font-size: 14px;
            list-style: none;
            margin: 10px 0 0;
            padding: 0;

            li {
                padding-bottom: 10px;

                &:last-child {
                    padding-bottom: 0;
                }

            }

        }

    }

}
