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