Use floats for experience logos

This commit is contained in:
Oliver Davies 2017-04-25 07:43:08 +01:00
parent 848c65add3
commit 2d5594b9b2
2 changed files with 9 additions and 9 deletions

View file

@ -2,9 +2,6 @@
margin-bottom: $padding-large-vertical * 3
+clearfix
.experience-item-inner
flex: 1 1 100%
.experience-item-website
display: inline-block
margin-bottom: 2px
@ -14,9 +11,13 @@
margin-bottom: .625rem
.experience-item-logo
flex: 1 3 250px
margin-left: 1.5em
margin-top: 25px
float: right
margin: 25px 0 1em 1.5em
max-width: 25%
+from(500px)
max-width: 20%
+desktop
max-width: 15%
img
height: auto

View file

@ -1,10 +1,11 @@
{% set classes = [
'experience-item',
'is-flex',
company.logo ? 'has-logo',
] %}
<div class="{{ classes|join(' ')|trim }}">
{{ include('experience/logo') }}
<div class="experience-item-inner">
<h2>{{ company.name }}</h2>
@ -12,6 +13,4 @@
{{ include('experience/role') }}
{{ include('experience/description') }}
</div>{# /.inner #}
{{ include('experience/logo') }}
</div>