-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
83 lines (73 loc) · 1.78 KB
/
styles.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
body {
margin: 0;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
background-color: #87CEEB;
-webkit-overflow-scrolling: touch;
touch-action: pan-x;
}
.parallax-layer {
position: fixed;
width: 100vw;
height: 100vh;
background-size: auto 100vh;
background-repeat: repeat-x;
top: 0;
left: 0;
z-index: -1;
}
.layer-1 { background-image: url('assets/city_parallax/1.png'); }
.layer-2 { background-image: url('assets/city_parallax/2.png'); }
.layer-3 { background-image: url('assets/city_parallax/3.png'); }
.layer-4 { background-image: url('assets/city_parallax/4.png'); }
.layer-5 { background-image: url('assets/city_parallax/5.png'); }
.layer-6 { background-image: url('assets/city_parallax/6.png'); }
.content {
display: flex;
align-items: center;
justify-content: start;
padding: 20px;
font-size: 18px;
width: 300vw;
min-height: 100vh;
overflow-x: auto;
white-space: nowrap;
}
.section {
width: 500px;
height: 300px;
background: rgba(255, 255, 255, 0.8);
margin: 20px;
padding: 20px;
border-radius: 10px;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
.parallax-layer {
display: none;
}
body {
background-image: url('assets/city_parallax/10.png');
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.content {
width: 200vw;
}
.section {
width: 80vw;
height: 200px;
margin: 10px;
}
}
@media (max-width: 480px) {
.content {
width: 150vw;
}
.section {
height: 180px;
font-size: 12px;
}
}