-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
122 lines (104 loc) · 1.92 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
110
111
112
113
114
115
116
117
118
119
120
121
122
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: #fff;
padding: 20px;
text-align: center;
position: relative;
}
h1 {
margin: 0;
color: #fff;
}
h2 {
color: #333;
}
.menu-toggle {
position: absolute;
top: 20px;
right: 20px;
width: 30px;
height: 30px;
background-color: transparent;
border: none;
cursor: pointer;
display: none;
}
.menu-toggle:before,
.menu-toggle:after {
content: "";
position: absolute;
width: 20px;
height: 2px;
background-color: #fff;
top: 50%;
left: 0;
right: 0;
margin-top: -1px;
margin-left: auto;
margin-right: auto;
}
.menu-toggle:before {
transform: translateY(-6px);
}
.menu-toggle:after {
transform: translateY(4px);
}
nav {
background-color: #fff;
padding: 10px;
text-align: center;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav ul li {
display: inline;
margin: 0 10px;
}
nav ul li a {
color: #333;
text-decoration: none;
}
nav ul li a:hover {
color: #777;
}
section {
padding: 20px;
margin: 20px;
border: 1px solid #ddd;
background-color: #fff;
color: #333;
}
footer {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
@media (max-width: 768px) {
.menu-toggle {
display: block;
}
nav ul {
display: none;
position: absolute;
top: 50px;
left: 0;
width: 100%;
background-color: #fff;
padding: 10px;
text-align: center;
}
nav ul li {
display: block;
margin: 10px 0;
}
}