list.less 11 KB

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