list.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. .learn-wrapper {
  2. width: 1000px;
  3. .learn-top {
  4. width: 100%;
  5. height: auto;
  6. background: #ffffff;
  7. border-radius: 10px;
  8. .tabs {
  9. position: relative;
  10. width: 100%;
  11. height: 50px;
  12. display: flex;
  13. align-items: center;
  14. border-bottom: 1px solid #f1f1f1;
  15. .add-btn {
  16. position: absolute;
  17. right: 20px;
  18. width: 96px;
  19. height: 32px;
  20. padding: 0;
  21. border: none;
  22. background: #308eff;
  23. border-radius: 5px;
  24. font-size: 11px;
  25. font-family: PingFangSC, PingFangSC-Medium;
  26. font-weight: 500;
  27. text-align: center;
  28. color: #ffffff;
  29. }
  30. .tabs-item {
  31. position: relative;
  32. width: 108px;
  33. height: 50px;
  34. line-height: 50px;
  35. font-size: 16px;
  36. font-family: PingFangSC, PingFangSC-Regular;
  37. font-weight: 400;
  38. text-align: center;
  39. color: #666666;
  40. &.active {
  41. font-size: 15px;
  42. font-family: PingFangSC, PingFangSC-Semibold;
  43. font-weight: 600;
  44. color: #222222;
  45. &:after {
  46. position: absolute;
  47. content: " ";
  48. width: 15px;
  49. height: 3px;
  50. bottom: 1px;
  51. left: calc(50% - 7.5px);
  52. background: #308eff;
  53. border-radius: 2px;
  54. }
  55. }
  56. }
  57. }
  58. }
  59. .learn-category-wrapper {
  60. width: 100%;
  61. height: auto;
  62. padding: 15px 20px;
  63. .category-title {
  64. width: 100%;
  65. line-height: 21px;
  66. padding-bottom: 7px;
  67. font-size: 15px;
  68. font-family: PingFangSC, PingFangSC-Semibold;
  69. font-weight: 600;
  70. color: #222222;
  71. }
  72. .category-one-wrapper {
  73. position: relative;
  74. height: 40px;
  75. width: 100%;
  76. padding-right: 60px;
  77. overflow: hidden;
  78. display: flex;
  79. flex-wrap: wrap;
  80. transition: all .3s;
  81. .category-more {
  82. position: absolute;
  83. height: 30px;
  84. line-height: 30px;
  85. margin-top: 10px;
  86. padding: 0 15px;
  87. right: 0;
  88. top: 0;
  89. font-size: 13px;
  90. color: #999999;
  91. cursor: pointer;
  92. }
  93. &.expand {
  94. height: auto !important;
  95. }
  96. .category-one-item {
  97. height: 30px;
  98. line-height: 30px;
  99. padding: 0 25px;
  100. margin-top: 10px;
  101. border-radius: 4px;
  102. font-size: 14px;
  103. font-family: PingFangSC, PingFangSC-Regular;
  104. font-weight: 400;
  105. text-align: center;
  106. color: #555555;
  107. cursor: pointer;
  108. &.active {
  109. line-height: 28px;
  110. font-family: PingFangSC, PingFangSC-Medium;
  111. font-weight: 500;
  112. color: #308eff;
  113. border: 1px solid #308eff;
  114. }
  115. &:hover {
  116. color: #308eff;
  117. }
  118. }
  119. }
  120. .category-two-wrapper {
  121. position: relative;
  122. margin-top: 16px;
  123. .category-two-content {
  124. position: relative;
  125. width: 830px;
  126. height: auto;
  127. padding: 5px 20px 10px;
  128. // margin-left: 80px;
  129. background: #f7f7f7;
  130. border-radius: 8px;
  131. display: flex;
  132. flex-wrap: wrap;
  133. .category-two-item {
  134. height: 30px;
  135. line-height: 30px;
  136. margin-top: 5px;
  137. padding: 0 15px;
  138. color: #555555;
  139. border-radius: 4px;
  140. font-size: 14px;
  141. cursor: pointer;
  142. &.active {
  143. color: #308eff;
  144. background: #dcefff;
  145. }
  146. &:hover {
  147. color: #308eff;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. .learn-content {
  154. width: 100%;
  155. margin-top: 10px;
  156. padding: 12px 20px 36px;
  157. background: #ffffff;
  158. border-radius: 10px;
  159. .learn-list-wrapper {
  160. position: relative;
  161. width: 100%;
  162. display: flex;
  163. flex-wrap: wrap;
  164. .learn-item {
  165. width: 310px;
  166. height: 310px;
  167. margin-right: 15px;
  168. margin-bottom: 15px;
  169. background: #ffffff;
  170. border-radius: 10px;
  171. overflow: hidden;
  172. box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06);
  173. display: flex;
  174. flex-direction: column;
  175. // cursor: pointer;
  176. &:nth-of-type(3n) {
  177. margin-right: 0;
  178. }
  179. .cover-wrapper {
  180. position: relative;
  181. width: 100%;
  182. height: 175px;
  183. overflow: hidden;
  184. .cover {
  185. width: 100%;
  186. height: 100%;
  187. object-fit: scale-down;
  188. }
  189. .play-icon {
  190. position: absolute;
  191. width: 46px;
  192. height: 46px;
  193. top: calc(50% - 23px);
  194. left: calc(50% - 23px);
  195. &:hover {
  196. width: 50px;
  197. height: 50px;
  198. top: calc(50% - 25px);
  199. left: calc(50% - 25px);
  200. }
  201. }
  202. }
  203. .owner-wrapper {
  204. width: 100%;
  205. height: 22px;
  206. margin-top: 10px;
  207. padding: 0 10px;
  208. display: flex;
  209. align-items: center;
  210. .avatar {
  211. flex-shrink: 0;
  212. width: 22px;
  213. height: 22px;
  214. overflow: hidden;
  215. border-radius: 50%;
  216. }
  217. .nickname {
  218. flex: 1;
  219. line-height: 22px;
  220. margin-left: 6px;
  221. font-size: 14px;
  222. font-family: PingFangSC, PingFangSC-Regular;
  223. font-weight: 400;
  224. color: #666666;
  225. overflow: hidden;
  226. text-overflow: ellipsis;
  227. white-space: nowrap;
  228. }
  229. }
  230. .title {
  231. width: 100%;
  232. height: 42px;
  233. margin-top: 12px;
  234. padding: 0 12px;
  235. line-height: 21px;
  236. font-size: 15px;
  237. font-family: PingFangSC, PingFangSC-Medium;
  238. font-weight: 500;
  239. color: #333333;
  240. overflow: hidden;
  241. text-overflow: ellipsis;
  242. display: -webkit-box;
  243. white-space: normal;
  244. -webkit-box-orient: vertical;
  245. -webkit-line-clamp: 2;
  246. word-break: break-all;
  247. &:hover {
  248. color: #308eff;
  249. }
  250. }
  251. .price-wrapper {
  252. width: 100%;
  253. height: 20px;
  254. margin-top: 12px;
  255. padding: 0 12px;
  256. display: flex;
  257. align-items: center;
  258. justify-content: space-between;
  259. .price-text {
  260. line-height: 20px;
  261. font-size: 19px;
  262. font-family: DINAlternate, DINAlternate-Bold;
  263. font-weight: 700;
  264. color: #ff6600;
  265. }
  266. .buy-num {
  267. font-size: 14px;
  268. font-family: PingFangSC, PingFangSC-Regular;
  269. font-weight: 400;
  270. color: #999999;
  271. }
  272. }
  273. }
  274. }
  275. .pagination-wrapper {
  276. width: 100%;
  277. height: 30px;
  278. margin-top: 25px;
  279. display: flex;
  280. align-items: center;
  281. justify-content: center;
  282. }
  283. }
  284. }
  285. .mobileMain {
  286. width: 100%;
  287. margin: 0;
  288. }
  289. .learn-wrapper-mobile {
  290. position: relative;
  291. width: 100%;
  292. // min-height: 100vh;
  293. display: flex;
  294. flex-direction: column;
  295. .learn-category {
  296. position: fixed;
  297. width: 100%;
  298. height: 87px;
  299. z-index: 11;
  300. .learn-category-one {
  301. position: relative;
  302. width: 100%;
  303. height: 45px;
  304. background: #ffffff;
  305. overflow: hidden;
  306. .category-scroller {
  307. width: calc(100% - 64px);
  308. overflow-x: scroll;
  309. overflow-y: hidden;
  310. -webkit-overflow-scrolling: touch;
  311. display: flex;
  312. &::-webkit-scrollbar {
  313. display: none;
  314. }
  315. }
  316. .learn-category-one-item {
  317. position: relative;
  318. flex-shrink: 0;
  319. width: 76px;
  320. height: 45px;
  321. line-height: 45px;
  322. font-size: 16px;
  323. font-family: PingFangSC, PingFangSC-Regular;
  324. font-weight: 400;
  325. color: #666666;
  326. font-size: 15px;
  327. text-align: center;
  328. &.active {
  329. font-family: PingFangSC, PingFangSC-Semibold;
  330. font-weight: 600;
  331. color: #222222;
  332. &:after {
  333. position: absolute;
  334. content: " ";
  335. bottom: 0;
  336. left: calc(50% - 7.5px);
  337. width: 15px;
  338. height: 3px;
  339. background: #308eff;
  340. border-radius: 2px;
  341. }
  342. }
  343. }
  344. .filter-wrapper {
  345. position: absolute;
  346. top: 0;
  347. right: 0;
  348. width: 64px;
  349. height: 45px;
  350. display: flex;
  351. align-items: center;
  352. justify-content: center;
  353. z-index: 12;
  354. background: #ffffff;
  355. img {
  356. width: 24px;
  357. height: 24px;
  358. }
  359. }
  360. .filter-bg {
  361. position: absolute;
  362. width: 11px;
  363. height: 29px;
  364. right: 59px;
  365. top: 8px;
  366. opacity: 0.1;
  367. background: #000000;
  368. border-radius: 6px;
  369. filter: blur(4px);
  370. z-index: 11;
  371. }
  372. }
  373. .learn-category-two {
  374. position: relative;
  375. width: 100%;
  376. height: 42px;
  377. background: #ffffff;
  378. .learn-category-two-wrapper {
  379. position: relative;
  380. width: 100%;
  381. height: 42px;
  382. padding: 0 20px;
  383. overflow-x: scroll;
  384. overflow-y: hidden;
  385. -webkit-overflow-scrolling: touch;
  386. display: flex;
  387. &::-webkit-scrollbar {
  388. display: none;
  389. }
  390. .learn-category-two-item {
  391. position: relative;
  392. flex-shrink: 0;
  393. height: 42px;
  394. line-height: 42px;
  395. margin-right: 20px;
  396. font-size: 14px;
  397. font-family: PingFangSC, PingFangSC-Regular;
  398. font-weight: 400;
  399. color: #666666;
  400. &:last-child {
  401. margin-right: 0;
  402. }
  403. &.active {
  404. color: #308eff;
  405. }
  406. }
  407. }
  408. }
  409. }
  410. .learn-list {
  411. width: 100%;
  412. height: 100vh;
  413. padding-top: 87px;
  414. padding-bottom: 34px;
  415. overflow-x: hidden;
  416. overflow-y: auto;
  417. -webkit-overflow-scrolling: touch;
  418. display: flex;
  419. flex-direction: column;
  420. align-items: center;
  421. .learn-list-wrapper {
  422. width: 100%;
  423. height: auto;
  424. overflow: visible;
  425. .learn-item {
  426. width: calc(100% - 20px);
  427. height: auto;
  428. margin: 10px auto 0;
  429. padding-bottom: 16px;
  430. background: #ffffff;
  431. overflow: hidden;
  432. border-radius: 10px;
  433. box-shadow: 0px 6px 16px 0px rgba(6,10,28,0.06);
  434. display: flex;
  435. flex-direction: column;
  436. .cover {
  437. width: 100%;
  438. height: calc((100vw - 20px) * 9 / 16);
  439. overflow: hidden;
  440. object-fit: cover;
  441. }
  442. .owner-wrapper {
  443. width: 100%;
  444. height: 22px;
  445. margin-top: 10px;
  446. padding: 0 10px;
  447. display: flex;
  448. align-items: center;
  449. .avatar {
  450. width: 22px;
  451. height: 22px;
  452. overflow: hidden;
  453. border-radius: 50%;
  454. }
  455. .nickname {
  456. line-height: 22px;
  457. margin-left: 6px;
  458. font-size: 14px;
  459. font-family: PingFangSC, PingFangSC-Regular;
  460. font-weight: 400;
  461. color: #666666;
  462. }
  463. }
  464. .title {
  465. width: 100%;
  466. height: 20px;
  467. margin-top: 12px;
  468. padding: 0 12px;
  469. line-height: 20px;
  470. font-size: 15px;
  471. font-family: PingFangSC, PingFangSC-Medium;
  472. font-weight: 500;
  473. color: #333333;
  474. overflow: hidden;
  475. text-overflow: ellipsis;
  476. white-space: nowrap;
  477. }
  478. .price-wrapper {
  479. width: 100%;
  480. height: 20px;
  481. margin-top: 16px;
  482. padding: 0 12px;
  483. display: flex;
  484. align-items: center;
  485. justify-content: space-between;
  486. .price-text {
  487. line-height: 20px;
  488. font-size: 19px;
  489. font-family: DINAlternate, DINAlternate-Bold;
  490. font-weight: 700;
  491. color: #ff6600;
  492. }
  493. .right-info {
  494. font-size: 14px;
  495. font-family: PingFangSC, PingFangSC-Regular;
  496. font-weight: 400;
  497. color: #999999;
  498. }
  499. }
  500. }
  501. }
  502. .learn-list-tips {
  503. margin-top: 16px;
  504. width: 100%;
  505. text-align: center;
  506. }
  507. }
  508. .learn-list__showWxHeader {
  509. height: calc(100vh - 64px);
  510. }
  511. }