tab2.page.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .nutritionist-card {
  2. border-radius: 16px;
  3. overflow: hidden;
  4. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  5. }
  6. .card-header {
  7. position: relative;
  8. //height: 340px;
  9. }
  10. .profile-image {
  11. width: 100%;
  12. height: 100%;
  13. object-fit: cover;
  14. object-position: center;
  15. }
  16. .header-overlay {
  17. position: absolute;
  18. bottom: 0;
  19. left: 0;
  20. right: 0;
  21. background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  22. padding: 16px;
  23. }
  24. .name-title {
  25. color: white;
  26. font-size: 1.5rem;
  27. font-weight: bold;
  28. }
  29. .professional-title {
  30. color: var(--ion-color-light);
  31. font-size: 0.9rem;
  32. }
  33. .card-content {
  34. padding: 16px;
  35. }
  36. .specialty-tags {
  37. display: flex;
  38. flex-wrap: wrap;
  39. gap: 8px;
  40. margin-bottom: 12px;
  41. }
  42. .profile-description {
  43. color: var(--ion-color-medium);
  44. font-size: 0.9rem;
  45. line-height: 1.5;
  46. margin: 12px 0;
  47. }
  48. .credentials {
  49. display: flex;
  50. align-items: center;
  51. flex-wrap: wrap;
  52. gap: 12px;
  53. font-size: 0.8rem;
  54. color: var(--ion-color-medium);
  55. margin-top: 16px;
  56. }
  57. .card-footer {
  58. padding: 16px;
  59. }
  60. .consult-button {
  61. --border-radius: 8px;
  62. font-weight: bold;
  63. }
  64. /* 添加到对应的SCSS文件中 */
  65. .nutritionist-card {
  66. margin: 0;
  67. border-radius: 16px;
  68. overflow: hidden;
  69. box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  70. .card-header {
  71. position: relative;
  72. //height: 200px;
  73. overflow: hidden;
  74. .profile-image {
  75. width: 100%;
  76. height: 100%;
  77. object-fit: cover;
  78. }
  79. .header-overlay {
  80. position: absolute;
  81. bottom: 0;
  82. left: 0;
  83. right: 0;
  84. padding: 16px;
  85. background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  86. .name-title {
  87. color: white;
  88. font-size: 1.5rem;
  89. font-weight: bold;
  90. }
  91. .professional-title {
  92. color: var(--ion-color-light);
  93. font-size: 1rem;
  94. }
  95. }
  96. }
  97. .card-content {
  98. padding: 16px;
  99. .specialty-tags {
  100. display: flex;
  101. flex-wrap: wrap;
  102. gap: 8px;
  103. margin-bottom: 16px;
  104. }
  105. .profile-section {
  106. display: flex;
  107. align-items: flex-start;
  108. margin-bottom: 16px;
  109. .profile-icon {
  110. margin-right: 12px;
  111. margin-top: 2px;
  112. }
  113. .profile-description {
  114. margin: 0;
  115. color: var(--ion-color-medium);
  116. line-height: 1.5;
  117. }
  118. }
  119. .credentials {
  120. margin-top: 20px;
  121. .credential-item {
  122. --padding-start: 0;
  123. --inner-padding-end: 0;
  124. margin-bottom: 8px;
  125. }
  126. }
  127. }
  128. .consult-history {
  129. margin: 0;
  130. padding: 0;
  131. .consult-item {
  132. --padding-start: 16px;
  133. --padding-end: 16px;
  134. --inner-padding-end: 0;
  135. .default-avatar {
  136. font-size: 40px;
  137. color: var(--ion-color-medium);
  138. }
  139. ion-label {
  140. h3 {
  141. font-weight: 500;
  142. }
  143. p {
  144. color: var(--ion-color-medium);
  145. font-size: 0.875rem;
  146. }
  147. }
  148. }
  149. }
  150. .card-footer {
  151. padding: 16px;
  152. .consult-button {
  153. --border-radius: 8px;
  154. height: 48px;
  155. font-weight: 600;
  156. }
  157. }
  158. }