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
| // Todo: look into resetting the transition delay when mouse out
|
| .casTooltip {
| position: relative;
| display: inline-block;
| }
|
| /* Tooltip text */
| .casTooltip .tooltiptext {
| visibility: hidden;
| width: 250px;
| background-color: #333;
| color: #fff;
| text-align: center;
| border-radius: 6px;
| padding: 10px;
| position: absolute;
| z-index: 1;
| top: 100%;
| left: 50%;
| margin-left: -125px;
| margin-top: 10px;
| opacity: 0;
| transition: opacity 1s;
| transition-delay: 2s;
| font-size: 1.5rem;
| font-weight: 300;
| font-family: Lato;
| }
|
| /* Show the tooltip text when you mouse over the tooltip container */
| .casTooltip:hover .tooltiptext {
| visibility: visible;
| opacity: 1;
| }
|
| .casTooltip .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 #333 transparent;
| }
|
|