Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix reset password styles
Krzysztof Białogłowicz38d3f9705203
diff --git a/saleor/static/images/pirate-reset.png b/saleor/static/images/pirate-reset.pngnew file mode 100644index 0000000000..3e824a0346Binary files /dev/null and b/saleor/static/images/pirate-reset.png differdiff --git a/saleor/static/scss/storefront/components/_login.scss b/saleor/static/scss/storefront/components/_login.scssindex 3ae29709ca..569fcb4a89 100644--- a/saleor/static/scss/storefront/components/_login.scss+++ b/saleor/static/scss/storefront/components/_login.scss@@ -18,6 +18,7 @@display: block;margin: auto;margin-top: $global-margin;+ font-family: $font-family-sans-serif;}&__register {padding: $global-padding * 2;@@ -63,3 +64,37 @@}}}++.forgott-password {+ h2 {+ font-size: 2rem;+ text-align: center;+ padding-top: $global-padding*2;+ font-weight: 300;+ }+ p {+ font-size: 1rem;+ text-align: center;+ padding-top: $global-padding;+ }+ fieldset {+ max-width: 60%;+ margin: auto;+ padding-bottom: $global-padding;+ }+ .btn {+ padding: $global-padding / 2 $global-padding * 3;+ display: block;+ margin: auto;+ text-transform: uppercase;+ font-family: $font-family-sans-serif;+ }+ img {+ max-width: 15rem;+ margin: auto;+ display: block;+ padding-top: $global-padding * 2;+ }+}++diff --git a/templates/account/password_reset.html b/templates/account/password_reset.htmlindex c6b3d71ca9..85ec89f082 100644--- a/templates/account/password_reset.html+++ b/templates/account/password_reset.html@@ -1,29 +1,30 @@{% extends "base.html" %}{% load i18n %}+{% load staticfiles %}{% load bootstrap_form from bootstrap3 %}{% block content %}- <div class="row">+ <div class="row forgott-password"><div class="col-md-8 push-md-2">- <div class="jumbotron"><div class="text-center"></div><form method="post" novalidate>{% csrf_token %}- <legend class="text-center">{% trans 'Password Reset' %}</legend>+ <h2>{% trans 'Forgott password?' %}</h2>+ <p>{% trans "Please let us know the email you have used to register or purchase at our store."%}</p><fieldset>{% bootstrap_form form %}<input type="hidden" name="next" value="{{ next }}"/></fieldset>- <div class="row login__btn-group text-right">+ <div class="row login__btn-group"><div class="col-sm-12"><button class="btn primary">{% trans "Continue" %}</button>+ <img src="{% static "images/pirate-reset.png" %}" /></div></div></form>- </div></div></div>diff --git a/templates/account/password_reset_base.html b/templates/account/password_reset_base.htmlindex 2706ad672f..a8adc53b45 100644--- a/templates/account/password_reset_base.html+++ b/templates/account/password_reset_base.html@@ -5,9 +5,7 @@{% block content %}<div class="row"><div class="col-md-8 push-md-2">- <div class="jumbotron">- {% block form %}{% endblock form %}- </div>+ {% block form %}{% endblock form %}</div></div>diff --git a/templates/account/password_reset_done.html b/templates/account/password_reset_done.htmlindex abf5dd473f..607d2ee51a 100644--- a/templates/account/password_reset_done.html+++ b/templates/account/password_reset_done.html@@ -2,13 +2,17 @@{% load i18n %}{% load account %}+{% load staticfiles %}{% block title %}{% trans "Password Reset" %}{% endblock %}{% block form %}- <h1>{% trans "Password Reset" %}</h1>+ <div class="forgott-password">+ <h2>{% trans "Password Reset" %}</h2>{% if user.is_authenticated %}- {% include "account/snippets/already_logged_in.html" %}+ {% include "account/snippets/already_logged_in.html" %}{% endif %}<p>{% blocktrans %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktrans %}</p>+ <img src="{% static "images/pirate-reset.png" %}" />+ </div>{% endblock %}