-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstyle.less
138 lines (112 loc) · 2.4 KB
/
style.less
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
131
132
133
134
135
136
137
138
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700,300);
.transform(@string){
-webkit-transform: @string;
-moz-transform: @string;
-ms-transform: @string;
-o-transform: @string;
}
.transition (@transition) {
-webkit-transition: @transition;
-moz-transition: @transition;
-ms-transition: @transition;
-o-transition: @transition;
}
.border-radius (@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
}
@publicorgcolor: #ff3378;
@privateorgcolor: #0094ff;
@shopcolor: #f0f;
@personcolor:#ccc;
@linehighlight:#ff6a00;
body{
font-family: 'Open Sans Condensed', sans-serif;
.legends{
background:#eee;
.border-radius(5px);
width:200px;
float:left;
padding:4px 16px;
position:absolute;
top:10px;
left:10px;
}
footer{position:absolute;bottom:10px;left:10px;}
}
.publiccolor{background:@publicorgcolor;}
.privatecolor{background:@privateorgcolor;}
.shopcolor{background:@shopcolor}
.personcolor{background:@personcolor;}
.infobox {
position: absolute;
top: 10px;
left: 10px;
border: 1px solid #ccc;
width: 200px;
height: 40;
display: none;
padding: 5px;
background: #fff;
.border-radius(5px);
.transition(all ease-out 0.2s)
}
.inactive {
fill: none;
stroke-width: 2.5px;
stroke: #eee;
stroke-dasharray: 15 3;
}
.active {
fill: none;
stroke-width: 2.5px;
stroke: #666;
.transition(all ease-out 0.2s)
}
line:hover {
stroke-width: 7px;
.transition(all ease-out 0.2s)
}
.highlight {
stroke-width: 3px;
}
circle {
.transition(all ease-out 0.2s);
stroke: #fff;
stroke-width: 1.5px;
}
.private.org circle {
fill: @privateorgcolor;
}
.public.org circle {
fill: @publicorgcolor;
}
.shop.org circle{
fill: @shopcolor;
}
.person circle {
fill: @personcolor;
}
/*.node:hover circle {
fill: #f0f;
.transform(scale(1.2, 1.2))
}*/
.node:hover text {
.transition(all ease-out 0.2s);
font-weight: bold;
}
g.person text {
.transition(all ease-out 0.2s);
font: 8px;
pointer-events: none;
fill: #666;
}
g.org text {
.transition(all ease-out 0.2s);
font: 10px;
pointer-events: none;
}