forked from zombieFox/nightTab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtip.css
More file actions
executable file
·71 lines (63 loc) · 1.36 KB
/
Copy pathtip.css
File metadata and controls
executable file
·71 lines (63 loc) · 1.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
.tip {
position: absolute;
max-width: 20em;
margin: 1em 1em;
left: 0;
top: 0;
opacity: 1;
z-index: var(--z-index-tip);
transition: opacity var(--layout-transition-speed-fast) ease-in-out;
transform-origin: bottom center;
pointer-events: none;
}
@keyframes grow {
0% {
transform: translate(0, 0.2em) scale(0.95);
clip-path: circle(0 at 50% 100%);
}
100% {
transform: translate(0, 0) scale(1);
clip-path: circle(100% at 50% 100%);
}
}
@keyframes shirnk {
0% {
transform: translate(0, 0) scale(1);
clip-path: circle(100% at 50% 100%);
}
100% {
transform: translate(0, 0.2em) scale(0.95);
clip-path: circle(0 at 50% 100%);
}
}
.tip-intro {
animation: grow var(--layout-transition-speed-slow) 1;
}
.tip-outro {
animation: shirnk var(--layout-transition-speed-slow) 1;
}
.tip-message {
padding: 0.5em 1em;
background-color: rgb(var(--theme-gray-04));
border: 0;
border-radius: calc(var(--theme-radius) * 2);
color: rgb(var(--theme-gray-18));
font-size: 0.8em;
font-family: var(--font-regular);
text-align: center;
position: relative;
display: block;
z-index: 1;
}
.tip-arrow {
border: 0.5em solid transparent;
border-top-color: rgb(var(--theme-gray-04));
position: absolute;
width: 0;
height: 0;
top: 100%;
left: 50%;
display: block;
z-index: 2;
transform: translate(-50%, 0);
}