list.less 13 KB

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