-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
55 lines (52 loc) · 896 Bytes
/
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
*{
margin: 0;
padding: 0;
}
.main-menu{
padding: 80px 20px;
font-family: serif;
}
.menu{
background: #8162bb;
}
.main-menu ul{
list-style: none;
margin: 0;
padding: 0;
text-align: center;
}
.main-menu li{
display: inline-block;
margin: 0 15px;
}
.main-menu a{
font-size: 22px;
text-transform: uppercase;
text-decoration: none;
color: #fff;
display: block;
position: relative;
padding: 4px 0;
}
.main-menu a::before{
content: "";
width: 100%;
height: 4px;
position: absolute;
left: 0;
bottom: 0;
background: #fff;
transition: 0.5s transform ease;
transform: scale3d(0,1,1);
transform-origin: 0 50%;
}
.main-menu a:hover::before{
transform: scale3d(1,1,1);
}
.menu a::before{
background: #f9f4f4;
transform-origin: 100% 50%;
}
.menu a:hover::before{
transform-origin: 0 50%;
}