-
Notifications
You must be signed in to change notification settings - Fork 0
/
style_forecast.css
189 lines (178 loc) · 3.86 KB
/
style_forecast.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Quantico', sans-serif;
}
body {
background-image: url(univ3.jpg);
background-position: center;
background-attachment: fixed;
background-repeat: no-repeat;
margin: 0;
background-size: cover;
font-family: 'Quantico', sans-serif;
background-color: rgb(23, 23, 59);
}
section {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
transform-style: preserve-3d;
}
.earthHome {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 380px;
height: 380px;
background: url(earth-wallp.jpg);
background-size: cover;
background-repeat: repeat-x;
border-radius: 50%;
box-shadow: inset 0 0 30px rgba(0, 0, 0, 1), 0 0 60px #4a2d64;
animation: animateEarth 60s linear infinite;
}
@keyframes animateEarth {
0% {
background-position: 0 0;
}
100% {
background-position: -728px 0;
}
}
.circle {
transform-style: preserve-3d;
animation: animatePic 40s linear infinite;
}
img {
width: 150px;
}
.circle span {
position: absolute;
top: 0;
left: 0;
background: rgba(255, 255, 255, 0);
transform-origin: center;
transform-style: preserve-3d;
padding: 2px 5px;
transform: rotateY(calc(var(--i) * calc(360deg / 13))) translateZ(270px);
}
@keyframes animatePic {
0% {
transform: perspective(1000px) rotateY(360deg) rotateX(15deg) translateY(-40px);
}
100% {
transform: perspective(1000px) rotateY(0deg) rotateX(15deg) translateY(-40px);
}
}
.days {
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
margin-top: 20px;
}
h2, h5 {
color: #fff;
align-self: center;
font-family: 'Quantico', sans-serif;
font-size: 28px;
}
@media all and (max-width: 800px) {
.earthHome {
width: 370px;
height: 370px;
height: intrinsic;
}
img {
width: 140px;
height: intrinsic;
}
.circle span {
transform: rotateY(calc(var(--i) * calc(360deg / 13))) translateZ(260px);
}
}
/* Surface Duo (540) */
@media all and (max-width: 550px) {
.earthHome {
width: 300px;
height: 300px;
height: intrinsic;
}
img {
width: 100px;
height: intrinsic;
}
.circle span {
transform: rotateY(calc(var(--i) * calc(360deg / 13))) translateZ(210px);
}
}
/* iPhone 6/7/8 Plus (414),
Pixel 2 XL (411 ???), Pixel 2 (411)*/
@media all and (max-width: 420px) {
.earthHome {
width: 180px;
height: 180px;
height: intrinsic;
}
img {
width: 80px;
height: intrinsic;
}
.circle span {
transform: rotateY(calc(var(--i) * calc(360deg / 13))) translateZ(140px);
}
}
/* iPhone X (375), iPhone 6/7/8 (375 ???) */
@media all and (max-width: 380px) {
.earthHome {
width: 160px;
height: 160px;
height: intrinsic;
}
img {
width: 70px;
height: intrinsic;
}
.circle span {
transform: rotateY(calc(var(--i) * calc(360deg / 13))) translateZ(130px);
}
}
/* Galaxy S5 (360),
Moto G4 (360)*/
@media all and (max-width: 370px) {
h2, h5 {
font-size: 20px;
}
}
/* iPhone 5/SE */
@media all and (max-width: 320px) {
h2, h5 {
font-size: 20px;
}
.earthHome, img {
height: intrinsic;
}
}
/* Galaxy Fold (280) */
/* @media all and (max-width: 290px) {
h2, h5 {
font-size: 18px;
}
}
.earthHome {
top:45%;
width: 140px;
height: 140px;
height: intrinsic;
}
img {
width: 55px;
height: intrinsic;
}
.circle span {
transform: rotateY(calc(var(--i) * calc(360deg / 13))) translateZ(105px);
} */