-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.css
102 lines (99 loc) · 1.92 KB
/
navigation.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
.container {
width: 100%;
height: 100%;
background-size: 100% 100%;
position: relative;
z-index: 9999;
}
.nav-bar {
position: fixed;
background-color: rgba(0, 0, 0, 1);
top: 0;
left: -100%;
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
transition: 0.5s ease-out;
cursor: pointer;
z-index: 9999;
}
.toggle {
left: 0;
box-shadow: 1px 0 15px 2px rgba(0, 0, 0, 0.4);
}
.toggle-menu {
background-color: rgba(0, 0, 0, 0.2);
position: fixed;
top: 2rem;
left: 2rem;
width: 4rem;
height: 3rem;
display: flex;
flex-direction: column;
justify-content: space-around;
padding: 0.2rem 0.5rem;
border-radius: 0.5rem;
}
.line {
width: 100%;
height: 1px;
border-radius:5px;
background-color: #fff;
transition: 0.2s ease-out;
}
.toggle .line1 {
background-color: #000;
transform: scale(0.9) rotateZ(-45deg) translate(-6px, 4px);
}
.toggle .line2 {
display: none;
}
.toggle .line3 {
background-color: #000;
transform: scale(0.9) rotateZ(45deg) translate(-6px, -4px);
}
.toggle .toggle-menu {
background-color: white;
}
.nav-list {
list-style: none;
position: fixed;
z-index: inherit;
}
.nav-list-item {
text-align: center;
padding: 1rem 0;
}
.mh {
font-size: 5em;
}
.nav-link {
color: #fff;
font-size: 2.2rem;
text-decoration: none;
position: relative;
padding-bottom: 0.4rem;
font-size: 30px;
}
.nav-link::before {
position: absolute;
content: '';
left: 0;
bottom: 0;
width: 100%;
height: 1px;
background-color: #fff;
transform: scaleX(0);
transition: 0.4s ease-in-out;
transform-origin: left;
}
.nav-link:hover::before {
transform: scaleX(1);
}
.logo{
width: 90px;
padding: 1rem 0;
display: flex;
}