list.less 12 KB

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