tab3.page.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. /* 页面整体布局 */
  2. ion-content {
  3. background-color: white; /* 将页面背景色改为白色 */
  4. padding: 16px;
  5. }
  6. /* 标题 */
  7. ion-toolbar {
  8. --background: white; /* 将工具栏背景色改为白色 */
  9. --color: black; /* 设置标题字体为黑色 */
  10. border-bottom: 1px solid #e1e1e1; /* 为工具栏底部添加轻微边框 */
  11. }
  12. ion-title {
  13. font-size: 22px;
  14. font-weight: bold;
  15. text-align: center;
  16. color: black; /* 标题字体颜色改为黑色 */
  17. }
  18. /* 用户信息区域 */
  19. .user-info {
  20. background-color: white;
  21. border-radius: 10px;
  22. padding: 16px;
  23. margin-bottom: 16px;
  24. box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  25. }
  26. ion-avatar {
  27. width: 60px;
  28. height: 60px;
  29. margin-right: 16px;
  30. }
  31. ion-label h2 {
  32. font-size: 18px;
  33. font-weight: bold;
  34. color: #333; /* 用户名的字体颜色设置为深灰色 */
  35. margin: 0;
  36. }
  37. ion-label p {
  38. font-size: 14px;
  39. color: #888; /* 登录提示字体颜色设置为浅灰色 */
  40. margin-top: 4px;
  41. }
  42. .user-actions {
  43. display: flex;
  44. flex-direction: column;
  45. justify-content: center;
  46. align-items: flex-end;
  47. }
  48. .user-actions ion-button {
  49. margin-bottom: 8px;
  50. width: 100%;
  51. }
  52. /* 按钮样式 */
  53. ion-button {
  54. font-size: 14px;
  55. font-weight: bold;
  56. border-radius: 8px;
  57. }
  58. ion-button[color="primary"] {
  59. --background: #3880ff;
  60. --color: white;
  61. --border-radius: 10px;
  62. }
  63. ion-button[color="secondary"] {
  64. --background: #ffcd38;
  65. --color: white;
  66. }
  67. ion-button[color="tertiary"] {
  68. --background: #10dc60;
  69. --color: white;
  70. }
  71. ion-button[color="danger"] {
  72. --background: #eb445a;
  73. --color: white;
  74. }
  75. /* 锻炼计划和历史记录卡片 */
  76. ion-card {
  77. margin-bottom: 16px;
  78. border-radius: 10px;
  79. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  80. background-color: white;
  81. }
  82. ion-card-header {
  83. background-color: #3880ff;
  84. color: white;
  85. border-top-left-radius: 10px;
  86. border-top-right-radius: 10px;
  87. padding: 16px;
  88. }
  89. ion-card-title {
  90. font-size: 18px;
  91. font-weight: bold;
  92. margin: 0;
  93. }
  94. ion-card-content {
  95. padding: 16px;
  96. }
  97. ion-item {
  98. display: flex;
  99. align-items: center;
  100. justify-content: space-between;
  101. }
  102. ion-label {
  103. font-size: 16px;
  104. color: #333;
  105. }
  106. ion-button.expand-block {
  107. width: 100%;
  108. font-weight: bold;
  109. margin-top: 8px;
  110. }
  111. ion-item ion-button {
  112. border-radius: 8px;
  113. }
  114. /* 响应式调整 */
  115. @media (max-width: 767px) {
  116. /* 用户信息区域调整 */
  117. .user-info {
  118. padding: 12px;
  119. margin-bottom: 12px;
  120. }
  121. ion-avatar {
  122. width: 50px;
  123. height: 50px;
  124. }
  125. ion-label h2 {
  126. font-size: 16px;
  127. }
  128. ion-button {
  129. font-size: 14px;
  130. }
  131. /* 锻炼计划和历史记录卡片 */
  132. ion-card {
  133. margin-bottom: 12px;
  134. }
  135. ion-card-header {
  136. padding: 12px;
  137. }
  138. ion-card-title {
  139. font-size: 16px;
  140. }
  141. ion-button.expand-block {
  142. width: 100%;
  143. }
  144. }