1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 19:00:12 +00:00

[2fa] login: improved UI

This commit is contained in:
llj
2017-12-27 12:01:56 +08:00
parent 06894e3e52
commit 472e421fe8
2 changed files with 19 additions and 10 deletions

View File

@@ -227,9 +227,6 @@ a.normal {font-weight: normal;}
a:focus, a:hover { a:focus, a:hover {
color: #eb8205; color: #eb8205;
} }
a.black {
color:#322;
}
a.table-sort-op { a.table-sort-op {
color:inherit; color:inherit;
font-weight:normal; font-weight:normal;
@@ -660,6 +657,19 @@ textarea:-moz-placeholder {/* for FF */
background:transparent; background:transparent;
border:0; border:0;
} }
/**** btn with link styles ****/
.sf-link-btn {
color:#eb8205;
border:none;
padding:0;
background:none;
}
.sf-link-btn:focus,
.sf-link-btn:hover {
color:#eb8205;
background:none;
text-decoration:underline;
}
/*******ui widgets**************/ /*******ui widgets**************/
/**** path ****/ /**** path ****/
@@ -3829,9 +3839,6 @@ img.thumbnail {
.input.two-factor-auth-login-token-input { .input.two-factor-auth-login-token-input {
margin-bottom:15px; margin-bottom:15px;
} }
.two-factor-auth-login-no-phone {
margin-top:3rem;
}
#id_generator-token, #id_generator-token,
#id_sms-number, #id_sms-number,
#id_validation-token {/* token input */ #id_validation-token {/* token input */

View File

@@ -27,12 +27,14 @@
{% else %} {% else %}
<p class="error hide"></p> <p class="error hide"></p>
{% endif %} {% endif %}
<button type="submit" class="btn-white">{% trans "Verify" %}</button> <button type="submit" class="submit">{% trans "Verify" %}</button>
{% if backup_tokens > 0 %} {% if backup_tokens > 0 %}
<div class="two-factor-auth-login-no-phone"> <div class="two-factor-auth-login-no-phone">
<p class="txt-before-btn">{% trans "Don't have your phone?" %}</p> <p>
<button name="wizard_goto_step" value="backup" type="submit" class="btn-white">{% trans "Enter a two-factor backup code" %}</button> {% trans "Don't have your phone?" %}
<button name="wizard_goto_step" value="backup" type="submit" class="sf-link-btn">{% trans "Enter a two-factor backup code" %}</button>
</p>
</div> </div>
{% endif %} {% endif %}
@@ -45,7 +47,7 @@
<p class="error hide"></p> <p class="error hide"></p>
{% endif %} {% endif %}
<p class="tip">{% trans "You can enter one of your backup codes in case you lost access to your mobile device." %}</p> <p class="tip">{% trans "You can enter one of your backup codes in case you lost access to your mobile device." %}</p>
<input type="submit" value="{% trans "Verify" %}" class="submit" /> <button type="submit" class="submit">{% trans "Verify" %}</button>
{% endif %} {% endif %}
</form> </form>
</div> </div>