tab4.page.scss 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. }