generated from ContentGraz/cos20-group1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.css
77 lines (64 loc) · 1.27 KB
/
menu.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
75
76
77
@charset "utf-8";
/* CSS Document */
.menu{
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 1px 2px 0 rgba(0, 0, 0, .24);
background-color: #738e30;
font-family: 'Cormorant Infant', serif;
padding-left: 100px;
}
.menu__list{
text-align: center;
padding-left: 0;
margin-top: 0;
margin-bottom: 0;
list-style: none;
}
.menu__link{
display: block;
will-change: color;
transition: color .25s ease-out;
font-weight: 700;
color: #414141;
text-decoration: none;
text-transform: uppercase;
padding-top: 10px;
padding-bottom: 10px;
}
@media (min-width: 601px){
.menu__list{
display: flex;
}
.menu__group{
flex-grow: 1;
}
.menu__link{
position: relative;
overflow: hidden;
}
.menu__link:before, .menu__link:after{
content: "";
width: 0;
height: 3px;
background-color: rgb(186, 184, 143);
will-change: width;
transition: width .05s ease-out;
position: absolute;
bottom: 0;
color: #414141;
}
.menu__link:before{
left: 50%;
transform: translateX(-50%);
}
.menu__link:after{
right: 50%;
transform: translateX(50%);
}
.menu__link:hover:before, .menu__link:hover:after{
width: 100%;
transition-duration: .15s;
}
}
.menu:hover .menu__link:not(:hover){
color: #414141;
}