-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResponsiveNavBar.css
92 lines (80 loc) · 1.26 KB
/
ResponsiveNavBar.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
*
{
margin: 0px;
padding: 0px;
box-sizing: border-box; /*Manages the extra wasted width due to margin and padding*/
}
.navbar
{
background-color: transparent;
display: flex;
}
.navbar a
{
text-decoration: none;
padding: 14px 18px;
color: white;
font-weight: bold;
text-transform: uppercase;
border-bottom: 1px solid black;
text-align: center;
transition-delay: 0.6s ease;
}
.navbar a:hover
{
background-color: white;
color: black;
}
#chkbx
{
display: none;
}
.toggle{
background-color: #6D6A6A;
display: flex;
justify-content: flex-end;
border-bottom: 2px solid white;
display: none; /*Not showing this <div> now
will be shown only when screen is small*/
}
.toggle label
{
background-color: #D3D3D3;
height: 35px;
width: 40px;
border-radius: 5px;
color: black;
display: flex;
margin: 5px;
margin-right: 10px;
cursor: pointer;
justify-content: center;
align-items: center;
flex-direction: column;
}
.toggle label span
{
background-color: black;
height :3px;
width:80%;
margin: 3px 0px;
}
@media screen and (max-width:700px) {
.col-3
{
display:block;
}
.navbar
{
flex-direction: column;
display: none;
}
#chkbx:checked +.navbar
{
display: flex;
}
.toggle
{
display: flex;
}
}