56 lines
1.6 KiB
HTML
56 lines
1.6 KiB
HTML
|
|
<style>
|
|
.ical-flex {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-items: stretch;
|
|
gap: 0.5em;
|
|
max-width: 700px;
|
|
width: 100%;
|
|
}
|
|
.ical-flex .summary-block {
|
|
flex: 1 1 0%;
|
|
}
|
|
.ical-flex .calendar-block {
|
|
flex: none;
|
|
margin-left: auto;
|
|
}
|
|
@media (max-width: 599px) {
|
|
.ical-flex {
|
|
flex-direction: column;
|
|
}
|
|
.ical-flex > div.summary-block {
|
|
margin-bottom: 0.5em;
|
|
margin-left: 0;
|
|
}
|
|
.ical-flex > div.calendar-block {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
</style>
|
|
<div class="ical-flex">
|
|
<div class="summary-block" style="background:#f7f7f7; border-radius:8px; box-shadow:0 2px 8px #bbb; padding:16px 18px; margin:0 0 8px 0; min-width:220px; max-width:400px; font-size:15px; color:#222;">
|
|
<div style="font-size:17px; font-weight:bold; margin-bottom:8px; color:#333;"><b>Summary:</b> {{ summary }}</div>
|
|
<div style="margin-bottom:4px;"><b>Start:</b> {{ local_fmt_start }}</div>
|
|
<div style="margin-bottom:4px;"><b>End:</b> {{ local_fmt_end }}</div>
|
|
{% if !organizer_cn.is_empty() %}
|
|
<div style="margin-bottom:4px;"><b>Organizer:</b> {{ organizer_cn }}</div>
|
|
{% elif !organizer.is_empty() %}
|
|
<div style="margin-bottom:4px;"><b>Organizer:</b> {{ organizer }}</div>
|
|
{% endif %}
|
|
</div>
|
|
{% if !calendar_html.is_empty() %}
|
|
{% if !calendar_html.is_empty() %}
|
|
<div class="calendar-block" style="margin-top: 8px;">{{ calendar_html | safe }}</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
{% if !description_paragraphs.is_empty() %}
|
|
<div style="max-width:700px; width:100%;">
|
|
{% for p in description_paragraphs %}
|
|
<p style="margin: 0 0 8px 0; color:#444;">{{ p }}</p>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|