Skip to content

Commit b186fc1

Browse files
Responsive (Mobile) Tweaks
Various responsive stylesheet edits to improve UI/UX on mobile devices
1 parent d42bb8f commit b186fc1

2 files changed

Lines changed: 398 additions & 1 deletion

File tree

css/P2P.css

Lines changed: 225 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,141 @@
252252
}
253253

254254
@media (max-width: 767px) {
255+
/* Fix main content margin on mobile */
256+
.main-content {
257+
margin-left: 0 !important;
258+
margin-top: 70px !important; /* Add top margin to account for fixed navbar */
259+
}
260+
261+
/* Mobile sections targeting all P2P sections */
262+
section,
263+
header#hero-area,
264+
#description,
265+
#key-info,
266+
#schedule,
267+
#sponsors {
268+
min-height: auto !important;
269+
padding: 2rem 0 !important;
270+
}
271+
272+
/* Fix navbar spacing for P2P page */
273+
header#hero-area {
274+
padding-top: 2rem !important; /* Reduce since main-content now has margin-top */
275+
padding-bottom: 2rem !important;
276+
}
277+
278+
/* Other P2P sections spacing */
279+
#description,
280+
#key-info,
281+
#schedule,
282+
#sponsors {
283+
padding: 3rem 1rem !important;
284+
}
285+
286+
.section > .container {
287+
padding: 0 1rem;
288+
}
289+
290+
/* Mobile navbar improvements */
291+
.universal-navbar {
292+
padding: 0.5rem 1rem;
293+
}
294+
295+
.universal-navbar .navbar-nav {
296+
gap: 1rem;
297+
text-align: center;
298+
}
299+
300+
.universal-navbar .nav-link {
301+
padding: 0.75rem 1rem;
302+
font-size: 1rem;
303+
}
304+
305+
/* Mobile splash widget improvements */
306+
.splash-widgets-3col {
307+
margin: 16px auto;
308+
padding: 0 1rem;
309+
gap: 16px;
310+
flex-direction: column;
311+
}
312+
313+
.splash-widget {
314+
padding: 24px 16px;
315+
margin-bottom: 1rem;
316+
}
317+
318+
/* Mobile typography */
319+
.section-title {
320+
font-size: 1.75rem;
321+
}
322+
323+
.section-subtitle {
324+
font-size: 0.9rem;
325+
}
326+
327+
/* Mobile social buttons */
328+
.social-btn {
329+
width: 40px;
330+
height: 40px;
331+
font-size: 1.4rem;
332+
}
333+
334+
.social-row span {
335+
font-size: 0.9rem;
336+
}
337+
338+
/* Timeline improvements */
255339
.timeline-item,
256340
.timeline-item.right,
257341
.timeline-item.left {
258342
justify-content: flex-start !important;
343+
flex-direction: column;
344+
align-items: flex-start;
345+
margin-bottom: 1.5rem;
259346
}
347+
260348
.timeline-content {
261349
margin-left: 0 !important;
262350
margin-right: 0 !important;
263351
min-width: 0;
264352
max-width: 100%;
265353
width: 100%;
354+
flex-direction: column;
355+
text-align: center;
356+
justify-content: center;
357+
padding: 1rem;
358+
margin-bottom: 1rem;
359+
}
360+
361+
.timeline-dot {
362+
margin: 0.5rem 0;
363+
order: 1;
364+
}
365+
366+
.timeline-time {
367+
margin: 0 0 0.5rem 0;
368+
order: 0;
369+
font-size: 1.1rem;
370+
}
371+
372+
.timeline-desc {
373+
margin: 0;
374+
order: 2;
375+
font-size: 0.9rem;
266376
}
377+
267378
.timeline-snaking::before {
268379
display: none; /* Hide the vertical bar */
269380
}
270-
381+
382+
/* Event social buttons mobile optimization */
383+
.event-social-btn {
384+
width: 50px !important;
385+
height: 50px !important;
386+
font-size: 1.5rem !important;
387+
}
388+
389+
/* Key info section improvements */
271390
#key-info .event-info-box {
272391
align-items: center !important;
273392
text-align: center !important;
@@ -276,11 +395,116 @@
276395
margin-left: auto !important;
277396
margin-right: auto !important;
278397
width: 100% !important;
398+
margin-bottom: 1rem !important;
279399
}
400+
280401
#key-info .event-info-icon {
281402
margin-right: 0 !important;
282403
margin-bottom: 0.5rem;
283404
}
405+
406+
/* Mobile card improvements */
407+
.card {
408+
margin: 1rem 0;
409+
}
410+
411+
.card-body {
412+
padding: 1.5rem 1rem !important;
413+
}
414+
415+
/* Mobile container improvements */
416+
.container {
417+
padding-left: 1rem;
418+
padding-right: 1rem;
419+
}
420+
421+
/* Mobile section headers */
422+
.section-header {
423+
margin-bottom: 1.5rem !important;
424+
padding: 0 1rem;
425+
}
426+
427+
.section-divider {
428+
width: 90%;
429+
margin: 2rem auto;
430+
}
431+
432+
/* Hero section improvements */
433+
.splash-widgets-leftcol {
434+
min-width: unset;
435+
width: 100%;
436+
max-width: 500px;
437+
}
438+
439+
.splash-widget-rightlong {
440+
width: 100%;
441+
min-width: unset;
442+
max-width: 500px;
443+
}
444+
445+
/* Social widget improvements */
446+
.social-widget-vertical {
447+
padding: 1rem;
448+
gap: 16px;
449+
}
450+
451+
.social-row {
452+
margin-bottom: 0.75rem;
453+
gap: 12px;
454+
}
455+
456+
/* Mobile footer improvements */
457+
footer {
458+
padding: 1rem 0;
459+
}
460+
461+
.footer-links {
462+
text-align: center;
463+
margin-bottom: 1rem;
464+
}
465+
466+
.footer-links li {
467+
display: block;
468+
margin: 0.5rem 0;
469+
}
470+
471+
.copyright {
472+
text-align: center;
473+
}
474+
}
475+
476+
/* Tablet breakpoint improvements */
477+
@media (max-width: 991.98px) {
478+
.splash-widgets-3col {
479+
flex-direction: column;
480+
align-items: center;
481+
gap: 24px;
482+
margin: 24px auto;
483+
}
484+
485+
.splash-widgets-leftcol {
486+
min-width: unset;
487+
width: 100%;
488+
max-width: 500px;
489+
}
490+
491+
.splash-widget-rightlong {
492+
width: 100%;
493+
min-width: unset;
494+
max-width: 500px;
495+
}
496+
497+
.splash-widget {
498+
padding: 32px 24px;
499+
}
500+
501+
.social-widget-vertical {
502+
gap: 16px;
503+
}
504+
505+
.social-row {
506+
gap: 12px;
507+
}
284508
}
285509

286510
/* =============================================

0 commit comments

Comments
 (0)