-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtooltip.css
More file actions
50 lines (45 loc) · 1.17 KB
/
Copy pathtooltip.css
File metadata and controls
50 lines (45 loc) · 1.17 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
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
/*https://www.w3schools.com/css/css_tooltip.asp*/
.tooltip {
position: relative;
display: inline-block;
border-bottom: 1px dotted black;
}
.tooltip .tooltiptext {
width: 120px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
position: absolute;
z-index: 1;
top: 125%;
left: 50%;
margin-left: -60px;
transition: opacity 0.3s;
visibility: hidden;
opacity: 0;
}
/*coherence between different tooltips*/
.tooltiptext {
font-family: 'Roboto', sans-serif !important;
font-size: 14px !important;
font-weight: normal !important;
text-align: center !important;
text-indent: 0px !important;
text-rendering: auto !important;
text-shadow: none !important;
word-spacing: 0px !important;
color: white !important;
}
.tooltip .tooltiptext::after {
content: " ";
position: absolute;
bottom: 100%; /* At the top of the tooltip */
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent #555;
}