knowledgeField.less 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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 1.5rem;
  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 1.5625rem;
  65. margin: 1.875rem 0;
  66. overflow-y: auto;
  67. height: 60vh;
  68. .knowledgeField-content-item {
  69. display: flex;
  70. cursor: pointer;
  71. &:hover {
  72. .textContent div {
  73. color: #3396fb;
  74. }
  75. }
  76. .image {
  77. width: 10.1875rem;
  78. height: 6.8125rem;
  79. margin-right: 1.25rem;
  80. }
  81. .textContent {
  82. width: 100.5rem;
  83. div {
  84. color: #000000;
  85. font-family: Microsoft YaHei UI;
  86. font-weight: regular;
  87. font-size: 20px;
  88. line-height: normal;
  89. letter-spacing: 0px;
  90. padding-bottom: 0.875rem;
  91. }
  92. p {
  93. color: #7b7b7b;
  94. font-family: Microsoft YaHei UI;
  95. font-weight: regular;
  96. font-size: 16px;
  97. height: 2.5rem;
  98. line-height: normal;
  99. letter-spacing: 0px;
  100. display: -webkit-box; /* 必须设置为弹性盒模型 */
  101. -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */
  102. overflow: hidden; /* 隐藏超出的文本 */
  103. -webkit-line-clamp: 2; /* 限制显示2行 */
  104. text-overflow: ellipsis; /* 超出的部分显示省略号 */
  105. margin-bottom: 0.625rem;
  106. }
  107. span {
  108. color: #3396fb;
  109. font-family: Microsoft YaHei UI;
  110. font-weight: regular;
  111. font-size: 16px;
  112. line-height: normal;
  113. letter-spacing: 0px;
  114. cursor: pointer;
  115. }
  116. }
  117. }
  118. }
  119. .knowledgeField-bottom {
  120. padding: 1.5625rem 0;
  121. font-size: 1rem !important;
  122. }
  123. }
  124. // 知识详情
  125. .knowledgeDetails {
  126. padding: 1.25rem 2.1875rem;
  127. display: flex;
  128. justify-content: space-between;
  129. position: relative;
  130. .returnIcon {
  131. position: absolute;
  132. left: 4.0625rem;
  133. top: 2.8125rem;
  134. font-size: 1.5625rem;
  135. z-index: 2;
  136. cursor: pointer;
  137. width: 1.875rem;
  138. height: 1.875rem;
  139. img {
  140. width: 100%;
  141. height: 100%;
  142. }
  143. }
  144. .returnIcon:hover {
  145. color: #3396fb;
  146. }
  147. .knowledgeDetails-left {
  148. width: 92.75rem;
  149. background: #fff;
  150. display: flex;
  151. flex-direction: column;
  152. .knowledgeDetails-left-title {
  153. color: #000000;
  154. font-family: Microsoft YaHei UI;
  155. font-weight: bold;
  156. font-size: 1.5rem;
  157. line-height: normal;
  158. letter-spacing: 0px;
  159. text-align: center;
  160. padding-top: 1.5rem;
  161. }
  162. .knowledgeDetails-left-con {
  163. padding: 0 1.875rem 0.9375rem 1.875rem;
  164. display: flex;
  165. align-items: center;
  166. justify-content: space-between;
  167. .distribution {
  168. width: 33%;
  169. }
  170. .timeContent {
  171. font-size: 1rem;
  172. p {
  173. color: #7b7b7b;
  174. margin-right: 1rem;
  175. }
  176. span {
  177. color: #000000;
  178. }
  179. }
  180. .readUse {
  181. .text {
  182. font-size: 1rem;
  183. margin-right: 1rem;
  184. color: #7b7b7b;
  185. }
  186. .jumpToImg {
  187. width: 8.75rem;
  188. height: 2.5rem;
  189. font-size: 1rem;
  190. color: #fff;
  191. display: flex;
  192. align-items: center;
  193. justify-content: center;
  194. border-radius: .375rem;
  195. background: linear-gradient(180deg, #3597fb 0%, #39e5ff 100%);
  196. cursor: pointer;
  197. }
  198. }
  199. li {
  200. font-family: Microsoft YaHei UI;
  201. font-weight: regular;
  202. font-size: 1rem;
  203. line-height: normal;
  204. margin-right: 2.0625rem;
  205. }
  206. .grey {
  207. color: #7b7b7b;
  208. }
  209. .blue {
  210. color: #3396fb;
  211. }
  212. }
  213. .hypertextContent {
  214. background: #f6f6f6;
  215. padding: 1.875rem;
  216. // overflow-y: auto;
  217. margin: 0 1.875rem;
  218. flex: 1;
  219. font-size: 1rem;
  220. }
  221. .knowledgeDetails-left-bottom {
  222. padding: 1.25rem 0;
  223. }
  224. }
  225. .knowledgeDetails-right {
  226. width: 22.625rem;
  227. padding-left: 1.875rem;
  228. display: flex;
  229. flex-direction: column;
  230. .latestArticles {
  231. width: 100%;
  232. height: 20.75rem;
  233. background: #fff;
  234. margin-bottom: 1.25rem;
  235. padding: 1.25rem;
  236. }
  237. .relatedRecommendations {
  238. // flex: 1;
  239. height: 32.5rem;
  240. background: #fff;
  241. padding: 1.25rem;
  242. }
  243. .knowledgeDetails-right-title {
  244. display: flex;
  245. justify-content: space-between;
  246. align-items: center;
  247. div {
  248. font-size: 1rem;
  249. color: #000000;
  250. }
  251. span {
  252. font-size: 0.875rem;
  253. color: #3878ff;
  254. cursor: pointer;
  255. }
  256. }
  257. .line {
  258. width: 100%;
  259. height: 1px;
  260. background: #ededed;
  261. margin: 0.5625rem 0 0.875rem 0;
  262. }
  263. .latestList {
  264. width: 100%;
  265. .latestList-item {
  266. width: 100%;
  267. display: flex;
  268. justify-content: space-between;
  269. margin-bottom: 1rem;
  270. border: 1px solid #fff;
  271. cursor: pointer;
  272. &:hover {
  273. // border: 1px solid #409eff;
  274. .latestList-item-text {
  275. color: #3396fb;
  276. }
  277. }
  278. &:last-child {
  279. margin-bottom: 0;
  280. }
  281. .latestList-item-image {
  282. width: 6.25rem;
  283. height: 4.5rem;
  284. }
  285. .latestList-item-text {
  286. width: 11.25rem;
  287. font-size: 0.875rem;
  288. color: #000000;
  289. .data {
  290. color: #c7c7c7;
  291. text-align: right;
  292. }
  293. .latestList-item-text-title {
  294. line-height: 1.125rem;
  295. height: 3.5625rem;
  296. display: -webkit-box; /* 必须设置为弹性盒模型 */
  297. -webkit-box-orient: vertical; /* 设置盒子的排列方式为垂直 */
  298. overflow: hidden; /* 隐藏超出的文本 */
  299. -webkit-line-clamp: 3; /* 限制显示2行 */
  300. text-overflow: ellipsis; /* 超出的部分显示省略号 */
  301. }
  302. }
  303. }
  304. }
  305. }
  306. }
  307. .flex1 {
  308. flex: 1;
  309. }
  310. .flex {
  311. display: flex;
  312. }
  313. .flex-center {
  314. display: flex;
  315. align-items: center;
  316. justify-content: center;
  317. }
  318. .wh100 {
  319. width: 100%;
  320. height: 100%;
  321. }
  322. .linkButton, .linkButtonss {
  323. color: #7b7b7b;
  324. font-family: Microsoft YaHei UI;
  325. font-weight: regular;
  326. font-size: .875rem;
  327. line-height: normal;
  328. letter-spacing: 0px;
  329. cursor: pointer;
  330. position: relative;
  331. z-index: 2;
  332. }
  333. .linkButtonss {
  334. color: #3396fb;
  335. }
  336. .dividingLine {
  337. height: 0.0625rem;
  338. background: #dcdfe6;
  339. margin: 1.25rem 0;
  340. }
  341. .pagination {
  342. display: flex;
  343. justify-content: center;
  344. align-items: center;
  345. gap: 0.625rem;
  346. }
  347. .pagination button {
  348. padding: 0.3125rem 0.625rem;
  349. cursor: pointer;
  350. background-color: #007bff;
  351. color: white;
  352. border: 0.0625rem solid #007bff;
  353. border-radius: 0.3125rem;
  354. }
  355. .pagination button:disabled {
  356. background-color: #fff;
  357. border-color: #d6d6d6;
  358. cursor: not-allowed;
  359. color: #000000;
  360. }
  361. .pagination ul {
  362. list-style-type: none;
  363. display: flex;
  364. gap: 0.3125rem;
  365. }
  366. .pagination li {
  367. padding: 0.3125rem 0.625rem;
  368. cursor: pointer;
  369. border: 0.0625rem solid #d6d6d6;
  370. border-radius: 0.3125rem;
  371. }
  372. .pagination li.active {
  373. background-color: #007bff;
  374. background: #007bff;
  375. color: white;
  376. }
  377. .pagination li:hover {
  378. background-color: #007bff;
  379. color: white;
  380. }
  381. .pagination button {
  382. padding: 0.3125rem 0.625rem;
  383. margin: 0 0.3125rem;
  384. }
  385. .paginationInput {
  386. width: 3.75rem;
  387. height: 2rem;
  388. text-align: center;
  389. border-radius: 0.1875rem;
  390. background: #ffffff;
  391. border: 0.0625rem solid #d6d6d6;
  392. margin: 0 0.5rem;
  393. &:focus {
  394. border: 0.0625rem solid #3396fb;
  395. outline: none;
  396. }
  397. }
  398. .paginationButton {
  399. width: 3.75rem;
  400. height: 2rem;
  401. border-radius: 0.1875rem;
  402. background: #f6f6f6;
  403. border: 0.0625rem solid #d6d6d6;
  404. display: flex;
  405. align-items: center;
  406. justify-content: center;
  407. font-size: 1rem;
  408. color: #363636;
  409. margin: 0 0.5rem;
  410. &:hover {
  411. background: #3396fb;
  412. color: #fff;
  413. border-color: #3396fb;
  414. }
  415. }
  416. }
  417. body {
  418. background: #7b7b7b;
  419. }