tabs.page.scss 868 B

12345678910111213141516171819202122232425262728293031323334
  1. .custom-tab-bar {
  2. display: grid;
  3. grid-template-columns: repeat(5, 1fr); /* 创建五个等宽的列 */
  4. position: relative;
  5. }
  6. .custom-tab-button {
  7. display: flex;
  8. justify-content: center;
  9. align-items: center;
  10. height: 100%;
  11. }
  12. .placeholder-tab-button {
  13. opacity: 0; /* 隐藏占位按钮 */
  14. pointer-events: none; /* 禁止点击 */
  15. }
  16. .custom-fab {
  17. position: absolute;
  18. bottom: 20px; /* 调整底部间距,根据需求修改 */
  19. left: calc(50% - 25px); /* 计算使按钮水平居中 */
  20. z-index: 10; /* 确保加号按钮位于其他元素之上 */
  21. }
  22. ion-fab-list {
  23. position: absolute;
  24. bottom: 60px; /* 确保拓展选项列表不会与底部标签栏重叠 */
  25. z-index: 11; /* 确保拓展选项列表位于加号按钮之上 */
  26. }
  27. ion-fab {
  28. --ion-color-primary: #3880ff; /* 加号按钮的颜色 */
  29. }