Fix layout on talks archive

This commit is contained in:
Oliver Davies 2017-06-18 19:54:05 +01:00
parent a5a82c04ff
commit bb7a95f928
2 changed files with 20 additions and 10 deletions

View file

@ -9,3 +9,7 @@
.flex .flex
flex: 1 flex: 1
@each $value in 'block' 'inline' 'inline-block'
.display-#{$value}
display: #{$value}

View file

@ -12,7 +12,9 @@
{% for event in events %} {% for event in events %}
<tr> <tr>
<td class="column-date"> <td class="column-date">
{{ event.date|date('j F Y') }} <div class="event-date display-block">
{{ event.date|date('j F Y') }}
</div>
{% if event.time %} {% if event.time %}
<small class="talk-type"> <small class="talk-type">
@ -23,13 +25,15 @@
{% if not hide_talk %} {% if not hide_talk %}
<td> <td>
{% if not event.talk.hide_page %} <div class="display-block">
<a href="{{ event.talk.url }}"> {% if not event.talk.hide_page %}
<a href="{{ event.talk.url }}">
{{ event.talk.title }}
</a>
{% else %}
{{ event.talk.title }} {{ event.talk.title }}
</a> {% endif %}
{% else %} </div>
{{ event.talk.title }}
{% endif %}
{% if event.talk.type %} {% if event.talk.type %}
<small class="talk-type"> <small class="talk-type">
@ -40,9 +44,11 @@
{% endif %} {% endif %}
<td class="column-event"> <td class="column-event">
{% if event.url %}<a href="{{ event.url }}">{% endif %} <div class="display-block">
{{ event.title }} {% if event.url %}<a href="{{ event.url }}">{% endif %}
{% if event.url %}</a>{% endif %} {{ event.title }}
{% if event.url %}</a>{% endif %}
</div>
{% if event.location %} {% if event.location %}
<small class="event-location"> <small class="event-location">