knowledgeField.less 9.6 KB

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