teacher-header.module.less 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. .headerContent {
  2. // padding-top: 12px;
  3. // padding-bottom: 20px;
  4. min-height: 100px;
  5. position: relative;
  6. }
  7. .teacherContent {
  8. display: flex;
  9. justify-content: space-between;
  10. flex-shrink: 0;
  11. }
  12. .teacherUs {
  13. padding-left: 20px;
  14. flex: 1 auto;
  15. }
  16. .teacherIcon {
  17. position: relative;
  18. // margin-top: -38px;
  19. line-height: 0;
  20. .avatar {
  21. position: relative;
  22. width: 78px;
  23. height: 78px;
  24. box-sizing: border-box;
  25. border: 2px solid #fff;
  26. background-color: #fff;
  27. }
  28. .avatarActive {
  29. border-color: #F0AF88;
  30. background-color: #F0AF88;
  31. }
  32. .teacherIconVip {
  33. position: absolute;
  34. bottom: 0;
  35. right: -12px;
  36. width: 39px;
  37. height: 18px;
  38. }
  39. }
  40. .teacherInfo {
  41. display: flex;
  42. align-items: center;
  43. padding: 14px 0 0;
  44. .teacherInfoName {
  45. font-weight: 600;
  46. font-size: 22px;
  47. color: #FFFFFF;
  48. max-width: 150px;
  49. overflow: hidden;
  50. white-space: nowrap;
  51. text-overflow: ellipsis;
  52. }
  53. &>img {
  54. margin-left: 10px;
  55. width: 39px;
  56. height: 16px;
  57. }
  58. }
  59. .teacherHonor {
  60. display: flex;
  61. align-items: center;
  62. font-size: 12px;
  63. line-height: 16px;
  64. color: #666;
  65. font-weight: 500;
  66. padding-top: 4px;
  67. padding-left: 8px;
  68. .score {
  69. margin-left: 25px;
  70. }
  71. }
  72. .headerCount {
  73. width: 100%;
  74. padding: 14px 14px 20px;
  75. margin: 0 auto;
  76. border-radius: 10px;
  77. box-sizing: border-box;
  78. }
  79. .teacherOperation {
  80. padding-top: 18px;
  81. display: flex;
  82. :global {
  83. .van-button {
  84. height: 36px;
  85. border-radius: 6px;
  86. background: rgba(255, 255, 255, .2);
  87. border: none;
  88. color: #FFFFFF;
  89. font-size: 14px;
  90. font-weight: 600;
  91. }
  92. }
  93. .btn {
  94. padding: 3px 12px 1px;
  95. flex: 1;
  96. img {
  97. width: 18px;
  98. // height: 18px;
  99. vertical-align: sub;
  100. margin-right: 6px;
  101. }
  102. }
  103. .btnStar {
  104. color: #F8F9FC;
  105. background: #2DC7AA;
  106. margin-right: 13px;
  107. // &::before {
  108. // background: #2DC7AA;
  109. // }
  110. }
  111. }
  112. .subjectSection {
  113. margin-right: 10px;
  114. // height: 18px;
  115. max-width: 44px;
  116. box-sizing: content-box;
  117. }
  118. .teacher-bottom {
  119. padding: 17px 0 0 0;
  120. display: flex;
  121. align-items: center;
  122. .iconCert {
  123. height: 18px;
  124. margin-right: 8px;
  125. }
  126. }
  127. .followFans {
  128. padding-top: 10px !important;
  129. }
  130. .teacher-data {
  131. display: flex;
  132. align-items: center;
  133. justify-content: space-between;
  134. .teacher-data_item {
  135. font-size: 13px;
  136. color: rgba(255,255,255,0.6);
  137. position: relative;
  138. line-height: 1.2;
  139. span {
  140. font-weight: 500;
  141. font-family: DINAlternate, DINAlternate;
  142. font-weight: bold;
  143. font-size: 15px;
  144. color: #fff;
  145. margin-left: 5px;
  146. }
  147. &::after {
  148. content: ' ';
  149. display: inline-block;
  150. position: absolute;
  151. right: 0px;
  152. top: 2px;
  153. width: 1px;
  154. height: 16px;
  155. background: #ebebeb;
  156. }
  157. &:first-child {
  158. padding-right: 15px;
  159. margin-right: 15px;
  160. }
  161. &:last-child {
  162. &::after {
  163. display: none;
  164. }
  165. }
  166. }
  167. }
  168. .iconVip {
  169. width: 34px !important;
  170. margin-right: 5px;
  171. }
  172. .iconOther {
  173. margin-left: 6px;
  174. width: 18px;
  175. height: 18px;
  176. }
  177. .teacher-info {
  178. margin-left: 8px;
  179. .teacher-name {
  180. font-size: 18px;
  181. font-weight: 500;
  182. color: #1a1a1a;
  183. padding-bottom: 6px;
  184. display: flex;
  185. justify-content: space-between;
  186. .teacherCert {
  187. display: flex;
  188. align-items: center;
  189. }
  190. .teacherLast {
  191. display: inline-block;
  192. max-width: 120px;
  193. overflow: hidden;
  194. text-overflow: ellipsis;
  195. white-space: nowrap;
  196. }
  197. }
  198. }
  199. .subjectList::-webkit-scrollbar {
  200. display: none;
  201. /* Chrome Safari */
  202. }
  203. .subjectList {
  204. overflow: auto;
  205. width: 285px;
  206. // height: 18px;
  207. display: flex;
  208. flex-wrap: nowrap;
  209. }
  210. .piNameSubject {
  211. display: flex;
  212. align-items: center;
  213. padding-top: 20px;
  214. .subject {
  215. display: flex;
  216. align-items: center;
  217. margin-left: 8px;
  218. background: rgba(255, 255, 255, .2);
  219. border-radius: 10px;
  220. font-size: 12px;
  221. line-height: 1.3;
  222. color: #FFFFFF;
  223. padding: 4px 8px 3px;
  224. white-space: nowrap;
  225. &:first-child {
  226. margin-left: 0;
  227. }
  228. }
  229. }
  230. .rTitle {
  231. display: flex;
  232. align-items: center;
  233. &::before {
  234. margin-right: 8px;
  235. content: ' ';
  236. display: inline-block;
  237. width: 4px;
  238. height: 14px;
  239. background: #2dc7aa;
  240. border-radius: 3px;
  241. }
  242. }
  243. .liveTag {
  244. position: absolute;
  245. top: -1.5px;
  246. left: 50%;
  247. transform: translateX(-50%);
  248. width: 34px;
  249. // line-height: 16px;
  250. // background: #ff6363;
  251. // border-radius: 20px;
  252. // text-align: center;
  253. // color: #fff;
  254. // font-size: 10px;
  255. // font-weight: 500;
  256. // padding: 2px 0;
  257. // width: 60%;
  258. z-index: 10;
  259. }
  260. .teacherName {
  261. display: inline-block;
  262. flex: 1;
  263. white-space: nowrap;
  264. overflow: hidden;
  265. text-overflow: ellipsis;
  266. max-width: 100px;
  267. }
  268. .teacherIcons {
  269. display: flex;
  270. align-items: center;
  271. }
  272. .teaherPopup {
  273. background: transparent;
  274. width: 276px;
  275. overflow: initial;
  276. }
  277. .teacherIconWrap {
  278. padding: 50px 22px 22px 22px;
  279. background-color: #fff;
  280. border-radius: 0 0 10px 10px;
  281. margin-top: -25px;
  282. }
  283. .teacherIconItem {
  284. margin-bottom: 16px;
  285. .teacherIconItemTop {
  286. display: flex;
  287. align-items: center;
  288. margin-bottom: 10px;
  289. }
  290. :global {
  291. .van-image {
  292. margin-right: 8px;
  293. width: 24px;
  294. height: 24px;
  295. }
  296. }
  297. .teacherIconTitle {
  298. font-size: 16px;
  299. font-weight: bold;
  300. color: #333;
  301. }
  302. .teacherIconDes {
  303. font-size: 12px;
  304. line-height: 16px;
  305. font-weight: 400;
  306. padding-left: 3px;
  307. color: #666;
  308. }
  309. }
  310. .closeIcon {
  311. position: absolute;
  312. bottom: -54px;
  313. left: 50%;
  314. transform: translateX(-50%);
  315. width: 0.96rem;
  316. height: 0.96rem;
  317. }
  318. .liveList {
  319. padding: 12px 0;
  320. .headerFollow {
  321. margin-bottom: 12px;
  322. .teacherIcon {
  323. margin: 0 10px 0 0;
  324. }
  325. .score {
  326. margin-left: 10px;
  327. }
  328. .teacherIconVip {
  329. left: 50%;
  330. right: initial;
  331. transform: translateX(-50%);
  332. bottom: -6px;
  333. }
  334. .liveTag {
  335. // bottom: -30px;
  336. width: 80%;
  337. }
  338. .avatar {
  339. width: 72px;
  340. height: 72px;
  341. }
  342. .piNameSubject {
  343. align-items: flex-start;
  344. }
  345. .subjectList {
  346. flex-wrap: wrap;
  347. }
  348. .subject {
  349. margin: 2px 5px 3px 0;
  350. }
  351. .teacher-bottom {
  352. padding-top: 24px;
  353. }
  354. .unlinkeBtn {
  355. font-size: 12px;
  356. color: #ff6363;
  357. border: 1px solid #ff6363;
  358. padding: 5px 10px;
  359. border-radius: 20px;
  360. }
  361. }
  362. }
  363. .followContainer {
  364. display: flex;
  365. align-items: flex-start;
  366. }