knowledgeField.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. .knowledgeFieldCon {
  2. position: relative;
  3. background: #f6f7fb;
  4. min-height: 100%;
  5. padding-top: 4.5rem;
  6. display: flex;
  7. // 知识园地
  8. .knowledgeField {
  9. flex: 1;
  10. margin: 2.1875rem 6.5rem;
  11. background: #fff;
  12. border-radius: 0.25rem;
  13. display: flex;
  14. flex-direction: column;
  15. .knowledgeField-header {
  16. height: 4.5rem;
  17. display: flex;
  18. align-items: center;
  19. justify-content: space-between;
  20. padding: 0 3.125rem;
  21. border-bottom: 0.0625rem solid #ededed;
  22. .knowledgeInput {
  23. width: 25rem;
  24. height: 2.625rem;
  25. box-sizing: border-box;
  26. background: #f4f4f4;
  27. border-radius: 2.625rem;
  28. border: 1px solid #fff;
  29. padding: 0 1.25rem;
  30. margin-right: 0.8125rem;
  31. &:focus {
  32. border: 0.0625rem solid #3396fb;
  33. outline: none;
  34. }
  35. }
  36. .searchButton {
  37. width: 7.1875rem;
  38. height: 2.8125rem;
  39. background: #3396fb;
  40. border-radius: 0.375rem;
  41. display: flex;
  42. justify-content: center;
  43. align-items: center;
  44. color: #fff;
  45. font-size: 1.125rem;
  46. }
  47. .knowledgeField-header-text {
  48. color: #000000;
  49. font-family: Microsoft YaHei UI;
  50. font-weight: bold;
  51. font-size: 20px;
  52. line-height: normal;
  53. letter-spacing: 0px;
  54. }
  55. .elInput {
  56. width: 25.8125rem;
  57. margin-right: 0.8125rem;
  58. .elSelect {
  59. width: 5rem;
  60. }
  61. }
  62. }
  63. .knowledgeField-content {
  64. padding: 0 3.25rem;
  65. margin: 1.875rem 0;
  66. // overflow-y: auto;
  67. // height: 60vh;
  68. min-height: 60vh;
  69. .knowledgeField-content-item {
  70. display: flex;
  71. cursor: pointer;
  72. &:hover {
  73. .textContent div {
  74. color: #3396fb;
  75. }
  76. }
  77. .image {
  78. width: 10.1875rem;
  79. height: 6.8125rem;
  80. margin-right: 1.25rem;
  81. }
  82. .textContent {
  83. width: 88.5rem;
  84. .textContentTitle {
  85. color: #000000;
  86. font-family: Microsoft YaHei UI;
  87. font-weight: regular;
  88. font-size: 1.25rem;
  89. line-height: normal;
  90. letter-spacing: 0px;
  91. padding-bottom: .625rem;
  92. }
  93. .textContentUnderstand {
  94. display: flex;
  95. align-items: center;
  96. .textContentUnderstandText {
  97. font-size: 0.875rem;
  98. color: #7B7B7B;
  99. padding-right: .625rem;
  100. display: flex;
  101. align-items: center;
  102. img {
  103. width: 1.25rem;
  104. padding: 0 .875rem;
  105. }
  106. }
  107. }
  108. p {
  109. color: #7b7b7b;
  110. font-family: Microsoft YaHei UI;
  111. font-weight: regular;
  112. font-size: 1rem;
  113. line-height: 1.65;
  114. height: 3.5625rem;
  115. // line-height: normal;
  116. letter-spacing: 0px;
  117. display: -webkit-box; /* 必须设置为弹性盒模型 */
  118. -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */
  119. overflow: hidden; /* 隐藏超出的文本 */
  120. -webkit-line-clamp: 2; /* 限制显示2行 */
  121. text-overflow: ellipsis; /* 超出的部分显示省略号 */
  122. // margin-bottom: 0.625rem;
  123. }
  124. span {
  125. color: #3396fb;
  126. font-family: Microsoft YaHei UI;
  127. font-weight: regular;
  128. font-size: 1rem;
  129. line-height: normal;
  130. letter-spacing: 0px;
  131. cursor: pointer;
  132. }
  133. }
  134. }
  135. }
  136. .knowledgeField-bottom {
  137. padding: 1.5625rem 0;
  138. font-size: 1rem !important;
  139. }
  140. }
  141. // 知识详情
  142. .knowledgeDetails {
  143. padding: 1.25rem 2.1875rem;
  144. display: flex;
  145. justify-content: space-between;
  146. position: relative;
  147. .returnIcon {
  148. position: absolute;
  149. left: 4.0625rem;
  150. top: 2.8125rem;
  151. font-size: 1.5625rem;
  152. z-index: 2;
  153. cursor: pointer;
  154. width: 1.875rem;
  155. height: 1.875rem;
  156. img {
  157. width: 100%;
  158. height: 100%;
  159. }
  160. }
  161. .returnIcon:hover {
  162. color: #3396fb;
  163. }
  164. .knowledgeDetails-left {
  165. width: 92.75rem;
  166. background: #fff;
  167. display: flex;
  168. flex-direction: column;
  169. .knowledgeDetails-left-title {
  170. color: #000000;
  171. font-family: Microsoft YaHei UI;
  172. font-weight: bold;
  173. font-size: 1.5rem;
  174. line-height: normal;
  175. letter-spacing: 0px;
  176. text-align: center;
  177. padding-top: 1.5rem;
  178. position: relative;
  179. .previewTwo {
  180. position: absolute;
  181. font-size: .875rem;
  182. color: #7b7b7b;
  183. top: 1.75rem;
  184. right: 1.875rem;
  185. display: flex;
  186. align-items: center;
  187. img {
  188. width: 1.25rem !important;
  189. }
  190. }
  191. }
  192. .knowledgeDetails-left-con {
  193. padding: 0 1.875rem 0.9375rem 1.875rem;
  194. display: flex;
  195. align-items: center;
  196. justify-content: space-between;
  197. .distribution {
  198. width: 33%;
  199. }
  200. .timeContent {
  201. font-size: 1rem;
  202. p {
  203. color: #7b7b7b;
  204. margin-right: 1rem;
  205. }
  206. span {
  207. // color: #000000;
  208. color: #7b7b7b;
  209. }
  210. }
  211. .readUse {
  212. .text {
  213. font-size: 1rem;
  214. margin-right: 1rem;
  215. color: #7b7b7b;
  216. }
  217. .jumpToImg {
  218. width: 8.75rem;
  219. height: 2.5rem;
  220. font-size: 1rem;
  221. color: #fff;
  222. display: flex;
  223. align-items: center;
  224. justify-content: center;
  225. border-radius: .375rem;
  226. background: linear-gradient(180deg, #3597fb 0%, #39e5ff 100%);
  227. cursor: pointer;
  228. }
  229. }
  230. li {
  231. font-family: Microsoft YaHei UI;
  232. font-weight: regular;
  233. font-size: .875rem;
  234. line-height: normal;
  235. // margin-right: 2.0625rem;
  236. margin-right: 1.0625rem;
  237. }
  238. .grey {
  239. color: #7b7b7b;
  240. }
  241. .blue {
  242. color: #3396fb;
  243. }
  244. }
  245. .hypertextContent {
  246. // background: #f6f6f6;
  247. padding: 1.875rem;
  248. // overflow-y: auto;
  249. margin: 0 1.875rem;
  250. flex: 1;
  251. font-size: 1rem;
  252. img {
  253. cursor: pointer;
  254. }
  255. }
  256. .knowledgeDetails-left-bottom {
  257. padding: 1.25rem 0;
  258. }
  259. }
  260. .knowledgeDetails-right {
  261. width: 22.625rem;
  262. padding-left: 1.875rem;
  263. display: flex;
  264. flex-direction: column;
  265. .latestArticles {
  266. width: 100%;
  267. height: 20.75rem;
  268. background: #fff;
  269. margin-bottom: 1.25rem;
  270. padding: 1.25rem;
  271. }
  272. .relatedRecommendations {
  273. // flex: 1;
  274. height: 32.5rem;
  275. background: #fff;
  276. padding: 1.25rem;
  277. }
  278. .knowledgeDetails-right-title {
  279. display: flex;
  280. justify-content: space-between;
  281. align-items: center;
  282. div {
  283. font-size: 1rem;
  284. color: #000000;
  285. }
  286. span {
  287. font-size: 0.875rem;
  288. color: #3878ff;
  289. cursor: pointer;
  290. }
  291. a {
  292. color: #7B7B7B;
  293. cursor: pointer;
  294. }
  295. }
  296. .line {
  297. width: 100%;
  298. height: 1px;
  299. background: #ededed;
  300. margin: 0.5625rem 0 0.875rem 0;
  301. }
  302. .latestList {
  303. width: 100%;
  304. a {
  305. margin-bottom: 1rem;
  306. display: inline-block;
  307. width: 100%;
  308. &:last-child {
  309. margin-bottom: 0;
  310. }
  311. }
  312. .latestList-item {
  313. width: 100%;
  314. display: flex;
  315. justify-content: space-between;
  316. margin-bottom: 1rem;
  317. border: 1px solid #fff;
  318. cursor: pointer;
  319. &:hover {
  320. // border: 1px solid #409eff;
  321. .latestList-item-text {
  322. color: #3396fb;
  323. }
  324. }
  325. &:last-child {
  326. margin-bottom: 0;
  327. }
  328. .latestList-item-image {
  329. width: 6.25rem;
  330. height: 4.5rem;
  331. }
  332. .latestList-item-text {
  333. width: 11.25rem;
  334. font-size: 0.875rem;
  335. color: #000000;
  336. .data {
  337. color: #c7c7c7;
  338. text-align: right;
  339. }
  340. .latestList-item-text-title {
  341. line-height: 1.125rem;
  342. height: 3.5625rem;
  343. display: -webkit-box; /* 必须设置为弹性盒模型 */
  344. -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */
  345. overflow: hidden; /* 隐藏超出的文本 */
  346. -webkit-line-clamp: 3; /* 限制显示2行 */
  347. text-overflow: ellipsis; /* 超出的部分显示省略号 */
  348. }
  349. }
  350. }
  351. }
  352. }
  353. }
  354. .flex1 {
  355. flex: 1;
  356. }
  357. .flex {
  358. display: flex;
  359. }
  360. .flex-center {
  361. display: flex;
  362. align-items: center;
  363. justify-content: center;
  364. }
  365. .wh100 {
  366. width: 100%;
  367. height: 100%;
  368. }
  369. .linkButton, .linkButtonss {
  370. color: #7b7b7b;
  371. font-family: Microsoft YaHei UI;
  372. font-weight: regular;
  373. font-size: .875rem;
  374. line-height: normal;
  375. letter-spacing: 0px;
  376. cursor: pointer;
  377. position: relative;
  378. z-index: 2;
  379. }
  380. .linkButtonss {
  381. // color: #3396fb;
  382. color: #7b7b7b;
  383. }
  384. .dividingLine {
  385. height: 0.0625rem;
  386. background: #dcdfe6;
  387. margin: 1.25rem 0;
  388. }
  389. .pagination {
  390. display: flex;
  391. justify-content: center;
  392. align-items: center;
  393. gap: 0.625rem;
  394. }
  395. .pagination button {
  396. padding: 0.3125rem 0.625rem;
  397. cursor: pointer;
  398. background-color: #007bff;
  399. color: white;
  400. border: 0.0625rem solid #007bff;
  401. border-radius: 0.3125rem;
  402. }
  403. .pagination button:disabled {
  404. background-color: #fff;
  405. border-color: #d6d6d6;
  406. cursor: not-allowed;
  407. color: #000000;
  408. }
  409. .pagination ul {
  410. list-style-type: none;
  411. display: flex;
  412. gap: 0.3125rem;
  413. }
  414. .pagination li {
  415. padding: 0.3125rem 0.625rem;
  416. cursor: pointer;
  417. border: 0.0625rem solid #d6d6d6;
  418. border-radius: 0.3125rem;
  419. }
  420. .pagination li.active {
  421. background-color: #007bff;
  422. background: #007bff;
  423. color: white;
  424. }
  425. .pagination li:hover {
  426. background-color: #007bff;
  427. color: white;
  428. }
  429. .pagination button {
  430. padding: 0.3125rem 0.625rem;
  431. margin: 0 0.3125rem;
  432. }
  433. .paginationInput {
  434. width: 3.75rem;
  435. height: 2rem;
  436. text-align: center;
  437. border-radius: 0.1875rem;
  438. background: #ffffff;
  439. border: 0.0625rem solid #d6d6d6;
  440. margin: 0 0.5rem;
  441. &:focus {
  442. border: 0.0625rem solid #3396fb;
  443. outline: none;
  444. }
  445. }
  446. .paginationButton {
  447. width: 3.75rem;
  448. height: 2rem;
  449. border-radius: 0.1875rem;
  450. background: #f6f6f6;
  451. border: 0.0625rem solid #d6d6d6;
  452. display: flex;
  453. align-items: center;
  454. justify-content: center;
  455. font-size: 1rem;
  456. color: #363636;
  457. margin: 0 0.5rem;
  458. &:hover {
  459. background: #3396fb;
  460. color: #fff;
  461. border-color: #3396fb;
  462. }
  463. }
  464. .modal {
  465. display: none;
  466. position: fixed;
  467. top: 0;
  468. left: 0;
  469. width: 100%;
  470. height: 100%;
  471. background-color: rgba(0, 0, 0, 0.7);
  472. justify-content: center;
  473. align-items: center;
  474. .layout {
  475. width: 100%;
  476. height: 100%;
  477. display: flex;
  478. justify-content: space-around;
  479. align-items: center;
  480. }
  481. .modalImage {
  482. width: 50%;
  483. display: flex;
  484. align-items: center;
  485. img {
  486. width: 100%;
  487. }
  488. }
  489. .prev, .next {
  490. width: 1.875rem;
  491. cursor: pointer;
  492. background: none;
  493. border: 0;
  494. img {
  495. width: 100%;
  496. }
  497. }
  498. button:disabled {
  499. background: rgba(0, 0, 0, 0.2);
  500. cursor: not-allowed;
  501. }
  502. }
  503. }
  504. body {
  505. background: #7b7b7b;
  506. }