From b5394b1634648e149e4b48bf8ea9a2e02190badc Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 1 Mar 2017 09:32:15 +0000 Subject: [PATCH] Revert "Use background images for experience items." This reverts commit 034b7375e8b50c0cd1a86ac6efeec44f79730aa9. --- assets/sass/pages/_experience.sass | 14 ++++---------- source/_partials/experience-item.twig | 10 +++++++--- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/assets/sass/pages/_experience.sass b/assets/sass/pages/_experience.sass index 30ff5863..f889190f 100644 --- a/assets/sass/pages/_experience.sass +++ b/assets/sass/pages/_experience.sass @@ -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 diff --git a/source/_partials/experience-item.twig b/source/_partials/experience-item.twig index d4cd3b77..85b7fe12 100644 --- a/source/_partials/experience-item.twig +++ b/source/_partials/experience-item.twig @@ -4,9 +4,7 @@ experience.featured ? 'is-featured', ] %} -{% set logo_path = company.logo ? site.images_url ~ '/assets/images/experience/' ~ company.logo : null %} - -
+

{{ company.name }}

@@ -29,4 +27,10 @@ {{ experience.description|raw }}
{# /.inner #} + + {% if company.logo %} + + {% endif %}