-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathchartist-plugin-tooltip2.css
More file actions
57 lines (55 loc) · 1.49 KB
/
Copy pathchartist-plugin-tooltip2.css
File metadata and controls
57 lines (55 loc) · 1.49 KB
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
/**
* Chartist.js plugin to display a tooltip on top of a chart.
* @author Antonia Ciocodeica
* @version 0.1 22 Nov 2016
*/
.chartist-tooltip {
position: absolute;
left: 0;
top: 0;
z-index: 1000;
display: block;
padding: 1em 2em;
visibility: hidden;
transform: translateY(3em);
opacity: 0;
border-radius: 0.25em;
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.2);
transition: transform 0.2s ease-in-out;
}
.chartist-tooltip:not([hidden]) {
margin: 0;
visibility: visible;;
transform: none;
opacity: 1;
}
/* Tooltip arrow */
.chartist-tooltip::before {
content: '\25BC';
position: absolute;
left: calc(50% - .5em);
top: 100%;
z-index: -1;
font-size: 1.3em;
line-height: .5em;
font-family: Arial, sans-serif;
color: rgba(255, 255, 255, 0.9);
transform: scaleY(0.7);
text-shadow: 0 0.25em 0.35em rgba(0, 0, 0, 0.1);
}
.chartist-tooltip--left::before {
left: 0.75em;
}
.chartist-tooltip--right::before {
left: auto;
right: 0.75em;
}
/* Adds a small point transition (line charts) when the point is active */
.ct-point {
transition: all 0.2s ease-in-out;
}
/* Increased specificity intended to overwrite the default chartist style */
.ct-chart-line.ct-chart-line .ct-point--hover {
stroke-width: 1.25em;
}