list.less 14 KB

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