-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtooltip-mini.css
53 lines (49 loc) · 1.07 KB
/
tooltip-mini.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
[data-tooltip-left] {
position: relative;
z-index: 2;
cursor: pointer;
}
[data-tooltip-left]:before,
[data-tooltip-left]:after {
visibility: hidden;
opacity: 0;
pointer-events: none;
}
[data-tooltip-left]:before {
position: absolute;
bottom: 100%;
left: 50%;
margin-bottom: 5px;
margin-left: -15px;
padding: 7px;
width: 95px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background-color: #000;
background-color: hsla(0, 0%, 20%, 0.9);
color: #fff;
content: attr(data-tooltip-left);
text-align: center;
font-size: 10px;
line-height: 1.2;
}
[data-tooltip-left]:after {
position: absolute;
bottom: 100%;
left: 50%;
margin-left: 0px;
width: 0;
border-top: 5px solid #000;
border-top: 5px solid hsla(0, 0%, 20%, 0.9);
border-right: 5px solid transparent;
border-left: 5px solid transparent;
content: " ";
font-size: 0;
line-height: 0;
}
[data-tooltip-left]:hover:before,
[data-tooltip-left]:hover:after {
visibility: visible;
opacity: 1;
}