Fix design of 2FA login screens

* Fix rending of empty selection screen (ul missing)
* Fix rendering of backup codes inputs

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2018-10-03 15:31:23 +02:00
parent 893d2daece
commit 335a461250
2 changed files with 11 additions and 11 deletions

View File

@ -103,7 +103,7 @@ body {
/* Default FORM */ /* Default FORM */
form { form {
position: relative; position: relative;
width: 280px; width: 100%;
margin: auto; margin: auto;
padding: 0; padding: 0;
} }
@ -433,7 +433,7 @@ form .warning input[type='checkbox']+label {
margin: 0 auto; margin: 0 auto;
} }
.two-factor-submit { .two-factor-submit {
width: 280px; width: 100%;
padding: 10px; padding: 10px;
margin: 0 0 5px 0; margin: 0 0 5px 0;
border-radius: 3px; border-radius: 3px;

View File

@ -6,6 +6,8 @@
<strong><?php p($l->t('Could not load at least one of your enabled two-factor auth methods. Please contact your admin.')) ?></strong> <strong><?php p($l->t('Could not load at least one of your enabled two-factor auth methods. Please contact your admin.')) ?></strong>
</p> </p>
<?php endif; ?> <?php endif; ?>
<p>
<ul>
<?php if (empty($_['providers'])): ?> <?php if (empty($_['providers'])): ?>
<p> <p>
<?php if (is_null($_['backupProvider'])): ?> <?php if (is_null($_['backupProvider'])): ?>
@ -15,8 +17,6 @@
<?php endif; ?> <?php endif; ?>
</p> </p>
<?php else: ?> <?php else: ?>
<p>
<ul>
<?php foreach ($_['providers'] as $provider): ?> <?php foreach ($_['providers'] as $provider): ?>
<li> <li>
<a class="two-factor-provider" <a class="two-factor-provider"