list.less 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  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. .hotList {
  265. width: 270px;
  266. height: 618px;
  267. }
  268. }
  269. }
  270. }
  271. //资讯推荐
  272. .zixuntuijian {
  273. width: 100%;
  274. height: 290px;
  275. margin-bottom: 70px;
  276. .innerLeft {
  277. // 左侧
  278. .zixunLeft {
  279. margin-right: 30px;
  280. }
  281. .zixunRight,
  282. .zixunLeft {
  283. float: left;
  284. width: 380px;
  285. height: 290px;
  286. // 标题部分
  287. >.title {
  288. width: 380px;
  289. }
  290. >.title>h3 {
  291. height: 36px;
  292. font-family: Source Han Sans, Source Han Sans;
  293. font-weight: bold;
  294. font-size: 24px;
  295. color: #000000;
  296. line-height: 28px;
  297. text-align: left;
  298. font-style: normal;
  299. text-transform: none;
  300. border-bottom: 1px solid #dd7d18;
  301. }
  302. >.title>h3>span {
  303. float: right;
  304. width: 56px;
  305. height: 20px;
  306. line-height: 24px;
  307. font-weight: 400;
  308. font-size: 14px;
  309. color: #999999;
  310. font-style: normal;
  311. text-transform: none;
  312. }
  313. .photo_text {
  314. >li:first-child {
  315. width: 380px;
  316. height: 120px;
  317. margin-top: 20px;
  318. margin-bottom: 15px;
  319. position: relative;
  320. >img {
  321. float: left;
  322. width: 160px;
  323. height: 120px;
  324. }
  325. >div {
  326. float: left;
  327. width: 220px;
  328. height: 120px;
  329. padding-left: 15px;
  330. padding-top: 6px;
  331. box-sizing: border-box;
  332. background-color: #f6f6f6;
  333. >h5 {
  334. width: 200px;
  335. height: 54px;
  336. display: -webkit-box;
  337. -webkit-box-orient: vertical;
  338. -webkit-line-clamp: 2;
  339. overflow: hidden;
  340. text-overflow: ellipsis;
  341. word-break: break-all;
  342. font-family: Source Han Sans, Source Han Sans;
  343. font-weight: 500;
  344. font-size: 18px;
  345. color: #333333;
  346. line-height: 26px;
  347. text-align: left;
  348. font-style: normal;
  349. text-transform: none;
  350. }
  351. >p {
  352. width: 200px;
  353. height: 22px;
  354. line-height: 20px;
  355. position: absolute;
  356. bottom: 5px;
  357. right: 0;
  358. >span {
  359. display: inline-block;
  360. // width: 100px;
  361. height: 18px;
  362. font-family: Source Han Sans, Source Han Sans;
  363. font-weight: 400;
  364. font-size: 12px;
  365. color: #999999;
  366. text-align: left;
  367. line-height: 14px;
  368. font-style: normal;
  369. text-transform: none;
  370. }
  371. >span:last-child {
  372. // width: 90px;
  373. text-align: right;
  374. margin-left: 20px;
  375. }
  376. }
  377. }
  378. }
  379. >li {
  380. width: 380px;
  381. height: 25px;
  382. white-space: nowrap;
  383. overflow: hidden;
  384. text-overflow: ellipsis;
  385. font-family: PingFang SC, PingFang SC;
  386. font-weight: 500;
  387. font-size: 18px;
  388. color: #333333;
  389. line-height: 21px;
  390. text-align: left;
  391. font-style: normal;
  392. text-transform: none;
  393. margin-bottom: 10px;
  394. em {
  395. display: inline-block;
  396. width: 8px;
  397. height: 8px;
  398. border-radius: 8px;
  399. margin-right: 10px;
  400. background-color: #d9d9d9;
  401. }
  402. }
  403. >li:hover {
  404. color: #dd7d18;
  405. }
  406. >li:hover em {
  407. background-color: #dd7d18;
  408. }
  409. }
  410. }
  411. }
  412. .innerRight {
  413. width: 381px;
  414. height: 290px;
  415. background-color: #fbfbfb;
  416. >.title {
  417. width: 380px;
  418. height: 40px;
  419. line-height: 40px;
  420. border-top: 1px solid #dd7d18;
  421. border-bottom: 1px solid #e7e7e7;
  422. >h4 {
  423. font-family: Microsoft YaHei, Microsoft YaHei;
  424. font-weight: 400;
  425. margin-left: 20px;
  426. font-size: 20px;
  427. color: #000000;
  428. text-align: left;
  429. font-style: normal;
  430. text-transform: none;
  431. >span {
  432. float: right;
  433. font-family: Microsoft YaHei, Microsoft YaHei;
  434. font-weight: 400;
  435. font-size: 14px;
  436. margin-right: 10px;
  437. color: #999999;
  438. text-align: left;
  439. font-style: normal;
  440. text-transform: none;
  441. }
  442. }
  443. }
  444. .rightList {
  445. height: 540px;
  446. margin-top: 20px;
  447. >li {
  448. height: 100px;
  449. margin-bottom: 10px;
  450. >img {
  451. width: 150px;
  452. height: 100px;
  453. }
  454. >p {
  455. width: 219px;
  456. height: 100px;
  457. padding-left: 12px;
  458. font-family: PingFang SC, PingFang SC;
  459. font-weight: 400;
  460. font-size: 16px;
  461. color: #333333;
  462. line-height: 22px;
  463. text-align: left;
  464. font-style: normal;
  465. text-transform: none;
  466. }
  467. >p:hover {
  468. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  469. }
  470. }
  471. }
  472. }
  473. }