$color:#fff; $bg-color:linear-gradient(to right, rgb(0, 105, 70), rgb(0, 125, 95)); $name-size:17px; .top-header-Jf03{ vertical-align: baseline; .main-Kg48{ height:60px; background: $bg-color; overflow: hidden; padding: 0 24px 0 16px; position: relative; display: flex; align-items: center; justify-content: space-between; color: $color; .left{ display: flex; align-items: center; height: 100%; .logo{ font-size: 0; .img{ height: 30px; width: 30px; cursor: pointer; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); } } .company-name{ display: flex; align-items: center; margin-left: 8px; cursor: pointer; height: 50px; .name{ font-size: $name-size; max-width: 174px; margin-right: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .icon{ color: #fff; font-size: 12px; vertical-align: -0.15em; } } .divider{ height: 20px; width: 1px; background: white; opacity: 0.2; margin-left: 17px; } #top-bar-menu{ padding-left: 19px; height: 100%; white-space: nowrap; position: relative; .layui-nav{ background-color: unset; color:$color; padding: 0; .layui-nav-item{ &:nth-child(n+2){ margin-left: 32px } a{ color:$color; padding: 0; cursor: pointer; } &.layui-this{ &::after{ bottom: 9px!important; width: 100%; height: 3px; border-radius: 2px; background-color: $color; } } &#layui-nav-item-more{ margin-left: 36px; .icon{ vertical-align: -0.15em; } } } .layui-nav-bar{ display: none; } } } } .right-Le52{ display: flex; align-items: center; height: 100%; .quick-search{ background-color: rgba(0, 0, 0, 0.15); border-radius: 16px; border: 1px solid transparent; color: #fff; height: 32px; position: relative; .query-input{ position: relative; font-size: 14px; display: inline-block; width: 100%; width: 300px; &.active{ background-color: white; border-radius: 16px; .input{ color: #495060; font-size: 14px; padding-right: 36px; &:focus{ outline: none; border-color: #0bb27a; } } .icon-search{ display: none; } .icon-search2{ display: block; } } .input{ background: transparent; box-shadow: none; border: none; height: 32px !important; line-height: 32px !important; color: white; -webkit-appearance: none; border-radius: 4px; box-sizing: border-box; display: inline-block; font-size: inherit; outline: none; padding: 0 15px; transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); width: 100%; &::placeholder{ color: rgba(255, 255, 255, 0.7); font-size: 14px; } } } .icon-search,.icon-search2{ font-size: 16px; position: absolute; right: 12px; top: -2px; bottom: 0; margin: auto; width: 1em; height: 1em; overflow: hidden; } .icon-search2{ display: none; } } .notice{ margin-left: 17px; } .feedback{ margin-left: 12px; } .avatar{ margin-left: 19px; } .icon{ vertical-align: -0.15em; } } } }