knowledgeField.less 7.7 KB

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