-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
94 lines (84 loc) · 1.74 KB
/
index.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* The icon */
.help-tip{
position: relative;
text-align: center;
border: 2px solid #444;
border-radius: 50%;
width: 15px;
height: 15px;
font-size: 15px;
line-height: 15px;
cursor: default;
margin-left: 5px;
}
.help-tip:before{
content:'?';
font-family: sans-serif;
font-weight: normal;
color:#444;
}
.help-tip:hover p{
display:block;
transform-origin: 100% 0%;
-webkit-animation: fadeIn 0.3s ease;
animation: fadeIn 0.3s ease;
}
/* The tooltip */
.help-tip p {
display: none;
font-family: sans-serif;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
text-align: center;
background-color: #FFFFFF;
padding: 12px 16px;
width: 178px;
height: auto;
position: absolute;
left: 50%;
transform: translate(-50%, 5%);
border-radius: 3px;
/* border: 1px solid #E0E0E0; */
box-shadow: 0 0px 20px 0 rgba(0,0,0,0.1);
color: #37393D;
font-size: 12px;
line-height: 18px;
z-index: 99;
}
.help-tip p a {
color: #067df7;
text-decoration: none;
}
.help-tip p a:hover {
text-decoration: underline;
}
/* The pointer of the tooltip */
.help-tip p:before {
position: absolute;
content: '';
width: 0;
height: 0;
border: 10px solid transparent;
border-bottom-color:#FFFFFF;
top: -9px;
left: 50%;
transform: translate(-50%, -50%);
}
/* Prevents the tooltip from being hidden */
.help-tip p:after {
width: 10px;
height: 40px;
content:'';
position: absolute;
top: -40px;
left: 0;
}
/* CSS animation */
@-webkit-keyframes fadeIn {
0% { opacity:0; }
100% { opacity:100%; }
}
@keyframes fadeIn {
0% { opacity:0; }
100% { opacity:100%; }
}