Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the calendar more mobile-friendly. #3774

Merged
merged 2 commits into from
Jul 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions source/The-ROS2-Project/Governance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,37 @@ It can be accessed via `iCal <https://calendar.google.com/calendar/ical/agf3kaji

.. raw:: html

<iframe src="https://calendar.google.com/calendar/embed?src=agf3kajirket8khktupm9go748%40group.calendar.google.com" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>


<!--
The below code comes from https://www.mpking.com/2021/04/making-google-calendar-embeddable.html.
The basic idea is that if we are on a desktop device (defined as anything that has more than 767 pixels),
then we show the monthly version of the calendar. If we are on a device with 767 or less, show the agenda
clalancette marked this conversation as resolved.
Show resolved Hide resolved
version, which is much narrower.
-->
<style>
.responsiveCal {
position: relative; padding-bottom: 75%; height: 0; overflow: hidden;
}

.responsiveCal iframe {
position: absolute; top:0; left: 0; width: 100%; height: 100%;
}

@media all and (min-width: 768px) {
.deskContent {display:block;}
.phoneContent {display:none;}
}

@media all and (max-width: 767px) {
.deskContent {display:none;}
.phoneContent {display:block;}
}
</style>
<div class="responsiveCal">
<div class="deskContent">
<iframe src="https://calendar.google.com/calendar/embed?src=agf3kajirket8khktupm9go748%40group.calendar.google.com" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
</div>
<div class="phoneContent"><iframe src="https://calendar.google.com/calendar/embed?mode=AGENDA&amp;height=400&amp;wkst=1&amp;src=agf3kajirket8khktupm9go748%40group.calendar.google.com" style="border: 0" width="280" height="500" frameborder="0" scrolling="no"></iframe>
</div>
</div>

If you have an individual event or series of events that you'd like to post please contact [email protected]