aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-02-07 17:41:24 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-02-07 17:41:24 +0100
commit32e739f2ae2eebb7b169052463aa73fb452d5afb (patch)
tree1bfb6a7ef76c67ea4291b7d6722af7de94fe0e37 /core
parentee6884e33649881731793b29e0605e0beb193c46 (diff)
downloadnextcloud-server-32e739f2ae2eebb7b169052463aa73fb452d5afb.tar.gz
nextcloud-server-32e739f2ae2eebb7b169052463aa73fb452d5afb.zip
make show password not specific to log in
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.css11
-rw-r--r--core/templates/login.php2
2 files changed, 6 insertions, 7 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index 18c41e93f41..ebb59f08fa1 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -149,13 +149,12 @@ input[type="submit"].enabled { background:#66f866; border:1px solid #5e5; -moz-b
/* Icons for username and password fields to better recognize them */
#adminlogin, #adminpass, #user, #password { width:11.7em!important; padding-left:1.8em; }
-#adminlogin+label+img, #adminpass+label+img, #user+label+img, #password+label+img {
+#adminlogin+label+img, #adminpass+label+img, #user+label+img, #password-icon {
position:absolute; left:1.25em; top:1.65em;
opacity:.3;
}
-#adminpass+label+img, #password+label+img { top:1.1em; }
+#adminpass+label+img, #password-icon { top:1.1em; }
input[name="password-clone"] { padding-left:1.8em; width:11.7em !important; }
-#pass_image { position: absolute; top: 1.2em; left: 1.4em; opacity: 0.3; }
/* Nicely grouping input field sets */
.grouptop input {
@@ -188,11 +187,11 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
position:absolute; right:1em; top:.8em; float:right;
display:none;
}
-#login form input[name="show"] + label {
- position:absolute !important; height:14px; width:24px; right:1em; top:1.25em; float:right;
+#show + label {
+ position:absolute!important; height:14px; width:24px; right:1em; top:1.25em!important;
background-image:url("../img/actions/toggle.png"); background-repeat:no-repeat; opacity:.3;
}
-#login form input[name="show"]:checked + label { opacity:.8; }
+#show:checked + label { opacity:.8; }
/* Database selector */
#login form #selectDbType { text-align:center; }
diff --git a/core/templates/login.php b/core/templates/login.php
index e66d27f6d69..3be2b039b03 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -33,7 +33,7 @@
<input type="password" name="password" id="password" value="" data-typetoggle="#show"
required<?php echo $_['user_autofocus'] ? '' : ' autofocus'; ?> />
<label for="password" class="infield"><?php echo $l->t('Password'); ?></label>
- <img class="svg" id="pass_image" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt=""/>
+ <img class="svg" id="password-icon" src="<?php echo image_path('', 'actions/password.svg'); ?>" alt=""/>
<input type="checkbox" id="show" name="show" />
<label for="show"></label>
</p>