nav.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. /*导航风格1*/
  2. .menuStyle1 {
  3. width: 100%;
  4. height: 130px;
  5. background: #1C5468;
  6. margin-bottom: 30px;
  7. .componentBorder {
  8. border-left: 2px dashed #999;
  9. border-right: 2px dashed #999;
  10. }
  11. .menuBoxBg {
  12. width: 1200px;
  13. height: 130px;
  14. background: #1C5468;
  15. margin: 0 auto;
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. .menuBox {
  20. box-sizing: border-box;
  21. display: flex;
  22. flex-wrap: wrap;
  23. justify-content: flex-start;
  24. width: 100%;
  25. div {
  26. a{
  27. color: #fff;
  28. }
  29. width: 12.5%;
  30. cursor: pointer;
  31. box-sizing: border-box;
  32. font-size: 14px;
  33. height: 22px;
  34. line-height: 22px;
  35. text-align: center;
  36. overflow: hidden;
  37. white-space: nowrap;
  38. text-overflow: ellipsis;
  39. text-align: center;
  40. color: #fff;
  41. background: #1C5468;
  42. border-right: #002D41 1px solid;
  43. border-left: #29799D 1px solid;
  44. margin-bottom: 15px;
  45. /* 当是第17个及以后的div时去掉margin-bottom */
  46. &:nth-child(n+17) {
  47. margin-bottom: 0;
  48. }
  49. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  50. &:nth-child(8n+1) {
  51. border-left: none;
  52. }
  53. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  54. &:nth-child(8n) {
  55. border-right: none;
  56. }
  57. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  58. &:last-child {
  59. border-right: none;
  60. }
  61. a {
  62. color: #fff;
  63. }
  64. }
  65. }
  66. }
  67. .menuSectorInputBox {
  68. display: flex;
  69. align-items: center;
  70. justify-content: space-between;
  71. font-size: 14px;
  72. width: 80%;
  73. margin: 0 auto;
  74. border-top: none;
  75. height: 50px;
  76. .menuSectorInputBoxItem {
  77. padding: 0 10px;
  78. input {
  79. margin-right: 10px;
  80. }
  81. .el-select {
  82. margin-right: 10px;
  83. }
  84. }
  85. }
  86. .componentMenuBorder {
  87. border: 2px dashed #999;
  88. }
  89. }
  90. /*导航风格2*/
  91. .menuStyle2 {
  92. width: 100%;
  93. height: 130px;
  94. background: #A91B33;
  95. margin-bottom: 30px;
  96. .componentBorder {
  97. border-left: 2px dashed #999;
  98. border-right: 2px dashed #999;
  99. }
  100. .menuBoxBg {
  101. width: 1200px;
  102. height: 130px;
  103. background: #A91B33;
  104. margin: 0 auto;
  105. display: flex;
  106. align-items: center;
  107. justify-content: center;
  108. .menuBox {
  109. box-sizing: border-box;
  110. display: flex;
  111. flex-wrap: wrap;
  112. justify-content: flex-start;
  113. width: 100%;
  114. div {
  115. a{
  116. color: #fff;
  117. }
  118. width: 12.5%;
  119. cursor: pointer;
  120. box-sizing: border-box;
  121. font-size: 14px;
  122. height: 22px;
  123. line-height: 22px;
  124. text-align: center;
  125. overflow: hidden;
  126. white-space: nowrap;
  127. text-overflow: ellipsis;
  128. text-align: center;
  129. background: #A91B33;
  130. border-right: #88172A 1px solid;
  131. border-left: #DE3350 1px solid;
  132. margin-bottom: 15px;
  133. /* 当是第17个及以后的div时去掉margin-bottom */
  134. &:nth-child(n+17) {
  135. margin-bottom: 0;
  136. }
  137. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  138. &:nth-child(8n+1) {
  139. border-left: none;
  140. }
  141. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  142. &:nth-child(8n) {
  143. border-right: none;
  144. }
  145. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  146. &:last-child {
  147. border-right: none;
  148. }
  149. }
  150. }
  151. }
  152. .menuSectorInputBox {
  153. display: flex;
  154. align-items: center;
  155. justify-content: space-between;
  156. font-size: 14px;
  157. width: 80%;
  158. margin: 0 auto;
  159. border-top: none;
  160. height: 50px;
  161. .menuSectorInputBoxItem {
  162. padding: 0 10px;
  163. input {
  164. margin-right: 10px;
  165. }
  166. .el-select {
  167. margin-right: 10px;
  168. }
  169. }
  170. }
  171. .componentMenuBorder {
  172. border: 2px dashed #999;
  173. }
  174. }
  175. /*导航风格3*/
  176. .menuStyle3 {
  177. width: 100%;
  178. height: 130px;
  179. background: #c82200;
  180. margin-bottom: 30px;
  181. .componentBorder {
  182. border-left: 2px dashed #999;
  183. border-right: 2px dashed #999;
  184. }
  185. .menuBoxBg {
  186. width: 1200px;
  187. height: 130px;
  188. background: #c82200;
  189. margin: 0 auto;
  190. display: flex;
  191. align-items: center;
  192. justify-content: center;
  193. .menuBox {
  194. box-sizing: border-box;
  195. display: flex;
  196. flex-wrap: wrap;
  197. justify-content: flex-start;
  198. width: 100%;
  199. div {
  200. a{
  201. color: #fff;
  202. }
  203. width: 12.5%;
  204. cursor: pointer;
  205. box-sizing: border-box;
  206. font-size: 14px;
  207. height: 22px;
  208. line-height: 22px;
  209. text-align: center;
  210. overflow: hidden;
  211. white-space: nowrap;
  212. text-overflow: ellipsis;
  213. text-align: center;
  214. background: #c82200;
  215. border-right: #9f2005 1px solid;
  216. border-left: #fb6c4f 1px solid;
  217. margin-bottom: 15px;
  218. /* 当是第17个及以后的div时去掉margin-bottom */
  219. &:nth-child(n+17) {
  220. margin-bottom: 0;
  221. }
  222. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  223. &:nth-child(8n+1) {
  224. border-left: none;
  225. }
  226. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  227. &:nth-child(8n) {
  228. border-right: none;
  229. }
  230. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  231. &:last-child {
  232. border-right: none;
  233. }
  234. }
  235. }
  236. }
  237. .menuSectorInputBox {
  238. display: flex;
  239. align-items: center;
  240. justify-content: space-between;
  241. font-size: 14px;
  242. width: 80%;
  243. margin: 0 auto;
  244. border-top: none;
  245. height: 50px;
  246. .menuSectorInputBoxItem {
  247. padding: 0 10px;
  248. input {
  249. margin-right: 10px;
  250. }
  251. .el-select {
  252. margin-right: 10px;
  253. }
  254. }
  255. }
  256. .componentMenuBorder {
  257. border: 2px dashed #999;
  258. }
  259. }
  260. /*导航风格4*/
  261. .menuStyle4 {
  262. width: 100%;
  263. height: 130px;
  264. background: #fe8f00;
  265. margin-bottom: 30px;
  266. .componentBorder {
  267. border-left: 2px dashed #999;
  268. border-right: 2px dashed #999;
  269. }
  270. .menuBoxBg {
  271. width: 1200px;
  272. height: 130px;
  273. background: #fe8f00;
  274. margin: 0 auto;
  275. display: flex;
  276. align-items: center;
  277. justify-content: center;
  278. .menuBox {
  279. box-sizing: border-box;
  280. display: flex;
  281. flex-wrap: wrap;
  282. justify-content: flex-start;
  283. width: 100%;
  284. div {
  285. a{
  286. color: #fff;
  287. }
  288. width: 12.5%;
  289. cursor: pointer;
  290. box-sizing: border-box;
  291. font-size: 14px;
  292. height: 22px;
  293. line-height: 22px;
  294. text-align: center;
  295. overflow: hidden;
  296. white-space: nowrap;
  297. text-overflow: ellipsis;
  298. text-align: center;
  299. background: #fe8f00;
  300. border-right: #df7e01 1px solid;
  301. border-left: #ffa531 1px solid;
  302. margin-bottom: 15px;
  303. /* 当是第17个及以后的div时去掉margin-bottom */
  304. &:nth-child(n+17) {
  305. margin-bottom: 0;
  306. }
  307. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  308. &:nth-child(8n+1) {
  309. border-left: none;
  310. }
  311. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  312. &:nth-child(8n) {
  313. border-right: none;
  314. }
  315. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  316. &:last-child {
  317. border-right: none;
  318. }
  319. }
  320. }
  321. }
  322. .menuSectorInputBox {
  323. display: flex;
  324. align-items: center;
  325. justify-content: space-between;
  326. font-size: 14px;
  327. width: 80%;
  328. margin: 0 auto;
  329. border-top: none;
  330. height: 50px;
  331. .menuSectorInputBoxItem {
  332. padding: 0 10px;
  333. input {
  334. margin-right: 10px;
  335. }
  336. .el-select {
  337. margin-right: 10px;
  338. }
  339. }
  340. }
  341. .componentMenuBorder {
  342. border: 2px dashed #999;
  343. }
  344. }