tab4.page.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. ion-toolbar {
  2. --background: #ffffff;
  3. --border-width: 0;
  4. --padding-top: 12px;
  5. --padding-bottom: 8px;
  6. }
  7. .user-info {
  8. text-align: center;
  9. padding: 0 16px;
  10. .user-name {
  11. font-weight: bold;
  12. font-size: 16px;
  13. color: #333;
  14. }
  15. .user-stats {
  16. font-size: 12px;
  17. color: #666;
  18. .secondary-stats {
  19. margin-top: 2px;
  20. font-size: 10px;
  21. }
  22. }
  23. }
  24. .challenge-badge {
  25. margin-right: 8px;
  26. font-size: 12px;
  27. font-weight: normal;
  28. border-radius: 12px;
  29. padding: 4px 8px;
  30. }
  31. .data-card {
  32. margin: 16px;
  33. border-radius: 16px;
  34. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  35. ion-card-header {
  36. padding-bottom: 0;
  37. ion-card-title {
  38. font-size: 24px;
  39. .warning-text {
  40. color: var(--ion-color-danger);
  41. display: flex;
  42. align-items: center;
  43. ion-icon {
  44. margin-right: 8px;
  45. }
  46. }
  47. }
  48. }
  49. ion-card-content {
  50. padding-top: 0;
  51. ion-button {
  52. --padding-start: 0;
  53. --padding-end: 0;
  54. font-size: 14px;
  55. color: var(--ion-color-medium);
  56. }
  57. }
  58. }
  59. .weight-card {
  60. margin: 16px;
  61. border-radius: 16px;
  62. .weight-content {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. .weight-value {
  67. font-size: 28px;
  68. font-weight: bold;
  69. small {
  70. font-size: 16px;
  71. font-weight: normal;
  72. color: var(--ion-color-medium);
  73. }
  74. }
  75. .weight-controls {
  76. display: flex;
  77. align-items: center;
  78. ion-select {
  79. width: 100px;
  80. max-width: 100%;
  81. --padding-start: 8px;
  82. --padding-end: 8px;
  83. }
  84. .chart-button {
  85. margin-right: 8px;
  86. }
  87. }
  88. }
  89. }
  90. .vip-card {
  91. margin: 16px;
  92. background: linear-gradient(135deg, #f8e3b8, #e8c275);
  93. ion-card-header {
  94. ion-card-title {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. color: #8a6d3b;
  99. .vip-action {
  100. font-size: 14px;
  101. font-weight: normal;
  102. }
  103. }
  104. }
  105. .vip-item, .vip-promo {
  106. display: flex;
  107. align-items: center;
  108. padding: 8px 0;
  109. border-bottom: 1px solid rgba(138, 109, 59, 0.2);
  110. ion-icon {
  111. margin-right: 8px;
  112. color: #8a6d3b;
  113. }
  114. .countdown {
  115. color: var(--ion-color-danger);
  116. font-weight: bold;
  117. animation: blink 1s infinite;
  118. }
  119. }
  120. .vip-promo {
  121. border-bottom: none;
  122. }
  123. }
  124. @keyframes blink {
  125. 0% { opacity: 1; }
  126. 50% { opacity: 0.5; }
  127. 100% { opacity: 1; }
  128. }
  129. .function-grid {
  130. padding: 0;
  131. margin: 16px;
  132. ion-row {
  133. border-bottom: 1px solid var(--ion-color-light-shade);
  134. &:last-child {
  135. border-bottom: none;
  136. }
  137. }
  138. ion-col {
  139. display: flex;
  140. flex-direction: column;
  141. align-items: center;
  142. justify-content: center;
  143. padding: 16px 8px;
  144. text-align: center;
  145. ion-icon {
  146. font-size: 24px;
  147. margin-bottom: 8px;
  148. color: var(--ion-color-primary);
  149. transition: transform 0.2s ease;
  150. }
  151. div {
  152. font-size: 14px;
  153. color: #333;
  154. }
  155. &:active ion-icon {
  156. transform: scale(1.2);
  157. }
  158. &.diet-col {
  159. .grid-icon, div {
  160. color: var(--ion-color-primary); // 使用主色调
  161. opacity: 1; // 移除半透明效果
  162. }
  163. }
  164. }
  165. .disabled {
  166. opacity: 0.5;
  167. ion-icon, div {
  168. color: var(--ion-color-medium);
  169. }
  170. }
  171. }
  172. .fab-container {
  173. margin-bottom: 80px;
  174. }
  175. ion-fab-button {
  176. --box-shadow: 0 4px 12px rgba(var(--ion-color-primary-rgb), 0.3);
  177. }
  178. ion-fab-list {
  179. ion-fab-button {
  180. width: 120px;
  181. margin-bottom: 8px;
  182. ion-icon {
  183. font-size: 20px;
  184. }
  185. ion-label {
  186. margin-left: 8px;
  187. font-size: 12px;
  188. }
  189. }
  190. }
  191. ion-toolbar {
  192. --background: #f8f8f8;
  193. --border-width: 0;
  194. padding: 8px 12px;
  195. .header-avatar {
  196. width: 40px;
  197. height: 40px;
  198. margin-right: 12px;
  199. background: var(--ion-color-primary);
  200. .avatar-icon {
  201. font-size: 24px;
  202. color: white;
  203. }
  204. }
  205. .header-user-info {
  206. flex-grow: 1;
  207. text-align: left;
  208. .username {
  209. font-weight: bold;
  210. font-size: 16px;
  211. color: #333;
  212. margin-bottom: 2px;
  213. }
  214. .user-stats {
  215. font-size: 12px;
  216. color: #666;
  217. .secondary-stats {
  218. margin-top: 2px;
  219. font-size: 10px;
  220. }
  221. }
  222. }
  223. .challenge-badge {
  224. margin-right: 8px;
  225. font-size: 12px;
  226. font-weight: normal;
  227. border-radius: 12px;
  228. padding: 4px 8px;
  229. }
  230. .settings-btn {
  231. --padding-start: 0;
  232. --padding-end: 0;
  233. --color: #333;
  234. }
  235. }