tab3.page.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .profile-container {
  2. position: relative;
  3. overflow: hidden;
  4. background-size: cover;
  5. background-position: center;
  6. img {
  7. width: 100%;
  8. height: 320px; /* 根据需要调整 */
  9. object-fit: cover;
  10. }
  11. }
  12. .profile-card {
  13. position: absolute;
  14. top: 20px; /* 调整位置 */
  15. left: 50%;
  16. transform: translateX(-50%); /* 居中 */
  17. padding: 20px;
  18. background: rgba(0, 0, 0, 0.0); /* 半透明背景 */
  19. color: white;
  20. text-align: center;
  21. border-radius: 10px;
  22. .avatar {
  23. width: 70px; /* 保持宽度 */
  24. height: 70px; /* 修改为与宽度相等的高度 */
  25. border-radius: 50%; /* 圆形 */
  26. margin-bottom: 10px;
  27. border: 3px solid white;
  28. box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  29. }
  30. h2 {
  31. font-size: 16px; /* 调整为较小的字体大小 */
  32. }
  33. p {
  34. font-size: 12px; /* 调整为较小的字体大小 */
  35. }
  36. }
  37. .cards-container {
  38. position: absolute; /* 使容器绝对定位 */
  39. bottom: 20px; /* 距离底部的距离 */
  40. left: 50%;
  41. transform: translateX(-50%); /* 居中 */
  42. display: flex;
  43. justify-content: space-around; /* 水平排列 */
  44. width: 90%; /* 设置宽度 */
  45. padding: 10px 0; /* 上下内边距 */
  46. .card {
  47. width: 80px; /* 设置宽度 */
  48. height: 60px; /* 设置高度 */
  49. background: rgba(255, 255, 255, 0.2); /* 半透明背景 */
  50. border-radius: 10px;
  51. padding: 5px; /* 内边距 */
  52. display: flex;
  53. flex-direction: column; /* 垂直排列内容 */
  54. align-items: center;
  55. gap: 2px; /* 减小间距 */
  56. color: black;
  57. font-size: 14px; /* 设置字体大小 */
  58. border: none;
  59. box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* 添加阴影效果 */
  60. transition: all 0.2s ease-in-out;
  61. ion-icon {
  62. font-size: 32px; /* 设置图标大小 */
  63. flex: 0 0 40%; /* 使图标占据盒子的40% */
  64. display: flex; /* 使图标能够使用flex属性 */
  65. justify-content: center; /* 水平居中图标 */
  66. align-items: center; /* 垂直居中图标 */
  67. width: 100%; /* 使图标宽度为100% */
  68. }
  69. p {
  70. margin: 0; /* 去除默认的外边距 */
  71. }
  72. &:hover {
  73. background: rgba(255, 255, 255, 1); /* 悬停时变为不透明 */
  74. }
  75. }
  76. }
  77. .tabs-container {
  78. margin-top: 20px;
  79. padding: 0 20px;
  80. ion-segment {
  81. --background: rgba(255, 255, 255, 0.5);
  82. --border-width: 0;
  83. --padding-start: 0;
  84. --padding-end: 0;
  85. }
  86. ion-segment-button {
  87. --indicator-background: transparent;
  88. --padding-top: 8px;
  89. --padding-bottom: 8px;
  90. --padding-start: 16px;
  91. --padding-end: 16px;
  92. &.active {
  93. color: blue; /* 激活时文字变为蓝色 */
  94. border-bottom: 2px solid blue; /* 激活时显示蓝色横线 */
  95. }
  96. }
  97. }
  98. .like-collection-buttons {
  99. display: flex;
  100. justify-content: space-between; /* 水平排列并在两端对齐 */
  101. width: 100%; /* 使容器宽度为100% */
  102. margin-top: 10px; /* 与上方内容的间距 */
  103. padding: 10px 20px;
  104. border-bottom: 2px solid rgba(0, 0, 0, 0.3); /* 添加阴影线 */
  105. }
  106. .like-collection-buttons .card {
  107. flex: 0 0 calc(25%); /* 设置卡片宽度为页面宽度的25% */
  108. margin: 0 calc(12.5%); /* 左右间距为页面宽度的12.5% */
  109. background: rgba(255, 255, 255, 0.0); /* 半透明背景 */
  110. border-radius: 10px;
  111. padding: 10px; /* 内边距 */
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. transition: background 0.2s ease-in-out;
  116. }
  117. .like-collection-buttons .card .action-button {
  118. background: none; /* 无背景 */
  119. border: none; /* 无边框 */
  120. color: black; /* 字体颜色 */
  121. font-size: 14px; /* 字体大小 */
  122. cursor: pointer; /* 鼠标指针样式 */
  123. }
  124. .like-collection-buttons .card .action-button:hover {
  125. background: rgba(255, 255, 255, 0.5); /* 悬停时变为半透明 */
  126. }
  127. .content-container {
  128. border-top: 2px solid black; /* 添加上边框 */
  129. padding-top: 10px; /* 可选:增加一些内边距以便更好地展示内容 */
  130. }
  131. .content-container {
  132. border-top: 2px solid black; /* 添加上边框 */
  133. padding-top: 10px; /* 可选:增加一些内边距以便更好地展示内容 */
  134. }
  135. .avatar-container {
  136. display: flex;
  137. justify-content: center;
  138. align-items: center;
  139. margin-bottom: 10px;
  140. }
  141. .avatar {
  142. width: 80px;
  143. height: 80px;
  144. border-radius: 50%;
  145. object-fit: cover;
  146. border: 2px solid black; /* 添加圆形边框 */
  147. }
  148. .vip-status {
  149. background: transparent; /* 透明背景 */
  150. border: none; /* 无边框 */
  151. margin: 0; /* 去除默认的外边距 */
  152. padding: 0; /* 去除默认的内边距 */
  153. }
  154. .vip-button {
  155. background: transparent; /* 透明背景 */
  156. border: none; /* 无边框 */
  157. color: white; /* 白色文字 */
  158. font-size: 14px; /* 字体大小 */
  159. cursor: pointer; /* 鼠标指针样式 */
  160. text-decoration: underline; /* 下划线 */
  161. }
  162. .vip-button:hover {
  163. color: lightblue; /* 悬停时改变颜色 */
  164. }