tab4.page.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .custom-toolbar {
  2. --background: rgba(255, 255, 255, 0.8); /* 使工具栏背景透明 */
  3. display: flex; /* 使用 Flexbox 布局 */
  4. justify-content: center; /* 水平居中 */
  5. align-items: center; /* 垂直居中 */
  6. padding: 0; /* 去掉默认内边距 */
  7. }
  8. .custom-title {
  9. font-size: 1.3em; /* 字体大小 */
  10. font-weight: bold; /* 加粗 */
  11. color: #000000;
  12. text-align: center; /* 文字居中对齐 */
  13. margin: 0; /* 去掉默认外边距 */
  14. text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影效果 */
  15. /* 添加其他美化效果 */
  16. font-family: "微软雅黑"; /* 自定义字体 */
  17. }
  18. ion-card {
  19. background-color: #e0f7fa; /* 浅蓝色背景,给人以清新和健康的感觉 */
  20. border-radius: 10px; /* 圆角边框 */
  21. padding: 20px; /* 内边距 */
  22. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 轻微的阴影效果 */
  23. }
  24. ion-card-title {
  25. font-size: 1.5em; /* 标题字体大小 */
  26. font-weight: bold; /* 加粗 */
  27. color: #00796b; /* 深绿色字体,象征健康 */
  28. margin: 0; /* 去掉默认的外边距 */
  29. }
  30. ion-card-subtitle {
  31. font-size: 1.2em; /* 副标题字体大小 */
  32. color: #004d40; /* 更深的绿色字体 */
  33. margin-top: 5px; /* 顶部外边距 */
  34. }
  35. ion-card:hover {
  36. background-color: #b2ebf2; /* 悬停时的背景色变化 */
  37. transition: background-color 0.3s; /* 背景色变化的过渡效果 */
  38. }
  39. .memo-card {
  40. background-color: #e0f7fa; /* 浅蓝色背景,给人以清新和健康的感觉 */
  41. border-radius: 10px; /* 圆角边框 */
  42. padding: 20px; /* 内边距 */
  43. box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 轻微的阴影效果 */
  44. }
  45. .memo-title {
  46. font-size: 1.8em; /* 标题字体大小 */
  47. font-weight: bold; /* 加粗 */
  48. color: #00796b; /* 深绿色字体,象征健康 */
  49. margin: 15px 0; /* 顶部和底部外边距 */
  50. }
  51. .memo-description {
  52. font-size: 1.1em; /* 描述字体大小 */
  53. color: #004d40; /* 更深的绿色字体 */
  54. margin-bottom: 20px; /* 底部外边距 */
  55. }
  56. .tag-list {
  57. list-style-type: none; /* 去掉默认的列表样式 */
  58. padding: 0; /* 去掉内边距 */
  59. }
  60. .tag-item {
  61. background-color: #b2ebf2; /* 标签背景色 */
  62. color: #00796b; /* 标签字体颜色 */
  63. border-radius: 5px; /* 标签圆角 */
  64. padding: 10px; /* 标签内边距 */
  65. margin: 5px 0; /* 标签外边距 */
  66. transition: background-color 0.3s; /* 背景色变化的过渡效果 */
  67. cursor: pointer; /* 鼠标悬停时显示为可点击 */
  68. }
  69. .tag-item:hover {
  70. background-color: #80deea; /* 悬停时的背景色变化 */
  71. }
  72. .card-header {
  73. display: flex; /* 使用 Flexbox 布局 */
  74. align-items: center; /* 垂直居中对齐 */
  75. padding: 10px; /* 内边距 */
  76. }
  77. .avatar {
  78. width: 50px; /* 头像宽度 */
  79. height: 50px; /* 头像高度 */
  80. border-radius: 50%; /* 圆形头像 */
  81. margin-right: 15px; /* 头像与文本之间的间距 */
  82. object-fit: cover; /* 确保图片覆盖区域并保持比例 */
  83. }
  84. .user-info {
  85. flex: 1; /* 使用户信息部分占据剩余空间 */
  86. }
  87. ion-content {
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. height: 68vh; /* 使内容区域高度为视口高度 */
  92. }
  93. .login-card {
  94. width: 94%; /* 可以根据需要调整宽度 */
  95. max-width: 400px; /* 设置最大宽度以避免过宽 */
  96. text-align: center; /* 文本居中 */
  97. padding: 10px; /* 添加内边距 */
  98. }
  99. .image-container {
  100. width: 100%; /* 图片容器宽度100% */
  101. display: flex; /* 使用flex布局 */
  102. justify-content: center; /* 水平居中 */
  103. margin-top: 10px; /* 上方间距 */
  104. }
  105. .responsive-image {
  106. width: 100%;
  107. height: auto;
  108. object-fit: cover;
  109. }
  110. .stats-card {
  111. margin: 16px;
  112. border-radius: 12px;
  113. background: linear-gradient(135deg, #4CAF50, #2E7D32);
  114. color: white;
  115. }
  116. .stats-title {
  117. padding: 16px 16px 8px;
  118. margin: 0;
  119. font-size: 1.3rem;
  120. font-weight: 600;
  121. color: white;
  122. }
  123. .stats-description {
  124. padding: 0 16px 16px;
  125. margin: 0;
  126. color: rgba(255, 255, 255, 0.9);
  127. font-size: 0.9rem;
  128. }
  129. .stats-grid {
  130. display: grid;
  131. grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  132. gap: 16px;
  133. padding: 16px;
  134. }
  135. .stats-item {
  136. display: flex;
  137. align-items: center;
  138. gap: 12px;
  139. padding: 12px;
  140. background: rgba(255, 255, 255, 0.1);
  141. border-radius: 8px;
  142. backdrop-filter: blur(5px);
  143. }
  144. .stats-icon {
  145. font-size: 24px;
  146. color: rgba(255, 255, 255, 0.9);
  147. }
  148. .stats-content {
  149. h3 {
  150. margin: 0;
  151. font-size: 0.9rem;
  152. color: rgba(255, 255, 255, 0.9);
  153. }
  154. p {
  155. margin: 4px 0 0;
  156. font-size: 1.2rem;
  157. font-weight: 600;
  158. color: white;
  159. }
  160. }