Merge pull request #103 from landonp1203/dev

Fixed issue with social media icons being off centered by default
This commit is contained in:
Brandon Rosage 2019-04-01 13:41:36 -05:00 committed by GitHub
commit 6c846f385b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{% if site.layout == 'stacked' %} {% if site.layout == 'stacked' %}
{% assign metadata_styles = 'd-md-inline-block mr-3' %} {% assign metadata_styles = 'd-md-inline-block mx-3 mb-1 mb-md-0' %}
{% else %} {% else %}
{% assign metadata_styles = 'd-flex flex-items-center mb-3' %} {% assign metadata_styles = 'd-flex flex-items-center mb-3' %}
{% endif %} {% endif %}
@ -37,7 +37,7 @@
{% if site.social_media %} {% if site.social_media %}
<div class="d-flex flex-wrap flex-items-start {% if site.layout == 'stacked' %}flex-justify-center mt-1 mt-md-3{% endif %}"> <div class="d-flex flex-wrap flex-items-start {% if site.layout == 'stacked' %}flex-justify-center mt-1 mt-md-3{% endif %}">
{% for account in site.social_media %} {% for account in site.social_media %}
<div class="mr-3 mb-3"> <div class="{% unless forloop.last == true %}mr-3{% endunless %} mb-3">
{% assign service_shortname = account[0] %} {% assign service_shortname = account[0] %}
{% assign service = site.data.social_media[service_shortname] %} {% assign service = site.data.social_media[service_shortname] %}
<a href="{{ service.profile_url_prefix }}{{ account[1] }}" class="tooltipped tooltipped-se" aria-label="{{ service.name }}: {{ account[1] }}"> <a href="{{ service.profile_url_prefix }}{{ account[1] }}" class="tooltipped tooltipped-se" aria-label="{{ service.name }}: {{ account[1] }}">