$bg-color :#20222a; $color-white :#fff; $color-active :#2168fe; .z-header{ height:60px; width:100%; background-color: $bg-color; color: $color-white; .logo-box{ padding: 0 15px; width:265px; line-height: 60px; font-size: 1.3em; .user-img,.user-name{ float: left; height: 60px; padding: 0 10px; line-height: 60px; } .user-name{ overflow: hidden; display: inline-block; width: 150px; overflow: hidden; white-space: nowrap; text-overflow:ellipsis; } img{ height: 30px; } .user-drop{ cursor: pointer; color: #808186; } .z-drop-box{ top:16px; } .dividing{ float: right; height: 20px; width: 1px; background-color: #808186; margin-top: 20px; } } .header-menu { .layui-nav{ background-color: $bg-color; height: 60px; transition: all .5s; &:hover{ height: auto; } &.layui-layout-left{ left: 280px; right: 340px; } .layui-nav-bar{ display: none; } .layui-this:after{ display: none; } .layui-nav-item{ text-align: center; line-height: 20px; padding: 10px 0; transition: 0.3s; width: 85px; a{ padding:0 15px; white-space: nowrap; } &:hover{ background-color:#121318; color: $color-active; cursor: pointer; & a{ color: $color-active; } } .fas{ font-size: 1.2em; &.lit{ font-size: 1em; } } } } } .layui-nav.header-operation{ background-color: $bg-color; .layui-nav-bar{ background-color: $color-active; } } }