kopia lustrzana https://github.com/wagtail/wagtail
Addresses the issue of incorrect tab-order when logging on using keyboard. This change moves the password reset link to the very end of the form code, while maintaining the same visual location. * Fix lint issues * Refactor login position to remove unused media query Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>pull/5784/head
rodzic
11ba755f63
commit
5dcc71799e
|
@ -118,9 +118,13 @@ input[type=checkbox]:before {
|
|||
opacity: 1;
|
||||
position: absolute;
|
||||
font-size: 1.3em;
|
||||
top: 50%;
|
||||
margin-top: -0.5em;
|
||||
right: 5%;
|
||||
top: 213px;
|
||||
|
||||
@include media-breakpoint-up(sm) {
|
||||
top: 65%;
|
||||
}
|
||||
}
|
||||
|
||||
.messages {
|
||||
|
|
|
@ -52,9 +52,6 @@
|
|||
{{ form.password }}
|
||||
</div>
|
||||
</div>
|
||||
{% if show_password_reset %}
|
||||
<p class="help"><a href="{% url 'wagtailadmin_password_reset' %}">{% trans "Forgotten it?" %}</a></p>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
||||
{% block extra_fields %}
|
||||
|
@ -83,6 +80,10 @@
|
|||
{% endblock %}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% if show_password_reset %}
|
||||
<p class="help"><a href="{% url 'wagtailadmin_password_reset' %}">{% trans "Forgotten it?" %}</a></p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</form>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue