chapter-generator.page.scss 834 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* chapter-generator.page.scss */
  2. ion-menu {
  3. --width: 80%;
  4. }
  5. ion-list {
  6. margin-top: 16px;
  7. }
  8. .overlay {
  9. position: fixed;
  10. top: 0;
  11. left: 0;
  12. width: calc(100% - 200px);
  13. /* 200px 是侧边栏的宽度 */
  14. height: 100%;
  15. background-color: rgba(0, 0, 0, 0.5);
  16. /* 半透明黑色背景 */
  17. z-index: 999;
  18. /* 确保遮罩层在主要内容之上 */
  19. margin-left: 200px;
  20. /* 与侧边栏对齐 */
  21. }
  22. .content-container {
  23. display: flex;
  24. width: 100%;
  25. height: 100%;
  26. position: relative;
  27. z-index: 100;
  28. /* 设置一个比侧边栏低的 z-index */
  29. }
  30. .chapter-edit-container {
  31. flex: 1;
  32. padding: 16px;
  33. position: relative;
  34. z-index: 100;
  35. /* 设置与 AI 功能按钮相同的 z-index */
  36. }
  37. ion-fab {
  38. z-index: 1000;
  39. /* 确保悬浮球在最上层 */
  40. }