pc.less 14 KB

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