-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmod_5_solution.html
114 lines (107 loc) · 2.29 KB
/
mod_5_solution.html
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>mod_5_sol</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
*{
padding: 0;
margin: 0;
text-decoration: none;
list-style: none;
box-sizing: border-box;
}
body{
font-family: montserrat;
}
nav{
background: black;
height: 80px;
width: 100%;
}
label.logo{
color: white;
font-size: 35px;
line-height: 80px;
padding: 0 100px;
font-weight: bold;
}
label.logo span{
color: #b50d05;
}
nav a{
line-height: 80px;
margin: 0 5px;
float: right;
margin-right: 20px;
color: white;
font-size: 17px;
padding: 7px 13px;
border-radius: 3px;
text-transform: uppercase;
}
a.active,a:hover{
background: grey;
transition: .5s;
}
.checkbtn{
font-size: 30px;
color: white;
float: right;
line-height: 80px;
margin-right: 40px;
cursor: pointer;
display: none;
}
#check{
display: none;
}
@media (max-width: 952px){
label.logo{
font-size: 30px;
padding-left: 50px;
}
nav a{
font-size: 16px;
}
}
@media (max-width: 858px){
.checkbtn{
display: block;
}
nav a{
position: fixed;
width: 100%;
height: 100vh;
background: grey;
top: 80px;
left: -100%;
text-align: center;
transition: all .5s;
display: block;
margin: 50px 0;
line-height: 30px;
font-size: 20px;
}
#check:checked ~ a{
left: 0;
}
}
</style>
</head>
<body>
<nav>
<input type="checkbox" id="check">
<label for="check" class="checkbtn">
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<ion-icon name="menu"></ion-icon>
</label>
<label class="logo">DAVID CHU'S CHINA BISTRO</label>
<a href="menu.html">Menu</a>
<a href="specials.html">Specials</a>
<a href="#">Map</a>
</nav>
</body>
</html>