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 --- p/themes/Origine/origine.css | 13 ++++++++++--- p/themes/Origine/origine.rtl.css | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'p') 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