knowledgeField.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  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: 0;
  178. right: 0;
  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. &:last-child {
  296. margin-bottom: 0;
  297. }
  298. }
  299. .latestList-item {
  300. width: 100%;
  301. display: flex;
  302. justify-content: space-between;
  303. margin-bottom: 1rem;
  304. border: 1px solid #fff;
  305. cursor: pointer;
  306. &:hover {
  307. // border: 1px solid #409eff;
  308. .latestList-item-text {
  309. color: #3396fb;
  310. }
  311. }
  312. &:last-child {
  313. margin-bottom: 0;
  314. }
  315. .latestList-item-image {
  316. width: 6.25rem;
  317. height: 4.5rem;
  318. }
  319. .latestList-item-text {
  320. width: 11.25rem;
  321. font-size: 0.875rem;
  322. color: #000000;
  323. .data {
  324. color: #c7c7c7;
  325. text-align: right;
  326. }
  327. .latestList-item-text-title {
  328. line-height: 1.125rem;
  329. height: 3.5625rem;
  330. display: -webkit-box; /* 必须设置为弹性盒模型 */
  331. -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */
  332. overflow: hidden; /* 隐藏超出的文本 */
  333. -webkit-line-clamp: 3; /* 限制显示2行 */
  334. text-overflow: ellipsis; /* 超出的部分显示省略号 */
  335. }
  336. }
  337. }
  338. }
  339. }
  340. }
  341. .flex1 {
  342. flex: 1;
  343. }
  344. .flex {
  345. display: flex;
  346. }
  347. .flex-center {
  348. display: flex;
  349. align-items: center;
  350. justify-content: center;
  351. }
  352. .wh100 {
  353. width: 100%;
  354. height: 100%;
  355. }
  356. .linkButton, .linkButtonss {
  357. color: #7b7b7b;
  358. font-family: Microsoft YaHei UI;
  359. font-weight: regular;
  360. font-size: .875rem;
  361. line-height: normal;
  362. letter-spacing: 0px;
  363. cursor: pointer;
  364. position: relative;
  365. z-index: 2;
  366. }
  367. .linkButtonss {
  368. // color: #3396fb;
  369. color: #7b7b7b;
  370. }
  371. .dividingLine {
  372. height: 0.0625rem;
  373. background: #dcdfe6;
  374. margin: 1.25rem 0;
  375. }
  376. .pagination {
  377. display: flex;
  378. justify-content: center;
  379. align-items: center;
  380. gap: 0.625rem;
  381. }
  382. .pagination button {
  383. padding: 0.3125rem 0.625rem;
  384. cursor: pointer;
  385. background-color: #007bff;
  386. color: white;
  387. border: 0.0625rem solid #007bff;
  388. border-radius: 0.3125rem;
  389. }
  390. .pagination button:disabled {
  391. background-color: #fff;
  392. border-color: #d6d6d6;
  393. cursor: not-allowed;
  394. color: #000000;
  395. }
  396. .pagination ul {
  397. list-style-type: none;
  398. display: flex;
  399. gap: 0.3125rem;
  400. }
  401. .pagination li {
  402. padding: 0.3125rem 0.625rem;
  403. cursor: pointer;
  404. border: 0.0625rem solid #d6d6d6;
  405. border-radius: 0.3125rem;
  406. }
  407. .pagination li.active {
  408. background-color: #007bff;
  409. background: #007bff;
  410. color: white;
  411. }
  412. .pagination li:hover {
  413. background-color: #007bff;
  414. color: white;
  415. }
  416. .pagination button {
  417. padding: 0.3125rem 0.625rem;
  418. margin: 0 0.3125rem;
  419. }
  420. .paginationInput {
  421. width: 3.75rem;
  422. height: 2rem;
  423. text-align: center;
  424. border-radius: 0.1875rem;
  425. background: #ffffff;
  426. border: 0.0625rem solid #d6d6d6;
  427. margin: 0 0.5rem;
  428. &:focus {
  429. border: 0.0625rem solid #3396fb;
  430. outline: none;
  431. }
  432. }
  433. .paginationButton {
  434. width: 3.75rem;
  435. height: 2rem;
  436. border-radius: 0.1875rem;
  437. background: #f6f6f6;
  438. border: 0.0625rem solid #d6d6d6;
  439. display: flex;
  440. align-items: center;
  441. justify-content: center;
  442. font-size: 1rem;
  443. color: #363636;
  444. margin: 0 0.5rem;
  445. &:hover {
  446. background: #3396fb;
  447. color: #fff;
  448. border-color: #3396fb;
  449. }
  450. }
  451. .modal {
  452. display: none;
  453. position: fixed;
  454. top: 0;
  455. left: 0;
  456. width: 100%;
  457. height: 100%;
  458. background-color: rgba(0, 0, 0, 0.7);
  459. justify-content: center;
  460. align-items: center;
  461. .layout {
  462. width: 100%;
  463. height: 100%;
  464. display: flex;
  465. justify-content: space-around;
  466. align-items: center;
  467. }
  468. .modalImage {
  469. width: 50%;
  470. display: flex;
  471. align-items: center;
  472. img {
  473. width: 100%;
  474. }
  475. }
  476. .prev, .next {
  477. width: 1.875rem;
  478. cursor: pointer;
  479. background: none;
  480. border: 0;
  481. img {
  482. width: 100%;
  483. }
  484. }
  485. button:disabled {
  486. background: rgba(0, 0, 0, 0.2);
  487. cursor: not-allowed;
  488. }
  489. }
  490. }
  491. body {
  492. background: #7b7b7b;
  493. }