-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathFlow.css
More file actions
23 lines (21 loc) · 789 Bytes
/
Flow.css
File metadata and controls
23 lines (21 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* React Flow uses path markers for arrows. We want different colors for
* selected and unselected markers. To do this, we give each marker an invalid
* color name: 'selected' or 'unselected'. This prevents React Flow from putting
* colors in the marker's `fill` and `stroke` attributes. React Flow also puts
* these names into the marker id as a param: `color=<selected|unselected>`. We
* then match the marker id with a CSS selector to apply the correct styles.
*/
defs > marker {
&[id^='1__color=unselected'] > polyline {
fill: var(--color-foreground);
stroke: var(--color-foreground);
html.dark & {
fill: var(--edge);
stroke: var(--edge);
}
}
&[id^='1__color=selected'] > polyline {
fill: var(--primary);
stroke: var(--primary);
}
}