knowledgeField.less 6.7 KB

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