nav.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. }