tab1.page.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .button-container {
  2. position: absolute; /* 绝对定位 */
  3. top: 66px; /* 距离顶部的距离 */
  4. left: 16px; /* 距离左侧的距离 */
  5. display: flex; /* 使用flexbox布局 */
  6. flex-direction: row; /* 垂直排列 */
  7. gap: 8px; /* 按钮之间的间距 */
  8. }
  9. .custom-button {
  10. font-size: 12px; /* 按钮字体大小 */
  11. border-radius: 6px; /* 圆角按钮 */
  12. color: rgb(245, 82, 82); /* 字体颜色 */
  13. transition: opacity 0.3s, color 0.3s; /* 添加过渡效果 */
  14. }
  15. /* 添加按钮的悬停效果 */
  16. .custom-button:hover {
  17. opacity: 0.5 !important; /* 悬停时透明度变化 */
  18. color:aqua !important;
  19. }
  20. ion-content {
  21. --background: #ffcccb; /* 设置背景颜色为粉色 */
  22. color: black; /* 设置文本颜色为黑色,确保可读性 */
  23. }
  24. ion-header {
  25. background-color: #f19595; /* 设置背景颜色为淡粉色 */
  26. color: black; /* 设置文本颜色为黑色 */
  27. }
  28. ion-toolbar {
  29. --background: transparent; /* 如果需要透明效果,可以设置为透明 */
  30. }
  31. .card1 {
  32. margin-top: 70px; /* 增加顶部边距 */
  33. background-color:rgb(250, 222, 222);
  34. }
  35. .card2 {
  36. margin-top: 60px; /* 增加顶部边距 */
  37. background-color:rgb(250, 222, 222);
  38. }