search.less 13 KB

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