full-screen.less 10.1 KB
.xn-full-screen{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    .xn-width{
        width: auto;
    }
}
.xn-screen-body{
    flex: 1;
    display: flex;
    flex-direction: row;
    min-width: 850px;
    overflow: hidden;
    .layout-sider{
        z-index: 2;
        width: 256px;
        background: #001529;
        color: #999;
        height: 100%;
        transition: all .3s;
        display: flex;
        flex-direction: column;
        box-shadow: 2px 0 6px rgba(0,21,41,.35);
        .nav-header{
            height: 64px;
            position: relative;
            background: #002140;
            line-height: 64px;
            padding-left: 24px;
            overflow: hidden;
            display: flex;
            align-items: center;
            transition: all 0.3s;
            .header-logo{
                .logo-icon{
                    height:28px;
                    display:block;
                    margin: auto;
                }
            }
            .header-title{
                font-size:20px;
                font-family: "Myriad Pro","Helvetica Neue",Arial,Helvetica,sans-serif;
                font-weight: 600;
                color: #fff;
                margin-left: 12px;
                .logo-title{
                    height: 28px;
                }
            }
        }

        //导航
        .nav-list{
            transition: all .3s;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 8px 0;
            flex: 1;
            &::-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{
                    position: relative;
                  }*/
            .nav-link{
                line-height: 40px;
                height: 40px;
                margin: 4px 0 ;
                color: rgba(255, 255, 255, 0.65);
                position: relative;
                display: flex;
                padding: 0 24px;
                align-items: center;
                &:hover{
                    color: #fff;
                    .link-icon{
                        &:before{
                            border-top:2px solid #fff;
                            border-right:2px solid #fff;
                        }
                    }
                }
                .nav-icon{
                    text-align: center;
                    font-size: 16px;
                    margin-right: 10px;
                    margin-left: 0;
                    transition: all 0.3s;
                }
                .nav-name{
                    flex: 1;
                    overflow: hidden;
                    font-size: 14px;
                    white-space:nowrap;
                }

            }
            .link-icon{
                height: 40px;
                line-height: 40px;
                width: 40px;
                text-align: center;
                transition: all .3s;
                cursor: pointer;
                display: list-item;
                margin-right: -20px;
                &:before{
                    content: "";
                    border-top:2px solid rgba(255,255,255,.65);
                    border-right:2px solid rgba(255,255,255,.65);
                    display: inline-block;
                    width: 6px;
                    height: 6px;
                    transform: rotate(135deg);
                    transition: all .3s;
                }
            }

            .nav-li-active{
                .nav-link{
                    color: #fff;
                }

            }
            .nav-sub-active{
                .link-icon{
                    &:before{
                        transform: rotate(-45deg);
                    }
                }
            }
            .sub-nav-layout{
                max-height: 320px;
                background:#000c17;
                overflow: auto;
                box-shadow: inset 0 2px 8px rgba(0,0,0,.45);
                &::-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;
                    overflow: hidden;
                    .sub-link{
                        width: 100%;
                        height: 40px;
                        line-height: 40px;
                        overflow: hidden;
                        display: block;
                        color: rgba(255,255,255,.65);
                        padding:0 16px 0 48px;
                        &:hover{
                            color: #fff;
                        }
                    }
                }
                .sub-li-active{
                    background: #39f;
                    .sub-link{
                        color: #fff;
                    }
                }
            }

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

        }
    }
    // 小导航
    .layout-sider-min{
        width: 80px;
        .nav-header{
            padding-left: 15px;
            .header-title{
                display: none;
            }
        }
        .nav-list{
            .nav-link{
                .nav-icon{
                    margin-left: 10px;
                }
                .nav-name{
                    display: none;
                }
            }
            .link-icon{
                display: none;
            }
            .sub-nav-layout{
                position: absolute;
                z-index: 1;
                left: 80px;
                width: 165px;
                margin-top: -44px;
                padding-left: 5px;
                display: none;
                background:transparent;
                overflow: auto;
                max-height: 330px;
                box-shadow: inset 0 2px 8px rgba(0,0,0,0);
                &:before{
                    content: "";
                    height: 5px;
                    display: block;
                    background:#000c17;
                    border-radius:5px 5px 0 0;
                }
                &:after{
                    content: "";
                    height: 5px;
                    display: block;
                    background:#000c17;
                    border-radius: 0 0 5px 5px;
                }
                .sub-li{
                    height: 40px;
                    background:#000c17;
                    .sub-link{
                        padding:0 16px 0 16px;
                    }
                }
                .sub-li-active{
                    background:#39f;
                }
            }
            .nav-li:hover{
                .sub-nav-layout{
                    display: block;
                }
            }
        }
    }
    .screen-main{
        flex: 1;
        display: flex;
        flex-direction: column;
        .layout-header{
            height: 64px;
            background: #FFFFFF;
            box-shadow: rgb(240, 241, 242) 0px 2px 8px;
            z-index: 1;
            display: flex;
            .nav-tab{
                height: 64px;
                width: 64px;
                cursor: pointer;
                text-align: center;
                color: rgba(0, 0, 0, 0.65);
                margin-right: 8px;
                &:hover{
                    background: #e6f7ff;
                }
                .nav-tab-icon{
                    font-size: 20px;
                    line-height: 64px;
                }
            }
            .layout-header-center{
                flex: 1;
                .header-search{
                    max-width: 400px;
                    min-width: 200px;
                    width: 40%;
                    height: 100%;
                    display: flex;
                    .search-input{
                        border: 0;
                        flex: 1;
                        padding: 0 20px;
                        &:hover{
                            background: #EAF5FF;
                        }
                    }
                }
            }
            .layout-info{
                height: 64px;
            }
        }
        .layout-body{
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            &::-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: #eee;
            }
            &::-webkit-scrollbar-track {/*滚动条里面轨道*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                border-radius: 10px;
                background: #fff;
            }
            .xn-main{
                padding: 0 10px;
            }
        }
    }

}