knowledgeField.less 9.9 KB

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