-
Notifications
You must be signed in to change notification settings - Fork 0
/
tooltip.css
174 lines (142 loc) · 3.6 KB
/
tooltip.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
.crosshub-tooltip {
position: absolute;
top: 0;
left: 0;
z-index: 20000;
opacity: 0;
visibility: hidden;
padding: 1px;
text-align: left;
white-space: normal;
border-radius: 4px;
transition: opacity 0.1s linear, visibility 0.1s linear;
}
.crosshub-tooltip.is-visible {
visibility: visible;
}
.crosshub-tooltip {
background-color: #fefbf1;
border: 1px solid #d1d2d3;
}
.crosshub-tooltip .crosshub-tooltip--arrow-container {
position: absolute;
width: 100%;
height: 6px;
left: 0px;
z-index: -1;
}
.crosshub-tooltip .crosshub-tooltip--arrow {
position: absolute;
display: block;
height: 6px;
width: 12px;
background: #fefbf1;
}
.crosshub-tooltip .crosshub-tooltip--arrow:before,
.crosshub-tooltip .crosshub-tooltip--arrow:after {
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.crosshub-tooltip .crosshub-tooltip--arrow:before {
color: #d1d2d3;
border-width: 7px;
}
.crosshub-tooltip .crosshub-tooltip--arrow:after {
color: #fefbf1;
border-width: 6px;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow, .crosshub-tooltip.is-down .crosshub-tooltip--arrow {
left: 50%;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow:before, .crosshub-tooltip.is-down .crosshub-tooltip--arrow:before {
left: 50%;
margin-left: -7px;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow:after, .crosshub-tooltip.is-down .crosshub-tooltip--arrow:after {
left: 50%;
margin-left: -6px;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow-container {
bottom: -6px;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow {
top: -6px;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow:before {
top: 100%;
border-top-color: #d1d2d3;
}
.crosshub-tooltip.is-up .crosshub-tooltip--arrow:after {
top: 100%;
border-top-color: #fefbf1;
}
.crosshub-tooltip.is-down .crosshub-tooltip--arrow-container {
top: -6px;
}
.crosshub-tooltip.is-down .crosshub-tooltip--arrow {
bottom: -6px;
}
.crosshub-tooltip.is-down .crosshub-tooltip--arrow:before {
bottom: 100%;
border-bottom-color: #d1d2d3;
}
.crosshub-tooltip.is-down .crosshub-tooltip--arrow:after {
bottom: 100%;
border-bottom-color: #fefbf1;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow-container, .crosshub-tooltip.is-right .crosshub-tooltip--arrow-container {
top: 0;
bottom: 0;
width: 6px;
height: auto;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow, .crosshub-tooltip.is-right .crosshub-tooltip--arrow {
width: 6px;
height: 12px;
top: 50%;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow:before, .crosshub-tooltip.is-right .crosshub-tooltip--arrow:before {
top: 50%;
margin-top: -7px;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow:after, .crosshub-tooltip.is-right .crosshub-tooltip--arrow:after {
top: 50%;
margin-top: -6px;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow-container {
right: -6px;
left: auto;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow {
left: -6px;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow:before {
left: 100%;
border-left-color: #d1d2d3;
}
.crosshub-tooltip.is-left .crosshub-tooltip--arrow:after {
left: 100%;
border-left-color: #fefbf1;
}
.crosshub-tooltip.is-right .crosshub-tooltip--arrow-container {
left: -6px;
right: auto;
}
.crosshub-tooltip.is-right .crosshub-tooltip--arrow {
right: -6px;
}
.crosshub-tooltip.is-right .crosshub-tooltip--arrow:before {
right: 100%;
border-right-color: #d1d2d3;
}
.crosshub-tooltip.is-right .crosshub-tooltip--arrow:after {
right: 100%;
border-right-color: #fefbf1;
}
.crosshub-tooltip.is-visible {
opacity: 1;
}