knowledgeField.less 11 KB

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