search.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. //导航条
  2. .breadcrumb {
  3. width: 100%;
  4. height: 22px;
  5. margin-bottom: 30px;
  6. font-family: Microsoft YaHei, Microsoft YaHei;
  7. font-weight: 400;
  8. font-size: 20px;
  9. color: #666666;
  10. line-height: 23px;
  11. text-align: left;
  12. font-style: normal;
  13. text-transform: none;
  14. :deep(.el-breadcrumb) {
  15. display: inline-block;
  16. vertical-align: -4px;
  17. }
  18. :deep(.el-breadcrumb__inner a),
  19. :deep(.el-breadcrumb__inner.is-link) {
  20. color: #666666;
  21. font-weight: 400;
  22. text-decoration: none;
  23. transition: var(--el-transition-color);
  24. }
  25. span {
  26. font-family: Microsoft YaHei, Microsoft YaHei;
  27. font-weight: 400;
  28. font-size: 20px;
  29. color: #666666;
  30. line-height: 23px;
  31. text-align: left;
  32. font-style: normal;
  33. text-transform: none;
  34. }
  35. span:hover {
  36. color: #666666;
  37. }
  38. .location {
  39. margin-right: 20px;
  40. width: 100px;
  41. height: 22px;
  42. font-family: Microsoft YaHei, Microsoft YaHei;
  43. font-weight: 400;
  44. font-size: 20px;
  45. color: #666666;
  46. line-height: 23px;
  47. text-align: left;
  48. font-style: normal;
  49. text-transform: none;
  50. }
  51. }
  52. .empty {
  53. div {
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. padding-top: 200px;
  58. }
  59. width: 100%;
  60. height: 600px;
  61. font-size: 26px;
  62. color: #CCCCCC;
  63. img {
  64. display: inline-block;
  65. }
  66. }
  67. // 资讯列表
  68. .newsList {
  69. width: 1200px;
  70. margin: 0 auto;
  71. //height: 675px;
  72. margin-bottom: 70px;
  73. .inner {
  74. width: 1200px;
  75. .innerLeft {
  76. width: 100%;
  77. }
  78. .innerLeft,
  79. .innerRight {
  80. border-top: 1px solid #D9D9D9;
  81. clear: both;
  82. float: none;
  83. }
  84. .innerLeft {
  85. //height: 675px;
  86. >.list {
  87. //height: 570px;
  88. margin-bottom: 70px;
  89. >li {
  90. width: 100%;
  91. height: 56px;
  92. white-space: nowrap;
  93. overflow: hidden;
  94. text-overflow: ellipsis;
  95. line-height: 56px;
  96. >a {
  97. width: 360px;
  98. height: 26px;
  99. font-family: Microsoft YaHei, Microsoft YaHei;
  100. font-weight: 400;
  101. font-size: 20px;
  102. color: #333333;
  103. line-height: 26px;
  104. text-align: left;
  105. font-style: normal;
  106. text-transform: none;
  107. }
  108. }
  109. >li:hover>a {
  110. color: #DD7D18;
  111. }
  112. >li:nth-child(1)::after,
  113. >li:nth-child(2)::after {
  114. content: "热";
  115. margin-left: 13px;
  116. background: #DD7D18;
  117. color: #fff;
  118. font-size: 14px;
  119. padding: 0px 2px;
  120. }
  121. >li:nth-child(5n) {
  122. border-bottom: 1px solid #D9D9D9;
  123. }
  124. }
  125. >.pagination {
  126. width: 100%;
  127. height: 34px;
  128. margin-left: 141px;
  129. display: flex;
  130. justify-content: center;
  131. margin: 0;
  132. // 鼠标移入后字体颜色
  133. .el-pagination::v-deep :hover {
  134. color: #DD7D18;
  135. }
  136. .el-pagination.is-background::v-deep .btn-next,
  137. .el-pagination.is-background::v-deep .btn-prev {
  138. width: 70px;
  139. height: 34px;
  140. margin: 0px 10px;
  141. border-radius: 4px;
  142. }
  143. .el-pagination.is-background::v-deep .el-pager li {
  144. margin: 0px 10px;
  145. width: 38px;
  146. height: 34px;
  147. border-radius: 4px;
  148. }
  149. .el-pagination.is-background::v-deep .btn-next.is-active,
  150. .el-pagination.is-background::v-deep .btn-prev.is-active,
  151. .el-pagination.is-background::v-deep .el-pager li.is-active {
  152. background-color: #DD7D18;
  153. color: #fff;
  154. }
  155. }
  156. }
  157. .innerRight {
  158. width: 381px;
  159. height: 605px;
  160. clear: both;
  161. overflow: hidden;
  162. }
  163. }
  164. }
  165. //资讯推荐
  166. .zixuntuijian {
  167. width: 100%;
  168. height: 290px;
  169. margin-bottom: 70px;
  170. .innerLeft {
  171. // 左侧
  172. .zixunLeft {
  173. margin-right: 30px;
  174. }
  175. .zixunRight,
  176. .zixunLeft {
  177. float: left;
  178. width: 380px;
  179. height: 290px;
  180. // 标题部分
  181. >.title {
  182. width: 380px;
  183. }
  184. >.title>h3 {
  185. height: 36px;
  186. font-family: Source Han Sans, Source Han Sans;
  187. font-weight: bold;
  188. font-size: 24px;
  189. color: #000000;
  190. line-height: 28px;
  191. text-align: left;
  192. font-style: normal;
  193. text-transform: none;
  194. border-bottom: 1px solid #DD7D18;
  195. }
  196. >.title>h3>span {
  197. float: right;
  198. width: 56px;
  199. height: 20px;
  200. line-height: 24px;
  201. font-weight: 400;
  202. font-size: 14px;
  203. color: #999999;
  204. font-style: normal;
  205. text-transform: none;
  206. }
  207. .photo_text {
  208. >li:first-child {
  209. width: 380px;
  210. height: 120px;
  211. margin-top: 20px;
  212. margin-bottom: 15px;
  213. position: relative;
  214. >img {
  215. float: left;
  216. width: 160px;
  217. height: 120px;
  218. }
  219. >div {
  220. float: left;
  221. width: 220px;
  222. height: 120px;
  223. padding-left: 15px;
  224. padding-top: 6px;
  225. box-sizing: border-box;
  226. background-color: #f6f6f6;
  227. >h5 {
  228. width: 200px;
  229. height: 54px;
  230. display: -webkit-box;
  231. -webkit-box-orient: vertical;
  232. -webkit-line-clamp: 2;
  233. overflow: hidden;
  234. text-overflow: ellipsis;
  235. word-break: break-all;
  236. font-family: Source Han Sans, Source Han Sans;
  237. font-weight: 500;
  238. font-size: 18px;
  239. color: #333333;
  240. line-height: 26px;
  241. text-align: left;
  242. font-style: normal;
  243. text-transform: none;
  244. }
  245. >p {
  246. width: 200px;
  247. height: 22px;
  248. line-height: 20px;
  249. position: absolute;
  250. bottom: 5px;
  251. right: 0;
  252. >span {
  253. display: inline-block;
  254. // width: 100px;
  255. height: 18px;
  256. font-family: Source Han Sans, Source Han Sans;
  257. font-weight: 400;
  258. font-size: 12px;
  259. color: #999999;
  260. text-align: left;
  261. line-height: 14px;
  262. font-style: normal;
  263. text-transform: none;
  264. }
  265. >span:last-child {
  266. // width: 90px;
  267. text-align: right;
  268. margin-left: 20px;
  269. }
  270. }
  271. }
  272. }
  273. >li {
  274. width: 380px;
  275. height: 25px;
  276. white-space: nowrap;
  277. overflow: hidden;
  278. text-overflow: ellipsis;
  279. font-family: PingFang SC, PingFang SC;
  280. font-weight: 500;
  281. font-size: 18px;
  282. color: #333333;
  283. line-height: 21px;
  284. text-align: left;
  285. font-style: normal;
  286. text-transform: none;
  287. margin-bottom: 10px;
  288. em {
  289. display: inline-block;
  290. width: 8px;
  291. height: 8px;
  292. border-radius: 8px;
  293. margin-right: 10px;
  294. background-color: #d9d9d9;
  295. }
  296. }
  297. >li:hover {
  298. color: #139602;
  299. }
  300. >li:hover em {
  301. background-color: #139602;
  302. }
  303. }
  304. }
  305. }
  306. .innerRight {
  307. width: 381px;
  308. height: 290px;
  309. background-color: #fbfbfb;
  310. >.title {
  311. width: 380px;
  312. height: 40px;
  313. line-height: 40px;
  314. border-top: 1px solid #139602;
  315. border-bottom: 1px solid #e7e7e7;
  316. >h4 {
  317. font-family: Microsoft YaHei, Microsoft YaHei;
  318. font-weight: 400;
  319. margin-left: 20px;
  320. font-size: 20px;
  321. color: #000000;
  322. text-align: left;
  323. font-style: normal;
  324. text-transform: none;
  325. >span {
  326. float: right;
  327. font-family: Microsoft YaHei, Microsoft YaHei;
  328. font-weight: 400;
  329. font-size: 14px;
  330. margin-right: 10px;
  331. color: #999999;
  332. text-align: left;
  333. font-style: normal;
  334. text-transform: none;
  335. }
  336. }
  337. }
  338. .rightList {
  339. height: 540px;
  340. margin-top: 20px;
  341. >li {
  342. height: 100px;
  343. margin-bottom: 10px;
  344. >img {
  345. width: 150px;
  346. height: 100px;
  347. }
  348. >p {
  349. width: 219px;
  350. height: 100px;
  351. padding-left: 12px;
  352. font-family: PingFang SC, PingFang SC;
  353. font-weight: 400;
  354. font-size: 16px;
  355. color: #333333;
  356. line-height: 22px;
  357. text-align: left;
  358. font-style: normal;
  359. text-transform: none;
  360. }
  361. >p:hover {
  362. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  363. }
  364. }
  365. }
  366. }
  367. }
  368. .searchBox {
  369. text-align: center;
  370. padding-bottom: 40px;
  371. }
  372. .search {
  373. width: 100%;
  374. height: 100px;
  375. // background-color: #f5f5f5;
  376. .inner {
  377. width: 1200px;
  378. height: 100px;
  379. // line-height: 100px;
  380. padding-top: 10px;
  381. text-align: center;
  382. input {
  383. width: 582px;
  384. height: 46px;
  385. outline: none;
  386. border: 1px solid #E6E6E6;
  387. border-radius: 0;
  388. padding-left: 20px;
  389. vertical-align: 0px;
  390. font-size: 16px;
  391. color: #666666
  392. }
  393. button {
  394. width: 120px;
  395. height: 48px;
  396. background-color: #DD7D18;
  397. color: #fff;
  398. border: none;
  399. border-radius: 0;
  400. cursor: pointer;
  401. }
  402. }
  403. }