knowledgeField.less 12 KB

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