forked from EbrahimKaram/Lebanon-Districts-D3-Map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tooltip.css
33 lines (31 loc) · 841 Bytes
/
tooltip.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
/* CSS for tooltip box that appears when mouse hovers over D3.js map. */
path:hover {
fill: #72716c;
}
#tooltip {
position: absolute;
width: 200px;
height: auto;
padding: 10px;
background-color: white;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
pointer-events: none;
z-index: 3; /* Makes tooltip box appear above other elements on webpage. */
}
#tooltip.hidden {
display: none;
}
#tooltip div.hidden{
display: none;
}
#tooltip p {
margin: 0;
font-family: sans-serif;
font-size: 16px;
line-height: 20px;
}