Use background classes

This commit is contained in:
Oliver Davies 2019-05-03 16:40:32 +01:00
parent df4ef324ef
commit a594e5c8ea

View file

@ -14,13 +14,13 @@
{% if page.links %}
<div class="tw-flex">
{% if page.links.drupalorg %}
<div class="tw-pl-6 tw-mr-4" style="background: url(/themes/dcb2017/images/drop-1.png) no-repeat left center transparent">
<div class="tw-pl-6 tw-mr-4 tw-bg-no-repeat tw-bg-left" style="background-image: url(/themes/dcb2017/images/drop-1.png)">
<a href="https://www.drupal.org/u/{{ page.links.drupalorg }}">{{ page.links.drupalorg }}</a>
</div>
{% endif %}
{% if page.links.twitter %}
<div class="tw-pl-6 tw-mr-4" style="background: url(/themes/dcb2017/images/twitter-1.png) no-repeat left center transparent">
<div class="tw-pl-6 tw-mr-4 tw-bg-no-repeat tw-bg-left" style="background-image: url(/themes/dcb2017/images/twitter-1.png)">
<a href="https://twitter.com/{{ page.links.twitter }}">{{ page.links.twitter }}</a>
</div>
{% endif %}