Band-aid formatting on events listing page

Since we allow markdown, we need to somewhat constrain what it looks
like on the site, so we don't end up with events that have headlines
that are bigger than the actual page headlines.

We can probably do something cleaner for this, but this will do as a
start.
This commit is contained in:
Magnus Hagander
2018-06-14 16:31:40 +02:00
parent 01f2dc496b
commit 1279f7a295
2 changed files with 19 additions and 1 deletions

View File

@ -612,6 +612,23 @@ pre.code {
border-radius: .25rem;
}
/* News and events getting markdown from end users */
#pgContentWrap .newseventwrap h1 {
font-size: 1.2em;
}
#pgContentWrap .newseventwrap h2 {
display: block;
font-size: 1.1em;
}
#pgContentWrap .newseventwrap h3 {
font-size: 1.0em;
}
hr.eventseparator {
width: 80%;
margin-bottom: 1em;
}
/* #STYLEDSELECT */
/**

View File

@ -18,6 +18,7 @@ whatsoever.</em>
</p>
{% endif %}
{%for event in eventblock.events %}
<hr class="eventseparator">
<div>
{% if event.badged %}
<img src="/media/img/PostgreSQL_Badge1.svg" class="community" alt="PostgreSQL Community Event">
@ -27,7 +28,7 @@ whatsoever.</em>
<div>Date: <strong>{{event.displaydate|safe}}</strong></div>
<div>Location: <strong>{{event.locationstring}}</strong></div>
{%if event.language%}<div>Language: <strong>{{event.language}}</strong></div>{%endif%}
<div>
<div class="newseventwrap">
{{event.summary|markdown}}
</div>
{%endfor%}