Figure out badge widths dynamically

This commit is contained in:
Oliver Davies 2017-07-29 08:38:56 +01:00
parent 35f4e071ac
commit fd8434c9e5
2 changed files with 23 additions and 11 deletions

View file

@ -2,4 +2,14 @@
margin: 0 auto 10px
.badges img
height: auto
max-width: 100%
.acquia-badges
border-collapse: collapse
display: table
.badge
background: none
display: table-cell
padding: 0

View file

@ -7,19 +7,21 @@
/>
</a>
<div class="is-flex align-items-center">
<div class="acquia-badges">
<div class="badge">
<img
src="{{ site.images_url }}/assets/images/badges/acquia-d8-developer.png"
alt="Acquia Certified Developer - Drupal 8 Exam Badge"
class="is-2"
/>
</div>
<div class="badge">
<img
src="{{ site.images_url }}/assets/images/badges/acquia-d8-back-end.png"
alt="Acquia Certified Back End Specialist - Drupal 8 Exam Badge"
class="is-2"
/>
</div>
</div>
<a href="http://conference.phpnw.org.uk/phpnw17" class="is-block">
<img src="{{ site.images_url }}/assets/images/badges/phpnw17.png" alt="">