knowledgeField.less 11 KB

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