search.less 13 KB

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