FlowChart.module.css 887 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .container {
  2. width: 100%;
  3. height: 100%;
  4. background: #fafafa;
  5. position: relative;
  6. }
  7. .scrollContainer {
  8. width: 100%;
  9. height: 100%;
  10. }
  11. .svg {
  12. width: 100%;
  13. height: 100%;
  14. background: #fff;
  15. cursor: grab;
  16. overscroll-behavior: contain;
  17. }
  18. .panning {
  19. cursor: grabbing;
  20. }
  21. .links path {
  22. transition: all 0.2s ease;
  23. }
  24. .nodes text {
  25. pointer-events: none;
  26. }
  27. .controls {
  28. position: absolute;
  29. right: 16px;
  30. bottom: 16px;
  31. display: flex;
  32. gap: 8px;
  33. background: rgba(255, 255, 255, 0.9);
  34. border: 1px solid #e5e7eb;
  35. border-radius: 10px;
  36. padding: 6px;
  37. box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  38. z-index: 10;
  39. }
  40. .controlButton {
  41. min-width: 36px;
  42. height: 32px;
  43. border: 1px solid #d0d7de;
  44. border-radius: 8px;
  45. background: #fff;
  46. color: #333;
  47. font-size: 14px;
  48. cursor: pointer;
  49. position: relative;
  50. }
  51. .controlButton:hover {
  52. background: #f5f7fb;
  53. }