-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
74 lines (66 loc) · 1.67 KB
/
style.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
@tailwind base;
@tailwind components;
@tailwind utilities;
*{
scroll-behavior: smooth;
}
.tooltip::before,
.tooltip::after
{
--scale:0;
position: absolute;
/* top: -.25rem; */
/* bottom: -1.5rem; */
left: -1px;
/* right: 70%; */
transform: translateY(-50%) translateX(-100%) scale(var(--scale));
transition: 300ms transform ;
transform-origin: bottom right;
font-family: 'Mulish', sans-serif;
z-index: 500;
}
.tooltip::before{
content: attr(data-tooltip);
color: #fff;
padding: 0.5rem;
border-radius: 0.3rem;
text-align: center;
justify-content: center;
width: 150px;
height: 53px;
max-width: 100%;
background-color:#02012400;
}
.tooltip:hover::before{
--scale:1;
}
.tooltip2::before,
.tooltip2::after
{
--scale:0;
position: absolute;
/* top: 1.25rem; */
/* bottom: -1.5rem; */
/* left: -1px; */
/* right: 1px; */
transform: translateY(-50%) translateX(-100%) scale(var(--scale));
transition: 300ms transform ;
transform-origin: bottom right;
font-family: 'Mulish', sans-serif;
z-index: 500;
}
.tooltip2:before{
content: attr(data-tooltip);
color: rgb(94, 0, 176);
padding: 0.5rem;
border-radius: 0.3rem;
text-align: center;
justify-content: center;
width: 150px;
height: fit-content;
max-width: 100%;
background-color:#02012400;
}
.tooltip2:hover::before{
--scale:1;
}