responsive fixes

This commit is contained in:
Benjamin Jones 2020-08-17 09:48:14 +02:00
parent 82d400ffcd
commit e3992f00a6
6 changed files with 37 additions and 11 deletions

View File

@ -3,14 +3,16 @@
<li class="textbox margin-16-bottom">
<a href="/rf2020/events/{{ event.ref }}.html">{{ event.title_ }}</a>
<span></span>
{% for eventParticipantId in event.participants %}
{% for participant in site.data.rf2020.participants %}
{% if participant.id == eventParticipantId %}
<a href="/rf2020/participants/{{ participant.ref }}.html">{{ participant.fullname }}</a>
{% endif %}
<span class="hide-mobile">
<span></span>
{% for eventParticipantId in event.participants %}
{% for participant in site.data.rf2020.participants %}
{% if participant.id == eventParticipantId %}
<a href="/rf2020/participants/{{ participant.ref }}.html">{{ participant.fullname }}</a>
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
</span>
{% if event.format %}
<span>[{{ event.format }}]</span>

View File

@ -31,7 +31,7 @@ lang: en
{{ page.description | markdownify }}
</p>
</div>
<div class="flex flex-row flex-justify-space-between">
<div class="flex flex-row flex-justify-space-between flex-wrap-m details">
<div class="post-content inline-block">
<h3>
In this {{ page.format }}:
@ -39,9 +39,7 @@ lang: en
{% for id in page.participants %}
{% for participant in site.data.rf2020.participants %}
{% if participant.id == id %}
<a class="block with-url-arrow" href="/rf2020/participants/{{ participant.ref }}.html">{{ participant.fullname }}</a>
<a class="block with-url-arrow" href="/rf2020/participants/{{ participant.ref }}.html">{{ participant.fullname }}</a>
{% endif %}
{% endfor %}
{% endfor %}

View File

@ -21,5 +21,11 @@
h3 {
font-weight: bold;
}
.details {
div::last-of-type {
margin: 0;
}
}
}
}

View File

@ -6,6 +6,10 @@
li {
display: inline-block;
margin-right: $size-64;
@include touch {
line-height: 1.5;
}
}
h2 {

View File

@ -29,4 +29,14 @@
justify-content: center;
align-items: center;
}
&.flex-wrap {
flex-wrap: wrap;
}
&.flex-wrap-m {
@include touch {
flex-wrap: wrap;
}
}
}

View File

@ -56,3 +56,9 @@
@content;
}
}
.hide-mobile {
@include touch {
display: none;
}
}