teacher-header.module.less 5.9 KB

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