list.less 15 KB

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