nav.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*导航风格1*/
  2. .menuStyle1 {
  3. width: 100%;
  4. height: 130px;
  5. background: #1C5468;
  6. .componentBorder {
  7. border-left: 2px dashed #999;
  8. border-right: 2px dashed #999;
  9. }
  10. .menuBoxBg {
  11. width: 1200px;
  12. height: 130px;
  13. background: #1C5468;
  14. margin: 0 auto;
  15. display: flex;
  16. align-items: center;
  17. justify-content: center;
  18. .menuBox {
  19. box-sizing: border-box;
  20. display: flex;
  21. flex-wrap: wrap;
  22. justify-content: flex-start;
  23. width: 100%;
  24. div {
  25. a{
  26. color: #fff;
  27. }
  28. width: 12.5%;
  29. cursor: pointer;
  30. box-sizing: border-box;
  31. font-size: 14px;
  32. height: 22px;
  33. line-height: 22px;
  34. text-align: center;
  35. overflow: hidden;
  36. white-space: nowrap;
  37. text-overflow: ellipsis;
  38. text-align: center;
  39. color: #fff;
  40. background: #1C5468;
  41. border-right: #002D41 1px solid;
  42. border-left: #29799D 1px solid;
  43. margin-bottom: 15px;
  44. /* 当是第17个及以后的div时去掉margin-bottom */
  45. &:nth-child(n+17) {
  46. margin-bottom: 0;
  47. }
  48. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  49. &:nth-child(8n+1) {
  50. border-left: none;
  51. }
  52. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  53. &:nth-child(8n) {
  54. border-right: none;
  55. }
  56. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  57. &:last-child {
  58. border-right: none;
  59. }
  60. a {
  61. color: #fff;
  62. }
  63. }
  64. }
  65. }
  66. .menuSectorInputBox {
  67. display: flex;
  68. align-items: center;
  69. justify-content: space-between;
  70. font-size: 14px;
  71. width: 80%;
  72. margin: 0 auto;
  73. border-top: none;
  74. height: 50px;
  75. .menuSectorInputBoxItem {
  76. padding: 0 10px;
  77. input {
  78. margin-right: 10px;
  79. }
  80. .el-select {
  81. margin-right: 10px;
  82. }
  83. }
  84. }
  85. .componentMenuBorder {
  86. border: 2px dashed #999;
  87. }
  88. }
  89. /*导航风格2*/
  90. .menuStyle2 {
  91. width: 100%;
  92. height: 130px;
  93. background: #A91B33;
  94. .componentBorder {
  95. border-left: 2px dashed #999;
  96. border-right: 2px dashed #999;
  97. }
  98. .menuBoxBg {
  99. width: 1200px;
  100. height: 130px;
  101. background: #A91B33;
  102. margin: 0 auto;
  103. display: flex;
  104. align-items: center;
  105. justify-content: center;
  106. .menuBox {
  107. box-sizing: border-box;
  108. display: flex;
  109. flex-wrap: wrap;
  110. justify-content: flex-start;
  111. width: 100%;
  112. div {
  113. a{
  114. color: #fff;
  115. }
  116. width: 12.5%;
  117. cursor: pointer;
  118. box-sizing: border-box;
  119. font-size: 14px;
  120. height: 22px;
  121. line-height: 22px;
  122. text-align: center;
  123. overflow: hidden;
  124. white-space: nowrap;
  125. text-overflow: ellipsis;
  126. text-align: center;
  127. background: #A91B33;
  128. border-right: #88172A 1px solid;
  129. border-left: #DE3350 1px solid;
  130. margin-bottom: 15px;
  131. /* 当是第17个及以后的div时去掉margin-bottom */
  132. &:nth-child(n+17) {
  133. margin-bottom: 0;
  134. }
  135. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  136. &:nth-child(8n+1) {
  137. border-left: none;
  138. }
  139. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  140. &:nth-child(8n) {
  141. border-right: none;
  142. }
  143. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  144. &:last-child {
  145. border-right: none;
  146. }
  147. }
  148. }
  149. }
  150. .menuSectorInputBox {
  151. display: flex;
  152. align-items: center;
  153. justify-content: space-between;
  154. font-size: 14px;
  155. width: 80%;
  156. margin: 0 auto;
  157. border-top: none;
  158. height: 50px;
  159. .menuSectorInputBoxItem {
  160. padding: 0 10px;
  161. input {
  162. margin-right: 10px;
  163. }
  164. .el-select {
  165. margin-right: 10px;
  166. }
  167. }
  168. }
  169. .componentMenuBorder {
  170. border: 2px dashed #999;
  171. }
  172. }