Skip to content

Commit 384769f

Browse files
committed
style(nodes): put styles into specific node type classes
1 parent 35d0a46 commit 384769f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

example/src/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ nav a.active:before {
136136
color: #111;
137137
}
138138

139-
.dark-node {
139+
.react-flow__node.dark-node {
140140
background: #333;
141141
color: #f8f8f8;
142142
}

src/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@
103103
.react-flow__node {
104104
position: absolute;
105105
color: #222;
106-
font-family: sans-serif;
107-
font-size: 12px;
108106
text-align: center;
109107
user-select: none;
110108
pointer-events: all;
@@ -131,20 +129,23 @@
131129
border-radius: 5px;
132130
width: 150px;
133131
background: #ff6060;
132+
font-size: 12px;
134133
}
135134

136135
.react-flow__node-input {
137136
padding: 10px;
138137
border-radius: 5px;
139138
width: 150px;
140139
background: #9999ff;
140+
font-size: 12px;
141141
}
142142

143143
.react-flow__node-output {
144144
padding: 10px;
145145
border-radius: 5px;
146146
width: 150px;
147147
background: #55dd99;
148+
font-size: 12px;
148149
}
149150

150151
.react-flow__handle {

0 commit comments

Comments
 (0)