search.less 13 KB

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