From 5b056e8aabe9e6a8e003cbd24ed71e8a0f9de6ed Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 21 May 2018 22:42:02 +0100 Subject: [PATCH] Fix .box spacing issues --- app/scss/components.scss | 2 +- app/templates/flask_user/login.html | 29 ++++---- app/templates/flask_user/public_base.html | 1 + app/templates/packages/view.html | 79 +++++++++++----------- app/templates/users/user_profile_page.html | 34 +++++----- 5 files changed, 75 insertions(+), 70 deletions(-) diff --git a/app/scss/components.scss b/app/scss/components.scss index da7ca636..5d30c07b 100644 --- a/app/scss/components.scss +++ b/app/scss/components.scss @@ -32,7 +32,7 @@ a:hover { } .box .box-body { - padding: 1em; + padding: 1em !important; } // .box form { diff --git a/app/templates/flask_user/login.html b/app/templates/flask_user/login.html index 24ea95ec..29f457d0 100644 --- a/app/templates/flask_user/login.html +++ b/app/templates/flask_user/login.html @@ -10,7 +10,7 @@ Sign in {% from "flask_user/_macros.html" import render_field, render_checkbox_field, render_submit_field %}

{%trans%}Sign in{%endtrans%}

-
+ GitHub @@ -46,25 +46,24 @@ Sign in {%trans%}Forgot your Password?{%endtrans%} {% endif %} - - {{ field(class_='form-control', tabindex=120) }} - {% if field.errors %} - {% for e in field.errors %} -

{{ e }}

- {% endfor %} - {% endif %} - - {# Remember me #} - {% if user_manager.enable_remember_me %} - {{ render_checkbox_field(login_form.remember_me, tabindex=130) }} + {{ field(class_='form-control', tabindex=120) }} + {% if field.errors %} + {% for e in field.errors %} +

{{ e }}

+ {% endfor %} {% endif %} + - {# Submit button #} - {{ render_submit_field(form.submit, tabindex=180) }} -
+ {# Remember me #} + {% if user_manager.enable_remember_me %} + {{ render_checkbox_field(login_form.remember_me, tabindex=130) }} + {% endif %} + {# Submit button #} + {{ render_submit_field(form.submit, tabindex=180) }} +
diff --git a/app/templates/flask_user/public_base.html b/app/templates/flask_user/public_base.html index 3db49fe0..60cafeed 100644 --- a/app/templates/flask_user/public_base.html +++ b/app/templates/flask_user/public_base.html @@ -3,6 +3,7 @@ {% block container %}
+
{% block content %} {% endblock %} diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 150abee0..565c4d33 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -40,45 +40,48 @@

{{ package.shortDesc }}

diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index e4f9ff01..e5bd127d 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -9,7 +9,7 @@

{{ user.display_name }}

- +
Rank: @@ -47,20 +47,22 @@

Packages

- - {% endfor %} - - {% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %} -

- Create -

- {% endif %} +
+ + {% endfor %} + + {% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %} +

+ Create +

+ {% endif %} +
{% if form %} @@ -68,7 +70,7 @@

Edit Details

-
+
{{ form.hidden_tag() }}