-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
106 lines (97 loc) · 1.78 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
*{
padding: 0;
text-decoration: none;
list-style: none;
font-family: "Google Sans Regular", sans-serif;
box-sizing: border-box;
}
body {
margin: 0;
background: #fefefe;
}
header {
width: 100%;
height: 80px;
background: #11101b;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 100px;
}
.logo {
font-size: 28px;
font-weight: bold;
color: #fefefe;
}
.hamburger {
display: none;
}
.nav-bar ul {
display: flex;
}
.nav-bar ul li a {
display: block;
color: #fefefe;
font-size: 16px;
padding: 10px 25px;
border-radius: 50px;
transition: 0.2s;
margin: 0 5px;
}
.nav-bar ul li a:hover {
color: #11101b;
background: #fefefe;
}
.nav-bar ul li a.active {
color: #11101b;
background: #fefefe;
}
@media only screen and (max-width: 1320px) {
header {
padding: 0 50px;
}
}
@media only screen and (max-width: 1100px) {
header {
padding: 0 30px;
}
}
@media only screen and (max-width: 900px) {
.hamburger {
display: block;
cursor: pointer;
}
.hamburger .line {
width: 30px;
height: 3px;
background: #fefefe;
margin: 6px;
}
.nav-bar {
height: 0;
position: absolute;
top: 80px;
left: 0;
right: 0;
width: 100vw;
background: #11101b;
transition: 0.5s;
overflow: hidden;
}
.nav-bar.active {
height: 450px;
}
.nav-bar ul {
display: block;
width: fit-content;
margin: 80px auto 0 auto;
text-align: center;
transition: 0.5s;
}
.nav-bar.active ul{
opacity: 1;
}
.nav-bar ul li a {
margin-bottom: 12px;
}
}