-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
60 lines (51 loc) · 856 Bytes
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
body {
margin: 0;
padding: 0;
}
svg {
font-family: sans-serif;
}
.instructions {
font-size: 2em;
text-anchor: middle;
alignment-baseline: middle;
}
svg .node {
cursor: pointer;
}
svg .node text {
alignment-baseline: middle;
/* Prevent text selection highlighting on dragging.
To achieve this via JavaScript:
Pablo(textEl).cssPrefix('user-select', 'none');
*/
user-select: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
svg .node rect {
fill: none;
stroke: none;
stroke-width: 2;
}
svg .node path {
stroke: darkgreen;
stroke-width: 2;
fill: none;
}
/* Hub */
svg > .node > rect {
fill: lightgreen;
stroke: darkgreen;
}
/* Selected */
svg .node.selected > rect {
fill: #fdd;
stroke: #d00;
stroke-width: 1;
}
svg .node.selected > text {
fill: #d00;
}