-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
111 lines (96 loc) · 1.83 KB
/
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
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
103
104
105
106
107
108
109
110
111
* {
margin: 0;
padding: 0;
}
a {
color: #fff;
text-decoration: none;
transition: 0.3s;
}
a:hover {
opacity: 0.7;
}
.logo {
font-size: 24px;
text-transform: uppercase;
letter-spacing: 4px;
}
nav {
display: flex;
justify-content: space-around;
align-items: center;
font-family: system-ui, -apple-system, Helvetica, Arial, sans-serif;
background: #23232e;
height: 8vh;
}
main {
background: url("./images/bg.jpg.jpg") no-repeat center center;
background-size: cover;
height: 92vh;
}
.nav-list {
list-style: none;
display: flex;
}
.nav-list li {
letter-spacing: 3px;
margin-left: 32px;
}
.mobile-menu {
display: none;
cursor: pointer;
}
.mobile-menu div {
width: 32px;
height: 2px;
background: #fff;
margin: 8px;
transition: 0.3s;
}
@media (max-width: 999px) {
body {
overflow-x: hidden;
}
.nav-list {
position: absolute;
top: 8vh;
right: 0;
width: 50vw;
height: 92vh;
background: #23232e;
flex-direction: column;
align-items: center;
justify-content: space-around;
transform: translateX(100%);
transition: transform 0.3s ease-in;
}
.nav-list li {
margin-left: 0;
opacity: 0;
}
.mobile-menu {
display: block;
}
}
.nav-list.active {
transform: translateX(0);
}
@keyframes navLinkFade {
from {
opacity: 0;
transform: translateX(50px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.mobile-menu.active .line1 {
transform: rotate(-45deg) translate(-8px, 8px);
}
.mobile-menu.active .line2 {
opacity: 0;
}
.mobile-menu.active .line3 {
transform: rotate(45deg) translate(-5px, -7px);
}