-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
61 lines (59 loc) · 1.04 KB
/
main.css
File metadata and controls
61 lines (59 loc) · 1.04 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
*{
margin: 0;
padding: 0;
font-family: sans-serif;
}
.container{
position: absolute;
top: 50%;
left: 50%;
display: flex;
transform: translate(-50%, -50%);
}
.tooltip{
position: relative;
}
h2{
font-weight: 900;
text-transform: uppercase;
letter-spacing: 3px;
margin: 30px;
cursor: pointer;
transition: 0.3s;
}
.content{
width: 400px;
background-color: rgb(29, 28, 29);
padding: 20px;
position: absolute;
top: -65%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 2px;
visibility: hidden;
opacity: 0;
transition: 0.5s;
color: #fff;
}
.content h3{
text-transform: uppercase;
font-weight: 900;
margin-bottom: 10px;
}
.content p{
line-height: 1.4;
}
.content::before{
content: "";
position: absolute;
width: 25px;
height: 25px;
background-color: rgb(29, 28, 29);
bottom: 0;
left: 50%;
transform:rotate(45deg) translateY(50%);
}
h2:hover + .content{
visibility: visible;
opacity: 1;
}