-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponsive.css
More file actions
98 lines (84 loc) · 1.73 KB
/
responsive.css
File metadata and controls
98 lines (84 loc) · 1.73 KB
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
@media screen and (max-width: 768px) {
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
background-color: rgba(255, 255, 255, 0.95);
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-container {
padding: 10px;
}
.header-container h1 {
margin-bottom: 10px;
}
nav {
width: 100%;
}
nav ul {
flex-direction: column;
align-items: center;
}
.nav-toggle {
display: block;
position: absolute;
top: 15px;
right: 15px;
z-index: 1001;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
}
.city-nav {
display: none;
position: fixed;
top: 60px;
left: 0;
width: 100%;
max-height: 70vh;
overflow-y: auto;
background-color: rgba(255, 255, 255, 0.95);
padding: 20px;
box-sizing: border-box;
z-index: 1000;
}
.city-nav.show {
display: flex;
flex-direction: column;
align-items: center;
}
.city-nav li {
width: 100%;
text-align: center;
margin: 10px 0;
}
.city-nav li a {
display: block;
padding: 10px;
text-decoration: none;
color: #333;
border-bottom: 1px solid #eee;
}
main {
padding-top: 80px;
}
.attractions {
flex-direction: column;
}
.attraction {
flex-basis: 100%;
margin: 0.5rem 0;
}
}
@media screen and (max-width: 480px) {
header h1 {
font-size: 1.5rem;
}
nav ul li a {
font-size: 0.9rem;
padding: 0.3rem;
}
}