_header.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. $color:#fff;
  2. $bg-color:linear-gradient(to right, rgb(0, 105, 70), rgb(0, 125, 95));
  3. $name-size:17px;
  4. .top-header-Jf03{
  5. vertical-align: baseline;
  6. .main-Kg48{
  7. height:60px;
  8. background: $bg-color;
  9. overflow: hidden;
  10. padding: 0 24px 0 16px;
  11. position: relative;
  12. display: flex;
  13. align-items: center;
  14. justify-content: space-between;
  15. color: $color;
  16. .left{
  17. display: flex;
  18. align-items: center;
  19. height: 100%;
  20. .logo{
  21. font-size: 0;
  22. .img{
  23. height: 30px;
  24. width: 30px;
  25. cursor: pointer;
  26. border-radius: 50%;
  27. border: 1px solid rgba(255, 255, 255, 0.2);
  28. }
  29. }
  30. .company-name{
  31. display: flex;
  32. align-items: center;
  33. margin-left: 8px;
  34. cursor: pointer;
  35. height: 50px;
  36. .name{
  37. font-size: $name-size;
  38. max-width: 174px;
  39. margin-right: 4px;
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. white-space: nowrap;
  43. }
  44. .icon{
  45. color: #fff;
  46. font-size: 12px;
  47. vertical-align: -0.15em;
  48. }
  49. }
  50. .divider{
  51. height: 20px;
  52. width: 1px;
  53. background: white;
  54. opacity: 0.2;
  55. margin-left: 17px;
  56. }
  57. #top-bar-menu{
  58. padding-left: 19px;
  59. height: 100%;
  60. white-space: nowrap;
  61. position: relative;
  62. .layui-nav{
  63. background-color: unset;
  64. color:$color;
  65. padding: 0;
  66. .layui-nav-item{
  67. &:nth-child(n+2){
  68. margin-left: 32px
  69. }
  70. a{
  71. color:$color;
  72. padding: 0;
  73. cursor: pointer;
  74. }
  75. &.layui-this{
  76. &::after{
  77. bottom: 9px!important;
  78. width: 100%;
  79. height: 3px;
  80. border-radius: 2px;
  81. background-color: $color;
  82. }
  83. }
  84. &#layui-nav-item-more{
  85. margin-left: 36px;
  86. .icon{
  87. vertical-align: -0.15em;
  88. }
  89. }
  90. }
  91. .layui-nav-bar{
  92. display: none;
  93. }
  94. }
  95. }
  96. }
  97. .right-Le52{
  98. display: flex;
  99. align-items: center;
  100. height: 100%;
  101. .quick-search{
  102. background-color: rgba(0, 0, 0, 0.15);
  103. border-radius: 16px;
  104. border: 1px solid transparent;
  105. color: #fff;
  106. height: 32px;
  107. position: relative;
  108. .query-input{
  109. position: relative;
  110. font-size: 14px;
  111. display: inline-block;
  112. width: 100%;
  113. width: 300px;
  114. &.active{
  115. background-color: white;
  116. border-radius: 16px;
  117. .input{
  118. color: #495060;
  119. font-size: 14px;
  120. padding-right: 36px;
  121. &:focus{
  122. outline: none;
  123. border-color: #0bb27a;
  124. }
  125. }
  126. .icon-search{
  127. display: none;
  128. }
  129. .icon-search2{
  130. display: block;
  131. }
  132. }
  133. .input{
  134. background: transparent;
  135. box-shadow: none;
  136. border: none;
  137. height: 32px !important;
  138. line-height: 32px !important;
  139. color: white;
  140. -webkit-appearance: none;
  141. border-radius: 4px;
  142. box-sizing: border-box;
  143. display: inline-block;
  144. font-size: inherit;
  145. outline: none;
  146. padding: 0 15px;
  147. transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  148. width: 100%;
  149. &::placeholder{
  150. color: rgba(255, 255, 255, 0.7);
  151. font-size: 14px;
  152. }
  153. }
  154. }
  155. .icon-search,.icon-search2{
  156. font-size: 16px;
  157. position: absolute;
  158. right: 12px;
  159. top: -2px;
  160. bottom: 0;
  161. margin: auto;
  162. width: 1em;
  163. height: 1em;
  164. overflow: hidden;
  165. }
  166. .icon-search2{
  167. display: none;
  168. }
  169. }
  170. .notice{
  171. margin-left: 17px;
  172. }
  173. .feedback{
  174. margin-left: 12px;
  175. }
  176. .avatar{
  177. margin-left: 19px;
  178. }
  179. .icon{
  180. vertical-align: -0.15em;
  181. }
  182. }
  183. }
  184. }