Set project logo maximum widths

Issue #26
This commit is contained in:
Oliver Davies 2016-06-24 08:28:00 +01:00
parent 0115c16fea
commit 38b166427d
2 changed files with 10 additions and 2 deletions

View file

@ -1,12 +1,18 @@
.project .project
&--company__has-logo &__company--has-logo
a:link, a:link,
a:hover a:hover
border-bottom: 0 border-bottom: 0
display: block display: block
img img
max-height: 50px max-width: 75%
+breakpoint($screen-sm)
max-width: 50%
+breakpoint($screen-md)
max-width: 33.3%
&__website &__website
@extend .btn @extend .btn

View file

@ -1,5 +1,7 @@
{% extends 'page' %} {% extends 'page' %}
{% block body_classes 'page--project' %}
{% block content_wrapper %} {% block content_wrapper %}
{% if page.image -%} {% if page.image -%}
<img src="/assets/images/projects/{{ page.image.name ?: page.image }}" alt="{{ page.image.alt }}"> <img src="/assets/images/projects/{{ page.image.name ?: page.image }}" alt="{{ page.image.alt }}">