Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/webroot/rsrc/css/aphront/tooltip.css
12242 views
1
/**
2
* @provides aphront-tooltip-css
3
*/
4
5
.jx-tooltip-container {
6
position: absolute;
7
padding: 5px;
8
9
/* In Chrome, moving the cursor into the empty space next to the "caret" on
10
the caret side of the tooltip can cause the tooltip to flicker rapidly
11
because the cursor hits the container. To stop this, prevent cursor
12
events on the container. See T8440. */
13
pointer-events: none;
14
}
15
16
.jx-tooltip-appear {
17
animation: 0.5s tooltip-appear;
18
19
/* Without this, there's a nasty pop-in effect at the end of the animation
20
when Safari changes font smoothing. The text becomes visibly more bold
21
after the last frame of animation. */
22
-webkit-font-smoothing: subpixel-antialiased;
23
}
24
25
@keyframes tooltip-appear {
26
0% {
27
opacity: 0;
28
}
29
30
100% {
31
opacity: 1;
32
}
33
}
34
35
.jx-tooltip-hidden {
36
opacity: 0;
37
}
38
39
.jx-tooltip-inner {
40
position: relative;
41
background: #000;
42
border-radius: 3px;
43
}
44
45
.jx-tooltip {
46
color: #fff;
47
font-size: {$normalfontsize};
48
-webkit-font-smoothing: antialiased;
49
font-weight: bold;
50
padding: 6px 8px;
51
overflow: hidden;
52
white-space: pre-wrap;
53
}
54
55
.jx-tooltip:after {
56
border: solid transparent;
57
content: " ";
58
height: 0;
59
width: 0;
60
position: absolute;
61
pointer-events: none;
62
border-color: rgba({$alphablack}, 0);
63
border-width: 5px;
64
}
65
66
.jx-tooltip-align-E {
67
margin-left: 5px;
68
}
69
70
.jx-tooltip-align-E .jx-tooltip:after {
71
margin-top: -5px;
72
border-right-color: #000;
73
right: 100%;
74
top: 50%;
75
}
76
77
.jx-tooltip-align-E {
78
margin-right: 5px;
79
}
80
81
.jx-tooltip-align-W .jx-tooltip:after {
82
margin-top: -5px;
83
border-left-color: #000;
84
left: 100%;
85
top: 50%;
86
}
87
88
.jx-tooltip-align-N {
89
margin-bottom: 5px;
90
}
91
92
.jx-tooltip-align-N .jx-tooltip:after {
93
margin-left: -5px;
94
border-top-color: #000;
95
top: 100%;
96
left: 50%;
97
}
98
99
.jx-tooltip-align-N {
100
margin-top: 5px;
101
}
102
103
.jx-tooltip-align-S .jx-tooltip:after {
104
margin-left: -5px;
105
border-bottom-color: #000;
106
bottom: 100%;
107
left: 50%;
108
}
109
110