-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhighcharts-tree.scss
82 lines (69 loc) · 2.13 KB
/
highcharts-tree.scss
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
$colors: #7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1 !default;
// relative to config
$highcharts-tree-node-color: #454d59 !default; // node.textColor
$highcharts-tree-node-bg: #f2f2f2 !default; // node.backgroundColor
$highcharts-tree-node-bg-toggle: #cccccc !default; // node.backgroundColorToggle
$highcharts-tree-node-bg-hover: #d6d6d6 !default; // node.hover.backgroundColor
$highcharts-tree-node-bg-toggle-hover: #cccccc !default; // node.hover.backgroundColorToggle
$highcharts-tree-node-border-color: #919191 !default; // node.border.color
$highcharts-tree-tooltip-color: #fff !default; // tooltip.textColor
$highcharts-tree-tooltip-bg: rgba(0,0,0,0.6) !default; // tooltip.backgroundColor
$highcharts-tree-connector-color: #bcbcbc !default; // connector.color
.highcharts-tree-node-title text {
pointer-events: none;
font-size: 14px;
color: $highcharts-tree-node-color;
font-weight: bold;
text-align: center;
}
.highcharts-tree-node-data text {
pointer-events: none;
font-size: 13px;
color: $highcharts-tree-node-color;
text-overflow: ellipsis;
}
.highcharts-tree-node-tooltip-inner {
border-radius: 3px;
background-color: $highcharts-tree-tooltip-bg;
color: $highcharts-tree-tooltip-color;
font-size: 12px;
white-space: initial;
word-break: break-word;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.highcharts-tree-node-tooltip.hover {
.highcharts-tree-node-tooltip-inner {
opacity: 1;
}
}
.highcharts-tree-box {
fill: $highcharts-tree-node-bg;
stroke: $highcharts-tree-node-border-color;
stroke-width: 3px;
&.fold {
fill: $highcharts-tree-node-bg-toggle
}
&:hover {
fill: $highcharts-tree-node-bg-hover;
transition: fill 0.3s ease-in-out;
&.fold {
fill: $highcharts-tree-node-bg-toggle-hover;
}
}
}
.highcharts-tree-connector {
stroke-width: 4px;
stroke: $highcharts-tree-connector-color;
}
@for $i from 1 through length($colors) {
$color: nth($colors, $i);
.highcharts-tree-legend-#{$i - 1} {
fill: $color;
}
}
.highcharts-tree-legend-text {
font-size: 14px;
color: $highcharts-tree-node-color;
font-weight: bold;
}