Skip to content

Commit

Permalink
[Feature #159236216] Fix margins between social buttons (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
solnsubuga authored and lym committed Aug 6, 2018
1 parent 68a4d9c commit 818d5e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
6 changes: 6 additions & 0 deletions wger/core/static/css/workout-manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@
background-color: #FFF;
}

.social-logins {
display: flex;
justify-content: center;
}

.social-btn {
margin-top: 20px;
margin-right: 15px;
}

/*
Expand Down
19 changes: 9 additions & 10 deletions wger/core/templates/user/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
{% trans 'Login' as submit_text %}
{% render_form_fields form submit_text %}
</form>
<div class="row col-md-offset-3 col-md-9">
<div class="col-md-4">
<a class="btn btn-primary social-btn" href="{% url 'social:begin' 'twitter' %}"> <i class="fa fa-twitter"></i> Login with Twitter</a>
</div>
<div class="col-md-4">
<a class="btn btn-primary social-btn" href="{% url 'social:begin' 'facebook' %}"> <i class="fa fa-facebook"></i> Login with Facebook</a>
</div>
<div class="col-md-4">
<a class="btn btn-danger social-btn" href="{% url 'social:begin' 'google-oauth2' %}"> <i class="fa fa-google"></i> Login with Google</a>
</div>
<div class="row col-md-offset-3 social-logins">
<a class="btn btn-primary social-btn" href="{% url 'social:begin' 'twitter' %}">
<i class="fa fa-twitter"></i> Login with Twitter
</a>
<a class="btn btn-primary social-btn" href="{% url 'social:begin' 'facebook' %}">
<i class="fa fa-facebook"></i> Login with Facebook</a>
<a class="btn btn-danger social-btn" href="{% url 'social:begin' 'google-oauth2' %}">
<i class="fa fa-google"></i> Login with Google
</a>
</div>

{% endblock %}
Expand Down

0 comments on commit 818d5e4

Please sign in to comment.