diff --git a/example/src/index.css b/example/src/index.css index 1851ded3..830e6fa4 100644 --- a/example/src/index.css +++ b/example/src/index.css @@ -136,7 +136,7 @@ nav a.active:before { color: #111; } -.dark-node { +.react-flow__node.dark-node { background: #333; color: #f8f8f8; } diff --git a/src/style.css b/src/style.css index f9f41504..fc77e7a6 100644 --- a/src/style.css +++ b/src/style.css @@ -103,8 +103,6 @@ .react-flow__node { position: absolute; color: #222; - font-family: sans-serif; - font-size: 12px; text-align: center; user-select: none; pointer-events: all; @@ -131,6 +129,7 @@ border-radius: 5px; width: 150px; background: #ff6060; + font-size: 12px; } .react-flow__node-input { @@ -138,6 +137,7 @@ border-radius: 5px; width: 150px; background: #9999ff; + font-size: 12px; } .react-flow__node-output { @@ -145,6 +145,7 @@ border-radius: 5px; width: 150px; background: #55dd99; + font-size: 12px; } .react-flow__handle {