SlideBox.les 1.4 KB
@import "../../less/variables";

.slideBox{

    transition: background 300ms;
    position: fixed;
    left:0;
    top:0;
    right:0;
    bottom:0;
    background: rgba(255,255,255,0);
    z-index:1000;

    &.show{
        background: rgba(255,255,255,.66);

        .slide{
            right:0;
        }

    }

    .slide{
        transition: right 300ms;
        height:100%;
        position: absolute;
        right:-100%;
        top:0;
        background: @white;
        box-shadow:0 0 20px 0 rgba(0,0,0,.5);
        .title{
            font-size:@font-size-lg;
            color: @black;
            text-align: center;
            border-bottom: 1px solid @border-color;
            height:60px;
            line-height:60px;
            .btn_close{
                position: absolute;
                left:0;
                width:60px;
                padding-left: 24px;
                cursor: pointer;
            }

        }

        .context{
            //padding:24px;
            height:~'calc(100% - 48px)';
            overflow-y: auto;

            .loading{
                height:100%;
                width: 100%;
                display: flex;
                flex-direction: column;
                justify-content: center;
                .icon{
                    align-self: center;


                    p{
                        font-size: @font-size-md;
                    }
                }
            }

        }

    }
}