search.less 13 KB

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