topnav.less 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. @subject-maxwidth:1460px;
  2. @subject-minwidth:1220px;
  3. .header-nav{
  4. width:100%;
  5. font-size: 12px;
  6. height: 195px;
  7. .header-nav-content-box{
  8. width:100%;
  9. z-index: 999;
  10. position:fixed;
  11. .ad_top{
  12. width: 100%;
  13. height: 80px;
  14. position: relative;
  15. a{
  16. width: 100%;
  17. height:100%;
  18. img{
  19. position: absolute;
  20. top: 0;
  21. left: 50%;
  22. margin-left: -966px;
  23. }
  24. }
  25. }
  26. .header-first-box{
  27. width:100%;
  28. line-height: 35px;
  29. background: #f5f5f5;
  30. overflow: hidden;
  31. .header-nav-first{
  32. width: @subject-minwidth;
  33. margin:0 auto;
  34. height:35px;
  35. .nav-first-left{
  36. float:left;
  37. height:35px;
  38. font-size:12px;
  39. .city-menu{
  40. height:35px;
  41. padding:0 11px 0 24px;
  42. position: relative;
  43. a{
  44. color:#0cb46a;
  45. }
  46. i{
  47. position: absolute;
  48. left: 5px;
  49. color: #0cb46a;
  50. }
  51. }
  52. }
  53. .nav-first-right{
  54. font-size: 12px;
  55. float:right;
  56. height:35px;
  57. li{
  58. position: relative;
  59. float:right;
  60. padding:0 14px 0 14px;
  61. .phone-number{
  62. margin-left:15px;
  63. color:#ff5a00;
  64. span{
  65. display: inline-block;
  66. text-decoration: underline;
  67. position: inherit;
  68. border-left: none;
  69. }
  70. }
  71. .phone-number:hover{
  72. color:#ff5a00;
  73. }
  74. a{
  75. color:#999;
  76. .icon-phone{
  77. padding:0;
  78. margin:0;
  79. position: absolute;
  80. top: 0;
  81. left:10px;
  82. border: none;
  83. }
  84. }
  85. span{
  86. display: block;
  87. position: absolute;
  88. top: 10px;
  89. right:0;
  90. height:12px;
  91. border-left: 1px solid #ddd;
  92. }
  93. i{
  94. display: inline-block;
  95. margin: 14px 0 0 3px;
  96. border-top: 5px solid #999;
  97. border-left: 3px solid transparent;
  98. border-right: 3px solid transparent;
  99. }
  100. }
  101. li:hover{
  102. a{
  103. color:#0cb46a;
  104. }
  105. .jiantou{
  106. border-top: 5px solid #0cb46a;
  107. }
  108. }
  109. }
  110. }
  111. }
  112. .header-last-box{
  113. width:100%;
  114. height:80px;
  115. background: #fff;
  116. .header-nav-content{
  117. width:@subject-minwidth;
  118. height:100%;
  119. margin:0 auto;
  120. position: relative;
  121. .header-logo{
  122. display: inline-block;
  123. position: absolute;
  124. width:157px;
  125. height:100%;
  126. a{
  127. position:absolute;
  128. top: 50%;
  129. left:0;
  130. margin-top:-22px;
  131. }
  132. }
  133. .header-content-center{
  134. width:70%;
  135. height:100%;
  136. margin:0 auto;
  137. ul:after{
  138. content:"";
  139. display: block;
  140. height:0;
  141. clear: both;
  142. }
  143. ul{
  144. height:100%;
  145. li{
  146. float:left;
  147. height:100%;
  148. padding:0 25px;
  149. position: relative;
  150. a{
  151. display: block;
  152. color:#333;
  153. font-size:16px;
  154. position: relative;
  155. top: 50%;
  156. margin-top: -11px;
  157. span{
  158. display: none;
  159. width:100%;
  160. height:0;
  161. border-top:1px solid #0cb46a;
  162. position: absolute;
  163. top:50%;
  164. margin-top:12px;
  165. }
  166. i{
  167. display: block;
  168. position: absolute;
  169. top: 9px;
  170. right: -13px;
  171. border-left: 4px solid transparent;
  172. border-right: 4px solid transparent;
  173. border-top: 5px solid #999;
  174. }
  175. }
  176. }
  177. li:hover{
  178. a{
  179. color:#0cb46a;
  180. span{
  181. display: block;
  182. }
  183. i{
  184. border-left: 4px solid transparent;
  185. border-right: 4px solid transparent;
  186. border-top: none;
  187. border-bottom: 5px solid #0cb46a;
  188. top: 8px;
  189. }
  190. }
  191. }
  192. }
  193. }
  194. .header-content-search{
  195. position: absolute;
  196. right:0;
  197. top:0;
  198. height:100%;
  199. form{
  200. position: relative;
  201. top: 50%;
  202. margin-top:-17px;
  203. div{
  204. height:34px;
  205. border:1px solid #ccc;
  206. input{
  207. float:left;
  208. font-size: 14px;
  209. border: none;
  210. padding:8px 0 9px 9px;
  211. outline: none;
  212. }
  213. i{
  214. display: inline-block;
  215. width:20px;
  216. height:20px;
  217. font-size: 18px;
  218. border: none;
  219. margin:7px 10px 0 10px;
  220. cursor: pointer;
  221. }
  222. }
  223. }
  224. }
  225. }
  226. }
  227. .drop-down-menu{
  228. display: none;
  229. position: absolute;
  230. width: 100%;
  231. height: 114px;
  232. background: #fff;
  233. border-top: 1px solid #ddd;
  234. padding-top: 36px;
  235. box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  236. div{
  237. display: none;
  238. width: 929px;
  239. height: 100%;
  240. position: absolute;
  241. top: 0;
  242. left: 50%;
  243. margin-left: -464.5px;
  244. ul:after{
  245. content: '';
  246. display: block;
  247. clear: both;
  248. }
  249. ul{
  250. width: 100%;
  251. height: 100%;
  252. box-sizing: border-box;
  253. padding: 0 60px;
  254. li{
  255. float: left;
  256. height: 100%;
  257. a{
  258. display: block;
  259. width: 100%;
  260. height: 100%;
  261. img{
  262. height: 80px;
  263. width: 80px;
  264. margin: 0 auto;
  265. margin-top: 20px;
  266. }
  267. i{
  268. display: block;
  269. text-align: center;
  270. margin-top: 10px;
  271. font-size: 16px;
  272. }
  273. }
  274. a:hover{
  275. color: #fb752c;
  276. }
  277. }
  278. }
  279. }
  280. .zbxx{
  281. ul{
  282. li{
  283. width: 33.33333%;
  284. }
  285. }
  286. }
  287. .download{
  288. ul{
  289. li{
  290. width: 25%;
  291. }
  292. }
  293. }
  294. }
  295. }
  296. }
  297. @media screen and (min-width: 1460px){
  298. .header-nav{
  299. .header-nav-content-box{
  300. .header-first-box{
  301. .header-nav-first{
  302. width:@subject-maxwidth;
  303. }
  304. }
  305. .header-last-box{
  306. .header-nav-content{
  307. width:@subject-maxwidth;
  308. .header-content-center{
  309. width: 70%;
  310. }
  311. }
  312. }
  313. }
  314. }
  315. }