summaryrefslogtreecommitdiffstats
path: root/core/css
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-08-03 19:18:17 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-08-03 21:09:43 +0200
commitb237379fa1f9549b0ec3c79ba476d0a870454cce (patch)
tree2f9248e7321249e3ac89713deaae1ff5c7fa7bd1 /core/css
parentbb865a55febe7b712a0e6cc7e1e93034f60a0e8b (diff)
downloadnextcloud-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/css')
-rw-r--r--core/css/guest.css15
-rw-r--r--core/css/styles.scss16
2 files changed, 31 insertions, 0 deletions
diff --git a/core/css/guest.css b/core/css/guest.css
index e65f0a5de01..d46b2e895ca 100644
--- a/core/css/guest.css
+++ b/core/css/guest.css
@@ -131,6 +131,21 @@ form #datadirField legend {
}
/* Buttons and input */
+#submit-wrapper {
+ position: relative; /* Make the wrapper the containing block of its
+ absolutely positioned descendant icons */
+}
+#submit-wrapper .icon-confirm-white {
+ position: absolute;
+ top: 23px;
+ right: 23px;
+}
+#submit-wrapper .icon-loading-small {
+ position: absolute;
+ top: 22px;
+ right: 24px;
+}
+
input, textarea, select, button {
font-family: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif;
}
diff --git a/core/css/styles.scss b/core/css/styles.scss
index f2acca38e1e..36e1d8251de 100644
--- a/core/css/styles.scss
+++ b/core/css/styles.scss
@@ -754,6 +754,22 @@ label.infield {
/* Log in and install button */
+#body-login #submit-wrapper {
+ position: relative; /* Make the wrapper the containing block of its
+ absolutely positioned descendant icons */
+
+ .icon-confirm-white {
+ position: absolute;
+ top: 23px;
+ right: 23px;
+ }
+ .icon-loading-small {
+ position: absolute;
+ top: 22px;
+ right: 24px;
+ }
+}
+
#body-login input {
font-size: 20px;
margin: 5px;