-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
338 lines (286 loc) · 6.26 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
:root {
--white: #ff00c3;
--bright: #ffdef8;
--dark: #b708ca;
--very-light-pink: #fccefc; /* Extremely subtle pink */
}
body {
background-color: var(--very-light-pink);
}
/* #profile1, #profile2 {
width: 50%;
} */
/* Original styling for desktop */
/* Original styling for desktop */
#profile1, #profile2 {
width: 50%; /* Width remains 50% of the parent container */
height: 400px; /* Set the same height for both images on desktop */
object-fit: cover; /* Ensures images are cropped to fit the dimensions */
}
/* Mobile and Tablet adjustments */
@media screen and (max-width: 768px) {
#profile1, #profile2 {
width: 80%; /* Adjust width for tablets */
height: 300px; /* Set a fixed height for both images */
margin: 0 auto; /* Center the images */
display: block; /* Block display for better alignment */
object-fit: cover; /* Ensures both images crop the same */
}
}
@media screen and (max-width: 480px) {
#profile1, #profile2 {
width: 100%; /* Full width for mobile devices */
height: 300px; /* Ensure both images have the same height */
margin: 0 auto; /* Center the images */
display: block; /* Block display for better alignment */
object-fit: cover; /* Crop images to fit the container */
}
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
font-family: "Roboto";
font-weight: 400;
font-size: 14px;
color: var(--dark);
}
body {
background-image: url("media/heart background.svg");
background-size: 30px 30px;
}
#panel {
position: relative;
height: auto;
}
#one-panel,
#two-panel {
display: inline-block;
width: 50%;
height: auto;
padding-top: 40px;
padding-bottom: 40px;
vertical-align: top;
}
#one-panel {
padding-right: 20px;
padding-left: calc(50vw - 600px);
}
#two-panel {
position: absolute;
top: 0;
bottom: 0;
padding-left: 20px;
text-align: right;
padding-right: calc(50vw - 600px);
}
#panel-container-left {
width: auto;
height: auto;
color: inherit;
padding-left: 40px;
}
#panel-container-right {
width: auto;
height: auto;
color: inherit;
padding-right: 40px;
}
#vertical-divider {
position: absolute;
top: 0;
bottom: 0;
left: calc(50vw - 0.5px);
width: 1px;
background-color: var(--bright);
}
#heart {
position: absolute;
width: 10vw; /* Responsive size based on viewport width */
height: 10vw; /* Maintain aspect ratio */
animation: heartbeat 1s infinite ease-in-out; /* Heartbeat animation */
left: calc(53% - 7.5vw); /* Centers the heart horizontally */
top: calc(50% - 7.5vw); /* Centers the heart vertically */
}
/* Keyframes for the heartbeat animation */
@keyframes heartbeat {
0%, 100% {
transform: scale(1); /* Normal size */
}
25% {
transform: scale(1.2); /* Slightly larger */
}
50% {
transform: scale(1.4); /* Peak size of the heartbeat */
}
75% {
transform: scale(1.2); /* Shrinking back */
}
}
.divider {
width: 100%;
height: 1px;
margin: 40px 0 40px 0;
background-color: var(--bright);
}
.invisible-divider {
width: 100%;
height: 40px;
}
#main {
position: relative;
width: 100%;
height: auto;
}
::-moz-selection {
color: var(--dark);
background: var(--bright);
}
::selection {
color: var(--dark);
background: var(--bright);
}
/* -------- TOP -------- */
#top {
position: relative;
width: 100%;
height: auto;
padding: 40px;
border-bottom: solid 1px var(--bright);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap; /* Ensures proper stacking on smaller screens */
}
#heartbeats {
position: absolute;
top: 0;
bottom: 0;
left: 0;
background-color: var(--bright);
z-index: 0;
width: 100%;
}
#heartbeats-left,
#page-title {
position: relative;
font-size: 48px;
font-weight: 700;
color: var(--bright);
text-shadow:
-1px -1px 0 var(--white),
1px -1px 0 var(--white),
-1px 1px 0 var(--white),
1px 1px 0 var(--white);
z-index: 1;
margin: 10px 0; /* Adds spacing between elements for stacking */
}
#heartbeats-left {
text-align: right; /* Adjust alignment */
order: 2; /* Display after #page-title */
}
#page-title {
text-align: left; /* Adjust alignment */
order: 1; /* Display before #heartbeats-left */
}
@media all and (max-width: 900px) {
#heartbeats-left,
#page-title {
font-size: 36px; /* Reduce font size for medium screens */
text-align: center; /* Center-align elements */
}
#top {
flex-direction: column; /* Stack elements vertically */
align-items: center; /* Center-align stacked elements */
}
}
@media all and (max-width: 480px) {
#heartbeats-left,
#page-title {
font-size: 24px; /* Further reduce font size for smaller screens */
}
#heartbeats-left,
#page-title {
text-align: center; /* Ensure proper centering on mobile */
}
}
/* -------- DAT -------- */
.location,
.name,
.time {
color: inherit;
display: block;
margin-bottom: 10px;
}
.location {
font-size: 24px;
font-weight: 700;
margin: 0;
}
.name {
font-size: 28px;
font-weight: 700;
}
.main-data {
color: inherit;
font-size: 24px;
}
.tag-holder {
display: inline-block;
padding: 10px 12px; /* Increase padding for larger size */
margin-right: 8px; /* Slightly more space between tags */
margin-bottom: 6px; /* Adjust bottom margin */
border-radius: 4px; /* Slightly rounder corners */
border: solid 1px;
border-color: inherit;
color: inherit;
font-size: 16px; /* Optional: Increase font size */
}
.tag-content {
color: inherit;
}
/* -------- BOT -------- */
#bottom {
width: 100%;
height: auto;
padding: 40px;
border-top: solid 1px var(--bright);
text-align: center; /* Center-align content for all screens */
}
#time-till-meet,
#time-separate {
font-weight: 700;
font-size: 24px;
color: var(--bright);
margin-bottom: 20px; /* Add spacing between lines */
}
#date-left,
#date-right {
display: block; /* Stack elements vertically */
text-align: center;
margin: 10px 0; /* Add spacing around elements */
}
@media all and (max-width: 900px) {
#heartbeats-left,
#page-title {
font-size: 24px;
text-align: center; /* Ensure centered alignment for medium screens */
}
#time-till-meet,
#time-separate {
font-size: 18px;
margin-bottom: 15px; /* Adjust spacing for medium screens */
}
}
@media all and (max-width: 480px) {
#heartbeats-left,
#page-title {
font-size: 18px;
text-align: center;
}
#time-till-meet,
#time-separate {
font-size: 16px;
margin-bottom: 10px; /* Adjust spacing for small screens */
}
}