Skip to content

Commit dbffc48

Browse files
Added css to make calendar embed scale well on mobile.
1 parent 93a7be0 commit dbffc48

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

events.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,24 @@ <h3>{{ event.name }}</h3>
3333
<br />
3434
<br />
3535
{% endfor %}
36-
<div style="text-align: center;">
36+
37+
<style>
38+
.responsiveCal {
39+
position: relative;
40+
padding-bottom: 75%;
41+
height: 0;
42+
overflow: hidden;
43+
}
44+
.responsiveCal iframe {
45+
position: absolute;
46+
top: 0;
47+
left: 0;
48+
width: 100%;
49+
height: 100%;
50+
}
51+
</style>
52+
53+
<div style="text-align: center;" , class="responsiveCal">
3754
<iframe
3855
src="https://calendar.google.com/calendar/b/1/embed?height=600&amp;wkst=1&amp;bgcolor=%23e69138&amp;ctz=America%2FNew_York&amp;src=cml0c2VjY2x1YkBnbWFpbC5jb20&amp;src=ZW4udXNhI2hvbGlkYXlAZ3JvdXAudi5jYWxlbmRhci5nb29nbGUuY29t&amp;color=%2322AA99&amp;color=%231F753C&amp;title=RITSEC%20Spring%202020"
3956
style="border:solid 1px #777"

0 commit comments

Comments
 (0)