tab3.page.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-button {
  19. display: flex;
  20. flex-direction: column;
  21. align-items: center;
  22. text-align: center;
  23. }
  24. .category-image-wrapper {
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. width: 80px;
  29. height: 80px;
  30. border-radius: 50%;
  31. background-color: #e0f7fa; /* 调整背景色 */
  32. margin-bottom: 8px;
  33. }
  34. .category-image {
  35. display: inline-block;
  36. width: 60px;
  37. height: 60px;
  38. border-radius: 50%;
  39. }
  40. .category-name {
  41. margin-top: 4px;
  42. font-size: 14px;
  43. color: #333;
  44. }
  45. ion-icon {
  46. font-size: 24px;
  47. margin-bottom: 4px;
  48. }