-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheatmap-component.css
143 lines (119 loc) · 2.68 KB
/
heatmap-component.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
131
132
133
134
135
136
137
138
139
140
141
142
143
:root {
/** Position of bottom-left corner of tooltip box relative to the mouse position */
--tooltip-offset-x: 5px;
/** Position of bottom-left corner of tooltip box relative to the mouse position */
--tooltip-offset-y: 8px;
}
.heatmap-main-div {
font-family: sans-serif;
}
.heatmap-canvas-div {
/* Set background-color here to change the background of the heatmap */
background-color: none;
}
/* Marker extension */
.heatmap-marker {
stroke: black;
stroke-width: 4;
fill: none;
pointer-events: none;
}
.heatmap-marker-x,
.heatmap-marker-y {
stroke: black;
stroke-width: 2;
fill: none;
pointer-events: none;
}
/* Tooltip extension */
.heatmap-tooltip-box,
.heatmap-pinned-tooltip-box {
z-index: 0;
/* Avoid tooltip flickering */
pointer-events: none;
}
.heatmap-tooltip-content,
.heatmap-pinned-tooltip-content {
margin-left: var(--tooltip-offset-x);
margin-bottom: var(--tooltip-offset-y);
border: solid black 1px;
padding-block: 0.35em;
padding-inline: 0.7em;
background-color: white;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.75);
pointer-events: initial;
width: max-content;
}
.heatmap-pinned-tooltip-close {
position: absolute;
top: -8px;
right: -8px;
width: 16px;
height: 16px;
border-radius: 1000px;
background-color: black;
border: solid black 1px;
pointer-events: initial;
cursor: pointer;
}
.heatmap-pinned-tooltip-close svg {
position: absolute;
width: 100%;
height: 100%;
fill: white;
stroke: white;
}
.heatmap-pinned-tooltip-pin {
position: absolute;
left: 0px;
bottom: 0px;
width: calc(var(--tooltip-offset-x) / 0.6);
height: calc(var(--tooltip-offset-y) / 0.6);
z-index: -1;
}
.heatmap-pinned-tooltip-pin svg {
fill: black;
}
/* Overlay (Zoom extension) */
.heatmap-overlay {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 0;
}
.heatmap-overlay-shade {
position: absolute;
width: 100%;
height: 100%;
background-color: black;
opacity: 0.4;
z-index: -1;
}
.heatmap-overlay-message {
margin: 5px;
padding-block: 1em;
padding-inline: 1.6em;
text-align: center;
font-size: 150%;
font-weight: bold;
background-color: white;
border: solid black 1px;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.75);
}
/* Brush extension */
.heatmap-brush-close {
cursor: pointer;
}
.heatmap-brush-close .cross {
fill: black;
stroke: black;
}
.heatmap-brush-close .circle {
fill: white;
stroke: white;
}