Merge branch 'master' into prod

This commit is contained in:
Christopher Neugebauer 2017-08-30 20:16:22 -04:00
commit 7fdeb0f812
2 changed files with 22 additions and 2 deletions

View file

@ -116,6 +116,7 @@
{% if level.sponsors %} {% if level.sponsors %}
{% for sponsor in level.sponsors %} {% for sponsor in level.sponsors %}
<div class="sponsor"> <div class="sponsor">
<div class="logo-alignment">
{% if sponsor.website_logo %} {% if sponsor.website_logo %}
<a href="{{ sponsor.external_url }}"> <a href="{{ sponsor.external_url }}">
<img src="{% thumbnail sponsor.website_logo '600x360' %}" alt="{{ sponsor.name }}"> <img src="{% thumbnail sponsor.website_logo '600x360' %}" alt="{{ sponsor.name }}">
@ -123,6 +124,7 @@
{% else %} {% else %}
<a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a> <a href="{{ sponsor.external_url }}">{{ sponsor.name }}</a>
{% endif %} {% endif %}
</div>
</div> </div>
{% endfor %} {% endfor %}
{% endif %} {% endif %}

View file

@ -127,10 +127,30 @@ $homepage-block-min-height: 480px;
z-index: 3; z-index: 3;
.sponsor { .sponsor {
$sponsor-height: 150px;
@include make-xs-column(6); @include make-xs-column(6);
@include make-sm-column(4); @include make-sm-column(4);
@include make-md-column(3); @include make-md-column(3);
max-width: 600px; max-width: 600px;
height: $sponsor-height;
.logo-alignment {
max-width: 300px;
width: 100%;
height: 100%;
// Center the icon horizontally and vertically
text-align: center;
line-height: ($sponsor-height - 5px);
vertical-align: middle;
a img {
max-width: 100%;
max-height: 100%;
}
}
} }
} }
@ -281,8 +301,6 @@ $homepage-block-min-height: 480px;
} }
.sponsor-list a img { .sponsor-list a img {
width: 100%;
max-width: 300px;
} }
.sponsor-list { .sponsor-list {