$headerTextColor: #ffffff; #app { .header-container { min-width: 1300px; position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: $headerHeight; background: url("/images/bg.png") repeat-x; padding-left: 20px; color: $headerTextColor; // line-height: $headerHeight; .header-left { float: left; height: $headerHeight; display: flex; align-items: center; img.logo { height: 78px; } } .tip-box { margin-left: 10px; display: flex; flex-direction: column; justify-content: center; .tip-system { font-size: 2em; font-weight: 400; letter-spacing: 2px; } .tip-theme { display: flex; justify-content: space-between; font-size: 1.3em; font-weight: 200; letter-spacing: 20px; margin: 10px 0 0 2px; .tip-theme-right { margin-right: -14px; } } } .header-right { float: right; height: $headerHeight; margin-right: 10px; } .right-top { height: $headerHeight / 2; margin-top: 5px; display: flex; align-items: center; font-size: 14px; } .right-top-item { margin-left: 20px; cursor: pointer; transition: background .3s; &:hover { background: rgba(0, 0, 0, .025) } .item-message-badge .el-badge__content { display: none; } .item-title { margin-left: 10px; } .badge-item { .el-badge__content { font-size: 8px; height: 15px; line-height: 14px; padding: 0 3px; &.is-fixed { top: -3px; transform: translateY(-50%) translateX(100%) scale(0.8); } } } .el-avatar, .user-name { vertical-align: middle; font-size: 14px; color: $headerTextColor; } .user-name { margin-left: 5px; } } } }