-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.css
105 lines (87 loc) · 1.45 KB
/
navbar.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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
*{
box-sizing: border-box;
}
body{
margin: 0;
padding: 0;
}
.navbar{
display: flex;
position: relative;
justify-content: space-between;
align-items: center;
color: dimgrey;
font-family: 'Poppins', sans-serif;
}
.logo{
font-size: 1.5rem;
margin: 1rem;
letter-spacing: 5px;
text-transform: uppercase;
}
.navbar-links {
height: 100%;
}
.navbar-links ul{
margin: 0;
padding: 0;
display: flex;
}
.navbar-links li{
list-style: none;
}
.navbar-links li a{
text-decoration: none;
color: dimgrey;
font-weight: 250;
font-size: 1.2rem;
padding: 1rem;
display: block;
}
.navbar-links li:hover{
background: lightgrey;
transition: .5s;
}
.toggle-button{
position: absolute;
top: 0.75rem;
right: 1rem;
display: none;
flex-direction: column;
justify-content: space-between;
width: 31px;
height: 21px;
}
.toggle-button .bar{
height: 3px;
width: 100%;
background-color: dimgrey;
border-radius: 10px;
}
@media (max-width: 675px){
.toggle-button{
display: flex;
}
.navbar-links{
display: none;
width: 100%;
}
.navbar {
flex-direction: column;
align-items: flex-start;
}
.navbar-links ul{
width: 100%;
flex-direction: column;
}
.navbar-links li{
text-align: center;
}
.navbar-links li a{
padding: 0.5rem 1rem;
}
.navbar-links.active{
display: flex;
}
}