diff --git a/assets/html/event.html b/assets/html/event.html index 67d024d9..98cc8bc1 100644 --- a/assets/html/event.html +++ b/assets/html/event.html @@ -550,6 +550,97 @@ background: #8e2e2e; color: #f0e6e6; } +/* For tablets and larger mobile devices */ +@media (max-width: 768px) { + /* Center-align the main calendar container */ + #event-calendar { + width: 100%; + padding: 1rem; + box-sizing: border-box; + } + + /* Adjust header */ + .calendar-header { + display: flex; + flex-direction: column; + align-items: center; + } + + .calendar-header h3 { + font-size: 1.5em; + text-align: center; + } + + /* Adjust buttons */ + .calendar-header button { + width: 90%; + margin: 0.5em 0; + padding: 0.6em; + } + + /* Table adjustments */ + table { + width: 100%; + font-size: 0.9em; + } + + th, td { + padding: 0.5em; + text-align: center; + } + + /* Event details section */ + #event-details { + font-size: 1em; + padding: 1rem; + margin-top: 1rem; + } + + /* Translate button */ + .translate-button { + position: fixed; + right: 1em; + bottom: 2em; + height: 40px; + width: 40px; + font-size: 0.8em; + } +} + +/* For small screens (extra-small devices) */ +@media (max-width: 480px) { + /* Adjust font sizes */ + body { + font-size: 0.8em; + } + + .calendar-header h3 { + font-size: 1.2em; + } + + .calendar-header button { + padding: 0.5em; + font-size: 0.9em; + width: 100%; + } + + table, th, td { + font-size: 0.8em; + padding: 0.4em; + } + + /* Event details */ + #event-details { + font-size: 0.9em; + } + + /* Translate button */ + .translate-button { + height: 35px; + width: 35px; + font-size: 0.75em; + } +} @@ -980,6 +1071,189 @@