From 079b7b961f0eb152debc2e8df3ff99d6e59fe070 Mon Sep 17 00:00:00 2001 From: maTh Date: Thu, 11 Nov 2021 20:01:28 +0100 Subject: Improve install routine: database password input with "show password" button (#3962) * wip * CSS better btn * CSS: RTL * button is better than a * improved CSS for button --- app/install.php | 19 +++++++++++-------- p/themes/Origine/origine.css | 13 ++++++++++--- p/themes/Origine/origine.rtl.css | 13 ++++++++++--- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/app/install.php b/app/install.php index e42e789f5..cd2845fd2 100644 --- a/app/install.php +++ b/app/install.php @@ -503,8 +503,11 @@ function printStep2() {
- +
+ + +
@@ -512,7 +515,7 @@ function printStep2() {
+ isset($_SESSION['bd_base']) ? $_SESSION['bd_base'] : '' ?>" tabindex="6" />
@@ -520,17 +523,17 @@ function printStep2() {
+ isset($_SESSION['bd_prefix']) ? $_SESSION['bd_prefix'] : $system_default_config->db['prefix'] ?>" tabindex="7" />
- - + + - +
@@ -585,7 +588,7 @@ function printStep3() {
tabindex="5" /> - +

diff --git a/p/themes/Origine/origine.css b/p/themes/Origine/origine.css index 1021f47c6..31b9cc4fd 100644 --- a/p/themes/Origine/origine.css +++ b/p/themes/Origine/origine.css @@ -47,10 +47,11 @@ option { padding: 0 .5em; } -input:focus, select:focus, textarea:focus { +input:focus, select:focus, textarea:focus, input[type="password"]:focus + .toggle-password { color: #0062be; border-color: #3bf; box-shadow: 0 2px 2px #ddf inset; + outline: none; } input:invalid, select:invalid { @@ -114,11 +115,17 @@ form th { padding: 0; } -.form-group .group-controls input, -.form-group .group-controls select { +.form-group .group-controls > input, +.form-group .group-controls > select, +.form-group .group-controls .stick { margin: -5px 0; } +.form-group .group-controls .stick .btn { + padding-top: 2px; + padding-bottom: 2px; +} + /*=== Buttons */ .stick { vertical-align: middle; diff --git a/p/themes/Origine/origine.rtl.css b/p/themes/Origine/origine.rtl.css index 7649c8ed4..da0837a27 100644 --- a/p/themes/Origine/origine.rtl.css +++ b/p/themes/Origine/origine.rtl.css @@ -47,10 +47,11 @@ option { padding: 0 .5em; } -input:focus, select:focus, textarea:focus { +input:focus, select:focus, textarea:focus, input[type="password"]:focus + .toggle-password { color: #0062be; border-color: #3bf; box-shadow: 0 2px 2px #ddf inset; + outline: none; } input:invalid, select:invalid { @@ -114,11 +115,17 @@ form th { padding: 0; } -.form-group .group-controls input, -.form-group .group-controls select { +.form-group .group-controls > input, +.form-group .group-controls > select, +.form-group .group-controls .stick { margin: -5px 0; } +.form-group .group-controls .stick .btn { + padding-top: 2px; + padding-bottom: 2px; +} + /*=== Buttons */ .stick { vertical-align: middle; -- cgit v1.2.3