-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtooltip.css
More file actions
118 lines (108 loc) · 2.36 KB
/
tooltip.css
File metadata and controls
118 lines (108 loc) · 2.36 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
.tooltip {
display: block;
background: #43b02a;
border-radius: 3px;
max-width: 380px;
width: 380px;
position: absolute;
padding: 12px 18px;
font-family: open-sans-regular, sans-serif;
font-size: 14px;
font-weight: 600;
color: white;
line-height: 22px;
box-sizing: border-box;
z-index: 3;
text-transform: none;
visibility: hidden;
outline: 0;
}
.tooltip-close {
display: block;
float: right;
margin: -9px -14px 0 5px;
text-decoration: none;
color: white;
font-size: 1.2em;
}
.tooltip .icon::before {
display: block;
content: "";
width: 1em;
height: 1em;
}
.tooltip .icon.icon_cross::before {
content: "✖";
}
.tooltip-arrow {
width: 0;
height: 0;
position: absolute;
/* Top by default */
left: 50%;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 6px solid #43b02a;
margin-top: -6px;
margin-left: -6px;
bottom: -5.45px;
}
.tooltip-bottom .tooltip-arrow {
top: 0.6px;
left: 50%;
border-top: none;
border-bottom: 6px solid #43b02a;
}
.tooltip-right .tooltip-arrow {
top: 50%;
left: 0;
border-bottom: 6px solid transparent;
border-top: 6px solid transparent;
border-left: none;
border-right: 7px solid #43b02a;
}
.tooltip-left .tooltip-arrow {
top: 50%;
left: auto;
border-bottom: 6px solid transparent;
border-top: 6px solid transparent;
border-left: none;
border-right: 7px solid #43b02a;
}
/********* Custom skins **********/
/* Dark opacity */
.tooltip.dark-opacity {
background-color: rgba(102,102,102, 0.6);
}
.tooltip.dark-opacity .tooltip-arrow {
border-top-color: rgba(102,102,102, 0.6);
}
.tooltip-bottom.dark-opacity .tooltip-arrow {
border-bottom-color: rgba(102,102,102, 0.6);
}
.tooltip-left.dark-opacity .tooltip-arrow {
border-left-color: rgba(102,102,102, 0.6);
border-top-color: transparent;
}
.tooltip-right.dark-opacity .tooltip-arrow {
border-right-color: rgba(102,102,102, 0.6);
border-top-color: transparent;
}
/* Error (red) skin */
.tooltip.tooltip-error {
background-color: #E4002B;
}
.tooltip.tooltip-error .tooltip-arrow {
border-top-color: #E4002B;
}
.tooltip.tooltip-error.tooltip-bottom .tooltip-arrow {
border-bottom-color: #E4002B;
}
.tooltip.tooltip-error.tooltip-left .tooltip-arrow {
border-left-color: #E4002B;
border-top-color: transparent;
}
.tooltip.tooltip-error.tooltip-right .tooltip-arrow {
border-right-color: #E4002B;
border-top-color: transparent;
}