Revert "Use background images for experience items."

This reverts commit 034b7375e8.
This commit is contained in:
Oliver Davies 2017-03-01 09:32:15 +00:00
parent a2d55a3f28
commit b5394b1634
2 changed files with 11 additions and 13 deletions

View file

@ -27,14 +27,8 @@
max-width: 15%
.experience.has-logo
background:
position: 100% (20px + 3px)
repeat: no-repeat
size: 90px
+tablet
background-size: 120px
display: flex
justify-content: flex-start
.experience.has-logo .inner
padding-right: calc(90px + 1em)
+tablet
padding-right: calc(120px + 1em)
.inner
flex: 1

View file

@ -4,9 +4,7 @@
experience.featured ? 'is-featured',
] %}
{% set logo_path = company.logo ? site.images_url ~ '/assets/images/experience/' ~ company.logo : null %}
<div class="{{ classes|sort|join(' ')|trim }}"{% if logo_path %} style="background-image: url('{{ logo_path }}')"{% endif %}>
<div class="{{ classes|sort|join(' ') }}">
<div class="inner">
<h2>{{ company.name }}</h2>
@ -29,4 +27,10 @@
{{ experience.description|raw }}
</div>
</div>{# /.inner #}
{% if company.logo %}
<div class="experience__logo">
<img src="{{ site.images_url }}/assets/images/experience/{{ company.logo }}" alt="{{ company.name }} logo">
</div>
{% endif %}
</div>