project.less 13 KB

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