search.less 11 KB

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