From 32e739f2ae2eebb7b169052463aa73fb452d5afb Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 7 Feb 2013 17:41:24 +0100 Subject: [PATCH] make show password not specific to log in --- core/css/styles.css | 11 +++++------ core/templates/login.php | 2 +- 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 @@ /> - +

-- 2.39.5