-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
109 lines (92 loc) · 1.6 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
* {
padding: 0;
margin: 0;
}
body {
font-family: "Roboto", sans-serif;
}
nav {
display: flex;
background-color: red;
justify-content: space-around;
align-items: center;
padding: 16px 0;
}
nav .logo {
color: white;
font-family: "Roboto Mono", monospace;
font-size: larger;
}
nav ul {
list-style: none;
display: flex;
width: 30%;
justify-content: space-between;
}
nav ul li a {
color: white;
text-decoration: none;
}
nav ul li a:hover {
font-weight: 600;
transition: all 0.2s;
}
.hamburger {
height: 20px;
display: none;
flex-direction: column;
justify-content: space-between;
}
.hamburger span {
display: block;
height: 3px;
width: 20px;
background-color: white;
border-radius: 3px;
}
.rotate1 {
transform: rotate(45deg) translate(1px,2px);
transition: all 1s;
}
.rotate2 {
transform: rotate(-45deg) translate(0px,-2px);
transition: all 1s;
}
.hide {
width: 0;
opacity: 0%;
transition: all 1s;
}
.hamburger :nth-child(3) {
transform-origin: 0 100%;
/* background-color: black; */
}
.hamburger :nth-child(1) {
transform-origin: 0 0;
}
/* Tablet */
@media screen and (max-width: 768px) {
nav ul {
width: 50%;
}
}
/* Mobile */
@media screen and (max-width: 576px) {
.hamburger {
display: flex;
}
nav {
justify-content: space-between;
padding: 16px 16px;
flex-wrap: wrap;
}
nav ul {
width: 100%;
display: none;
padding-top: 20px;
}
.show {
display: flex;
transition: ease 1s;
}
}