-
Notifications
You must be signed in to change notification settings - Fork 2
/
n3.css
130 lines (117 loc) · 2.54 KB
/
n3.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
svg {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Trying to get SVG to act like a greedy block in all browsers */
display: block;
width:100%;
height:100%;
}
svg text {
font: normal 12px Arial;
fill: #fff;
}
svg .title {
font: bold 14px Arial;
}
.n3-background {
fill-opacity: 1;
}
.n3-axis path {
fill: none;
stroke: #313131;
stroke-opacity: .75;
shape-rendering: crispEdges;
}
.n3-axis path.domain {
stroke-opacity: .75;
}
.n3-axis.n3-x path.domain {
stroke-opacity: 0;
}
.n3-axis line {
fill: none;
stroke: #313131;
shape-rendering: crispEdges;
}
.n3-axis line.minor {
stroke-opacity: .25;
}
.n3-axis line.zero {
stroke-opacity: .75;
}
.n3-axis .n3-axisMaxMin text {
font-weight: bold;
}
.x .n3-axis .n3-axisMaxMin text,
.x2 .n3-axis .n3-axisMaxMin text,
.x3 .n3-axis .n3-axisMaxMin text {
text-anchor: middle
}
.n3-stroke {
stroke-width: 1.5px;
}
.n3-axis.n3-y text, .n3-points {
opacity: 0;
-webkit-transition: opacity .1s ease-in-out;
-moz-transition: opacity .1s ease-in-out;
-o-transition: opacity .1s ease-in-out;
transition: opacity .1s ease-in-out;
}
.n3-cursor {
opacity: 0;
-webkit-transition: opacity .2s ease-in-out;
-moz-transition: opacity .2s ease-in-out;
-o-transition: opacity .2s ease-in-out;
transition: opacity .2s ease-in-out;
}
.graph .n3-y.n3-axis line {
opacity: 0.2;
-webkit-transition: opacity .2s ease-in-out;
-moz-transition: opacity .2s ease-in-out;
-o-transition: opacity .2s ease-in-out;
transition: opacity .2s ease-in-out;
}
.graph:hover .n3-y.n3-axis line {
opacity: 0.7;
}
.graph:hover .n3-axis text {
opacity: 1;
}
.graph:hover .n3-points, .graph:hover .n3-cursor {
opacity: 1;
}
.graph:hover {
cursor: text;
}
.graph:hover .n3-points .n3-point {
opacity: 0.5;
stroke-width: 2px;
-webkit-transition: all .1s ease-in-out;
-moz-transition: all .1s ease-in-out;
-o-transition: all .1s ease-in-out;
transition: all .1s ease-in-out;
}
.graph:hover .n3-points .n3-point:hover {
opacity: 1;
fill: #fff;
stroke: #fff;
stroke-opacity: 0.5;
stroke-width: 8px;
}
.n3-x.n3-axis text {
text-anchor: middle;
}
.n3-y.n3-axis text {
text-anchor: end !important;
}
.n3-linegraph {
transform:translate(0px,1px);
-ms-transform:translate(0px,1px);
-moz-transform:translate(0px,1px);
-webkit-transform:translate(0px,1px);
-o-transform:translate(0px,1px);
}