Skip to content
Snippets Groups Projects
Commit f5c42fe0 authored by Joas Schilling's avatar Joas Schilling Committed by GitHub
Browse files

Merge pull request #3403 from nextcloud/rename-dbpassword-toggle

Rename database password toggle
parents 1aba2d9e f1c4f4c0
No related branches found
No related tags found
No related merge requests found
...@@ -257,26 +257,26 @@ label.infield { ...@@ -257,26 +257,26 @@ label.infield {
} }
/* Show password toggle */ /* Show password toggle */
#show, #dbpassword { #show, #dbpassword-toggle {
position: absolute; position: absolute;
right: 1em; right: 1em;
top: .8em; top: .8em;
float: right; float: right;
} }
#show, #dbpassword, #personal-show { #show, #dbpassword-toggle, #personal-show {
display: none; display: none;
} }
#show + label, #dbpassword + label { #show + label, #dbpassword-toggle + label {
right: 21px; right: 21px;
top: 15px !important; top: 15px !important;
margin: -14px !important; margin: -14px !important;
padding: 14px !important; padding: 14px !important;
} }
#show:checked + label, #dbpassword:checked + label, #personal-show:checked + label { #show:checked + label, #dbpassword-toggle:checked + label, #personal-show:checked + label {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
opacity: .8; opacity: .8;
} }
#show + label, #dbpassword + label, #personal-show + label { #show + label, #dbpassword-toggle + label, #personal-show + label {
position: absolute !important; position: absolute !important;
height: 20px; height: 20px;
width: 24px; width: 24px;
...@@ -286,7 +286,7 @@ label.infield { ...@@ -286,7 +286,7 @@ label.infield {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
opacity: .3; opacity: .3;
} }
#show + label:before, #dbpassword + label:before, #personal-show + label:before { #show + label:before, #dbpassword-toggle + label:before, #personal-show + label:before {
display: none; display: none;
} }
#pass2, input[name="personal-password-clone"] { #pass2, input[name="personal-password-clone"] {
......
...@@ -108,13 +108,13 @@ script('core', [ ...@@ -108,13 +108,13 @@ script('core', [
autocomplete="off" autocapitalize="off" autocorrect="off"> autocomplete="off" autocapitalize="off" autocorrect="off">
</p> </p>
<p class="groupmiddle"> <p class="groupmiddle">
<input type="password" name="dbpass" id="dbpass" data-typetoggle="#dbpassword" <input type="password" name="dbpass" id="dbpass" data-typetoggle="#dbpassword-toggle"
placeholder="<?php p($l->t( 'Database password' )); ?>" placeholder="<?php p($l->t( 'Database password' )); ?>"
value="<?php p($_['dbpass']); ?>" value="<?php p($_['dbpass']); ?>"
autocomplete="off" autocapitalize="off" autocorrect="off"> autocomplete="off" autocapitalize="off" autocorrect="off">
<label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label> <label for="dbpass" class="infield"><?php p($l->t( 'Database password' )); ?></label>
<input type="checkbox" id="dbpassword" name="dbpassword"> <input type="checkbox" id="dbpassword-toggle" name="dbpassword-toggle">
<label for="dbpassword"></label> <label for="dbpassword-toggle"></label>
</p> </p>
<p class="groupmiddle"> <p class="groupmiddle">
<label for="dbname" class="infield"><?php p($l->t( 'Database name' )); ?></label> <label for="dbname" class="infield"><?php p($l->t( 'Database name' )); ?></label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment