full-screen.less 7.44 KB
@import url("variables.less");
.xn-full-screen{
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .xn-width{
        width: auto;
    }
}
.xn-screen-top{
    position: relative;
    z-index: 1;
    .header-top{
        padding: 0 50px 0 10px;
    }
}
.xn-screen-body{
    flex: 1;
    display: flex;
    flex-direction: row;
    min-width: 1190px;
    .screen-nav{
        width: 190px;
        background: #333;
        color: #999;
        height: 100%;
        transition: all .3s;
        display: flex;
        flex-direction: column;
        .nav-header{
            height: 50px;
            position: relative;
            border-bottom:1px solid #444;
            .header-logo{
                width: 100%;
                height: 50px;
                padding: 15px;
                line-height: 20px;
                text-align: center;
                display:block;
            }
            .logo-icon{
                height:20px;
                display:block;
                margin: auto;
            }
            .nav-tab-icon{
                position: absolute;
                display: block;
                line-height: 20px;
                z-index: 1;
                top:0;
                right: 0;
                bottom: 0;
                width: 50px;
                padding: 15px;
                transition: all .3s;
                color: #fff;
                font-size: 16px;
                cursor: pointer;
                text-align: center;
            }
        }

        //导航
        .nav-list{
            width:190px;
            transition: all .3s;
            overflow-x: hidden;
            overflow-y: auto;
            &::-webkit-scrollbar {/*滚动条整体样式*/
                width: 8px;     /*高宽分别对应横竖滚动条的尺寸*/
                height: 1px;
            }
            &::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
                border-radius: 10px;
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: #666;
            }
            &::-webkit-scrollbar-track {/*滚动条里面轨道*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                border-radius: 10px;
                background: #333;
            }

            .nav-li:hover{
                .nav-link{
                    border-left: 5px solid #39f;
                    background: #000;
                }
            }

            .nav-link{
                width: 190px;
                line-height: 50px;
                height: 50px;
                border-left: 5px solid #333;
                color: #fff;
                position: relative;
                display: block;
                &:hover{
                    background: #000;
                    border-left: 5px solid #39f;
                }
                .nav-icon{
                    position: absolute;
                    z-index: 1;
                    left: 0;
                    top: 0;
                    width:60px;
                    padding:0 20px;
                    float: left;
                    height: 50px;
                    text-align: center;
                    font-size: 16px;
                    line-height: 50px;
                }
                .nav-name{
                    line-height: 50px;
                    height: 50px;
                    overflow: hidden;
                    margin-left: 60px;
                    display: inline-block;
                }

            }
            .link-icon{
                height: 50px;
                line-height: 50px;
                width: 50px;
                text-align: center;
                transition: all .3s;
                cursor: pointer;
                position: absolute;
                top: 0;
                z-index: 1;
                left:135px;
                display: list-item;
                &:before{
                    content: "";
                    border-top:1px solid #fff;
                    border-right:1px solid #fff;
                    display: inline-block;
                    width: 8px;
                    height: 8px;
                    transform: rotate(45deg);
                    transition: all .3s;
                }
            }

            .nav-li-active{
                .nav-link{
                    border-left: 5px solid #39f;
                    color: #39f;
                }

            }
            .nav-sub-active{
                .link-icon{
                    &:before{
                        transform: rotate(135deg);
                    }
                }
            }

            .sub-nav-layout{
                max-height: 320px;
                background: #000;
                overflow: auto;
                &::-webkit-scrollbar {/*滚动条整体样式*/
                    width: 8px;     /*高宽分别对应横竖滚动条的尺寸*/
                    height: 1px;
                }
                &::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
                    border-radius: 10px;
                    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                    background: #666;
                }
                &::-webkit-scrollbar-track {/*滚动条里面轨道*/
                    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                    border-radius: 10px;
                    background: #333;
                }
                .sub-li{
                    height: 0;
                    transition: all 0.3s;
                    &:hover{
                        background: #39f;
                    }
                    .sub-link{
                        width: 100%;
                        height: 40px;
                        line-height: 40px;
                        padding-left: 65px;
                        overflow: hidden;
                        display: block;
                        color: #fff;
                    }
                }
                .sub-li-active{
                    background: #39f;
                }
            }

            //二级激活
            .nav-sub-active{
                .sub-nav-layout .sub-li{
                    height: 40px;
                }
            }

        }



    }
    // 小导航
    .screen-nav-min{
        width: 70px;
        .nav-header{
            .header-logo{
                display: none;
            }
            .nav-tab-icon{
                right:10px;
            }
        }
        .nav-list{
            width: 70px;
            .nav-link{
                .nav-name{
                    display: none;
                }
            }
            .link-icon{
                display: none;
            }

            .sub-nav-layout{
                position: absolute;
                z-index: 1;
                left: 70px;
                width: 200px;
                margin-top: -50px;
                display: none;
                .sub-li{
                    height: 40px;
                }
            }
            .nav-li:hover{
                .nav-link{
                    border-left: 5px solid #39f;
                    background: #000;
                }
                .sub-nav-layout{
                    display: block;
                }

            }
            .nav-li-active:hover{
                .nav-link{
                    border-left: 5px solid #39f;
                }

            }
        }
    }
    .screen-main{
        flex: 1;
        padding: 0 10px;
        overflow-x:hidden;
        overflow-y: auto;
    }

}