header.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. header a {
  2. color: #fff;
  3. }
  4. .ms-badge12 {
  5. /* width: 50px; */
  6. padding: 0 20px;
  7. line-height: 32px;
  8. display: inline-block;
  9. color: #ffffff;
  10. font-size: 12px;
  11. text-align: center;
  12. border: 1px solid rgba(255, 255, 255, 1);
  13. background: rgba(255, 255, 255, 0.05);
  14. height: 34px;
  15. border-width: 1px;
  16. border-radius: 4px;
  17. }
  18. .user-name {
  19. color: #ffffff;
  20. font-size: 14px;
  21. line-height: 22px;
  22. }
  23. header .notification .iconfont {
  24. margin-top: -5px;
  25. }
  26. .icon-arrow-bottom {
  27. width: 12px;
  28. height: 25px;
  29. background: url(/static/index/image/nav/nav-arrow-down.svg) no-repeat center center;
  30. background-size: 100% 100%;
  31. }
  32. .icon-arrow-bottom:before {
  33. content: '';
  34. }
  35. @media (min-width: 1001px) and (max-width: 1200px) {
  36. header .container {
  37. width: 100%;
  38. padding-right: 5px;
  39. padding-left: 05px;
  40. }
  41. .header .ms-nav {
  42. margin: 26px 0 0;
  43. }
  44. .header .ms-nav>li {
  45. margin: 0 1.2vw;
  46. }
  47. .header .ms-nav>li>a {
  48. padding: 0 0 5px;
  49. }
  50. .header .ms-nav>li a:hover {
  51. color: #ffffff;
  52. }
  53. .user-name {
  54. color: #ffffff;
  55. }
  56. }
  57. @media (min-width: 768px) and (max-width: 1000px) {
  58. header .container {
  59. width: 100%;
  60. padding-right: 0;
  61. padding-left: 0;
  62. }
  63. .header .ms-nav {
  64. margin: 26px 0 0 -25px;
  65. }
  66. .header .ms-nav>li {
  67. margin: 0 1vw;
  68. }
  69. .header .ms-nav>li>a {
  70. padding: 0 0 5px;
  71. }
  72. .header .header-left img.hidden-xs {
  73. transform: scale(0.7) translateX(-10px);
  74. }
  75. .user-name {
  76. color: #ffffff;
  77. display: none;
  78. }
  79. .ms-badge12 {
  80. padding: 0 10px;
  81. }
  82. }
  83. @media (max-width: 767px) {
  84. header .iconfont {
  85. background: url(/static/index/image/m/moban2/icon-menu.svg) no-repeat center center;
  86. background-size: 100% 100%;
  87. width: 34px;
  88. height: 34px;
  89. /* display: inline-block; */
  90. /* vertical-align: middle; */
  91. /* position: absolute; */
  92. pointer-events: none;
  93. margin: unset;
  94. }
  95. header .iconfont::before {
  96. content: '';
  97. }
  98. .header .ms-nav .phone-user-center .icon-arrow-down {
  99. background-image: url(/static/index/image/m/nav/icon-arrow-down.svg);
  100. background-size: 100% 100%;
  101. width: 20px;
  102. height: 20px;
  103. display: inline-block;
  104. vertical-align: middle;
  105. position: absolute;
  106. right: 0;
  107. top: 10px;
  108. margin: unset;
  109. }
  110. .header .phone-menu {
  111. background-image: url(/static/index/image/m/moban2/icon-menu.svg);
  112. margin-top: 17px;
  113. /* top: 17px; */
  114. /* right: 0; */
  115. pointer-events: auto;
  116. }
  117. header {
  118. background: url(/static/index/image/m/nav/nav-bg.png) no-repeat center;
  119. background-position: top center;
  120. background-size: 100% 100%;
  121. box-shadow: unset;
  122. height: 68px;
  123. position: fixed;
  124. z-index: 1000;
  125. }
  126. .header .header-left {
  127. margin: 17px 0 0 3.4px;
  128. }
  129. .header .header-left img {
  130. width: 119px;
  131. height: 34px;
  132. }
  133. /* nav */
  134. .header .phone-user-name .iconfont {
  135. /* position: relative; */
  136. width: 30px;
  137. height: 24px;
  138. /* top: -2px; */
  139. background: unset;
  140. margin-right: 12px;
  141. }
  142. .header .phone-user-name .iconfont img {
  143. display: block;
  144. width: 30px;
  145. height: 24px;
  146. }
  147. .header .phone-user-name {
  148. line-height: 24px;
  149. height: 24px;
  150. font-family: Microsoft YaHei;
  151. font-weight: 400;
  152. font-size: 14px;
  153. color: rgba(21, 21, 21, 1);
  154. margin-bottom: 12px;
  155. display: inline-flex!important;
  156. }
  157. .header .phone-user-name .certified {
  158. margin-left: 6px;
  159. }
  160. .header .phone-shadow {
  161. left: 0;
  162. opacity: 0;
  163. pointer-events: none;
  164. transition: all 0.5s cubic-bezier(0.4, 0, 1, 1);
  165. }
  166. .header .phone-shadow.show {
  167. opacity: 1;
  168. pointer-events: auto;
  169. }
  170. .header .ms-nav {
  171. margin: 0 0 15px 0;
  172. position: relative;
  173. top: unset;
  174. }
  175. .header .phone-nav-wrap {
  176. background: #fff;
  177. width: 300px;
  178. height: 100%;
  179. position: fixed;
  180. left: -200%;
  181. top: 0;
  182. cursor: pointer;
  183. z-index: 1001;
  184. padding: 20px 12px;
  185. }
  186. .header .ms-nav>li {
  187. float: none;
  188. border-bottom: unset;
  189. padding-left: 20px;
  190. margin-bottom: 9px;
  191. position: relative;
  192. font-family: Source Han Sans SC;
  193. font-weight: 500;
  194. vertical-align: middle;
  195. margin: unset;
  196. margin-bottom: 9px;
  197. }
  198. .header .ms-nav>li.active::before {
  199. content: "";
  200. width: 4px;
  201. height: 32px;
  202. top: 5px;
  203. left: 0;
  204. position: absolute;
  205. background-color: rgba(33, 104, 251, 1);
  206. }
  207. .header .ms-nav>li.active {
  208. background-color: rgba(248, 248, 248, 1);
  209. }
  210. .header .ms-nav>li>a,
  211. .header .ms-nav>li .user1>a {
  212. font-size: 16px;
  213. line-height: 44px;
  214. font-size: 16px;
  215. color: rgba(38, 38, 38, 1);
  216. width: 85%;
  217. display: inline-block;
  218. }
  219. .header .ms-nav>li.active>a,
  220. .header .ms-nav>li.active .user1>a {
  221. color: rgba(33, 104, 251, 1);
  222. }
  223. /* nav 二级 */
  224. .header .ms-nav .phone-user-center dl a {
  225. color: rgb(88 88 88);
  226. padding-left: 0.2rem;
  227. font-size: 0.25rem;
  228. line-height: 0.55rem;
  229. }
  230. /* 登錄按鈕 */
  231. .login .btn-nav {
  232. width: 121px;
  233. height: 34px;
  234. border-radius: 4px;
  235. border: 1px solid rgba(33, 104, 251, 1);
  236. font-size: 16px;
  237. line-height: 34px;
  238. }
  239. .header .btn-white {
  240. background: #fff;
  241. color: rgba(33, 104, 251, 1);
  242. }
  243. .header .login {
  244. position: relative;
  245. right: unset;
  246. }
  247. .login-in .login-user .logout1 {
  248. height: 34px;
  249. border-radius: 4px;
  250. border: 1px solid rgba(33, 104, 251, 1);
  251. font-size: 16px;
  252. line-height: 34px;
  253. background: #fff;
  254. color: rgba(33, 104, 251, 1);
  255. margin: 0 0 0 9px;
  256. width: 259px;
  257. text-align: center;
  258. }
  259. .login-in .login-user {
  260. padding-top: 30px;
  261. }
  262. /* 登錄信息 */
  263. .login-in {
  264. position: relative;
  265. right: unset;
  266. top: unset;
  267. }
  268. }