diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-08-03 19:18:17 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-08-03 21:09:43 +0200 |
commit | b237379fa1f9549b0ec3c79ba476d0a870454cce (patch) | |
tree | 2f9248e7321249e3ac89713deaae1ff5c7fa7bd1 /core/templates/login.php | |
parent | bb865a55febe7b712a0e6cc7e1e93034f60a0e8b (diff) | |
download | nextcloud-server-b237379fa1f9549b0ec3c79ba476d0a870454cce.tar.gz nextcloud-server-b237379fa1f9549b0ec3c79ba476d0a870454cce.zip |
Replace loading icon GIF with pure CSS loading icon
The pure CSS loading icon uses an ::after pseudo-element, and thus it
can only be used on container elements; the input element is not a
container element, so when the class "icon-loading-small" is set on an
input element it falls back to a loading icon GIF.
This commit modifies the markup of the login button to add a div element
that holds the confirm icon and the loading icon (depending on the
case). In order to position the icon in the same place as before the
input and the icon are both wrapped by another div making possible to
set the absolute position of the icon relative to the input.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'core/templates/login.php')
-rw-r--r-- | core/templates/login.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/templates/login.php b/core/templates/login.php index 8545e5d07df..0801b3746df 100644 --- a/core/templates/login.php +++ b/core/templates/login.php @@ -61,7 +61,10 @@ script('core', 'merged-login'); </p> <?php } ?> - <input type="submit" id="submit" class="login primary icon-confirm-white" title="" value="<?php p($l->t('Log in')); ?>" disabled="disabled" /> + <div id="submit-wrapper"> + <input type="submit" id="submit" class="login primary" title="" value="<?php p($l->t('Log in')); ?>" disabled="disabled" /> + <div id="submit-icon" class="icon-confirm-white"></div> + </div> <div class="login-additional"> <div class="remember-login-container"> |