-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.css
57 lines (48 loc) · 930 Bytes
/
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
.menu {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 1;
border-bottom: 0.1rem solid var(--light-gray-color);
}
.menu-content {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 0;
padding-bottom: 0;
}
.menu h1 {
font-size: 2.3rem;
color: var(--primary-color);
}
.menu h1 a {
color: inherit;
}
.menu ul {
list-style: none;
display: flex;
}
.menu ul li a{
display: block;
padding: 2rem;
font-size: 1.8rem;
color: var(--primary-color);
position: relative;
}
.menu ul li a::after{
content: '';
position: absolute;
bottom: 1rem;
left: 50%;
width: 0;
height: 0.2rem;
background: var(--secondary-color);
transition: all 300ms ease-in-out;
}
.menu ul li a:hover::after {
width: 50%;
left: 25%;
}