]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix login loader position and theming support 12483/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Fri, 16 Nov 2018 11:48:11 +0000 (12:48 +0100)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Fri, 16 Nov 2018 11:48:13 +0000 (12:48 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
core/css/guest.css
core/js/login.js

index 5bc918db1e2a4486565afa78c6d72a30b33a933d..6a3b8c633e05b4f6ce12421d5fa0b8e368eac44e 100644 (file)
@@ -150,13 +150,18 @@ form #datadirField legend {
 
 #submit-wrapper .submit-icon {
        position: absolute;
-       top: 23px;
-       right: 23px;
+       height: 22px;
+       right: 24px;
+       top: 18px;
        pointer-events: none; /* The submit icon is positioned on the submit button.
                                                         From the user point of view the icon is part of the
                                                         button, so the clicks on the icon have to be
                                                         applied to the button instead. */
 }
+/* Properly position any loader */
+#submit-wrapper .submit-icon::after {
+       margin: -10px;
+}
 
 #reset-password-submit {
        padding: 10px;
@@ -168,11 +173,6 @@ form #datadirField legend {
        display: none;
 }
 
-#submit-wrapper .icon-loading-small {
-       position: absolute;
-       top: 22px;
-       right: 24px;
-}
 
 input, textarea, select, button, div[contenteditable=true] {
        font-family: 'Nunito', 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
index 3447a5de72450ab1690314abcb56b79757ec7a57..64be29bfec62163cf54662d8522e5be3ba74767c 100644 (file)
@@ -17,7 +17,9 @@ OC.Login = _.extend(OC.Login || {}, {
                if($('form[name=login][action]').length === 0) {
                        $('#submit-wrapper .submit-icon')
                                .removeClass('icon-confirm-white')
-                               .addClass('icon-loading-small-dark');
+                               .addClass(OCA.Theming && OCA.Theming.inverted
+                                       ? 'icon-loading-small'
+                                       : 'icon-loading-small-dark');
                        $('#submit')
                                .attr('value', t('core', 'Logging in …'));
                        $('.login-additional').fadeOut();