@import '../../styles/index.less';
@sider-width: 50px;

.ats-sider {
    .flex-column;
    position: fixed;
    width: @sider-width;
    height: 100vh;
    background-color: #1AB58F;
    font-size: 12px;
    color: #D1F0E8;
    letter-spacing: 0;
    text-align: center;
    min-height: 500px;
    z-index: 100;
    &_logo {
       margin: 5px;
       width: 40px;
    }

    &-nav {
        .flex-column;
        width: @sider-width;
        height: calc(10px + @sider-width);
        justify-content: center;
        transition: all .2s ease-in-out;
        color: #D1F0E8;
    }
    &-nav:hover{
        color: white;
    }
    &_active{
        background-color: #1AA482;
    }
    i {
        display: inline-block;
        width: 16px;
        height: 16px;
        background-size: 100%;
        margin-bottom: 6px;
    }
}

// .mo {
//     position: fixed;
//     width: 1000vw;
//     height: 1000vh;
//     background-color: rgba(245, 240, 240, 0.144);
//     transition: all .5s ease-out;
// }


.nav-item-bg(@className) {
    .icon-@{className} {
        margin-bottom: 3px;
    }

    .ats-sider_@{className}:hover {
        background-color: #1AA482;
        cursor: pointer;
    }
}

@navItemBg: home, cv, book, calendar, weipin, team , icon-talent ,setting2;

.loop(@i) when (@i < length(@navItemBg)+1) {
    .nav-item-bg(extract(@navItemBg, @i));
    .loop(@i+1);
}

.loop(1);