nav.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. .componentBorder {
  96. border-left: 2px dashed #999;
  97. border-right: 2px dashed #999;
  98. }
  99. .menuBoxBg {
  100. width: 1200px;
  101. height: 130px;
  102. background: #A91B33;
  103. margin: 0 auto;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. .menuBox {
  108. box-sizing: border-box;
  109. display: flex;
  110. flex-wrap: wrap;
  111. justify-content: flex-start;
  112. width: 100%;
  113. div {
  114. a{
  115. color: #fff;
  116. }
  117. width: 12.5%;
  118. cursor: pointer;
  119. box-sizing: border-box;
  120. font-size: 14px;
  121. height: 22px;
  122. line-height: 22px;
  123. text-align: center;
  124. overflow: hidden;
  125. white-space: nowrap;
  126. text-overflow: ellipsis;
  127. text-align: center;
  128. background: #A91B33;
  129. border-right: #88172A 1px solid;
  130. border-left: #DE3350 1px solid;
  131. margin-bottom: 15px;
  132. /* 当是第17个及以后的div时去掉margin-bottom */
  133. &:nth-child(n+17) {
  134. margin-bottom: 0;
  135. }
  136. /* 每行的第一个(第1、9、17...个)去掉左边框 */
  137. &:nth-child(8n+1) {
  138. border-left: none;
  139. }
  140. /* 每行的最后一个(第8、16、24...个)去掉右边框 */
  141. &:nth-child(8n) {
  142. border-right: none;
  143. }
  144. /* 最后一行的最后一个(如果总数不是8的倍数)去掉右边框 */
  145. &:last-child {
  146. border-right: none;
  147. }
  148. }
  149. }
  150. }
  151. .menuSectorInputBox {
  152. display: flex;
  153. align-items: center;
  154. justify-content: space-between;
  155. font-size: 14px;
  156. width: 80%;
  157. margin: 0 auto;
  158. border-top: none;
  159. height: 50px;
  160. .menuSectorInputBoxItem {
  161. padding: 0 10px;
  162. input {
  163. margin-right: 10px;
  164. }
  165. .el-select {
  166. margin-right: 10px;
  167. }
  168. }
  169. }
  170. .componentMenuBorder {
  171. border: 2px dashed #999;
  172. }
  173. }