-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
117 lines (112 loc) · 2.19 KB
/
index.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
112
113
114
115
116
117
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Fira sans', sans-serif;
}
.container{
max-width: 1280px;
height: 8vh;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
nav{
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
background-color: #212121;
padding: 16px 32px;
border-bottom: 3px solid #8c38ff;
}
h1{
color: #fff;
font-size: 28px;
font-weight: 500;
letter-spacing: 2px;
border: 3px solid #fff;
padding: 5px 9px;
}
h1:hover{
color: crimson;
}
.hamburger{
display: none;
position: relative;
z-index: 1;
user-select: none;
appearance: none;
border: none;
outline: none;
background: none;
cursor: pointer;
}
.hamburger span{
display: block;
width: 33px;
height: 4px;
margin-bottom: 5px;
position: relative;
background-color: whitesmoke;
border-radius: 6px;
z-index: 1;
transform-origin: 0 0;
transition: 0.4s;
}
.hamburger:hover span:nth-child(2) {
transform: translateX(10px);
background-color: #6f18e8;
}
.hamburger.is-active span:nth-child(1){
transform: translate(0px, -2px) rotate(45deg);
}
.hamburger.is-active span:nth-child(3){
transform: translate(-3px, 3px) rotate(-45deg);
}
.hamburger.is-active span:nth-child(2){
opacity: 0;
transform: translateX(15px);
}
.hamburger.is-active:hover span{
background-color: #6f18e8;
}
.menu{
display: flex;
flex: 1 1 0%;
justify-content: flex-end;
margin: 0 -16px;
}
.menu a{
color: #fff;
margin: 0 16px;
font-weight: 400;
text-decoration: none;
transition: 0.5s;
padding: 8px 16px;
border-radius: 99px;
}
.menu a.active{
background-color: #6f18e8;
}
.menu a:hover{
background-color: #6f18e8;
}
@media (max-width: 768px){
.hamburger{
display:block;
}
.menu{
display: none;
}
}
@media (max-width: 285px){
nav h1{
position: absolute;
border: none;
font-size: 15px;
margin-left: 40px;
}
}