password input at smaller screens

This commit is contained in:
Erica Wright 2017-10-24 11:19:08 -04:00
parent 1e4d6646c6
commit 82e206bccf
No known key found for this signature in database
GPG key ID: D9F2AF9D67D0AAB7
3 changed files with 28 additions and 20 deletions

View file

@ -6,7 +6,7 @@ module.exports = function(state, emit) {
fileInfo.password === null fileInfo.password === null
? html` ? html`
<label class="red" <label class="red"
for="unlock-input">${state.translate('incorrectPassword')}</label>` for="unlock-input">${state.translate('passwordTryAgain')}</label>`
: html` : html`
<label for="unlock-input"> <label for="unlock-input">
${state.translate('unlockInputLabel')} ${state.translate('unlockInputLabel')}

View file

@ -7,7 +7,6 @@ module.exports = function(state, emit) {
<div id="addPasswordWrapper"> <div id="addPasswordWrapper">
<input id="addPassword" type="checkbox" onchange=${togglePasswordInput}/> <input id="addPassword" type="checkbox" onchange=${togglePasswordInput}/>
<label for="addPassword"> <label for="addPassword">
<img src="/assets/check-16-blue.svg"/>
${state.translate('requirePasswordCheckbox')}</label> ${state.translate('requirePasswordCheckbox')}</label>
</div> </div>
<form class="setPassword hidden" onsubmit=${setPassword}> <form class="setPassword hidden" onsubmit=${setPassword}>

View file

@ -590,7 +590,6 @@ tbody {
color: white; color: white;
cursor: pointer; cursor: pointer;
font-size: 15px; font-size: 15px;
height: 60px;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
white-space: nowrap; white-space: nowrap;
@ -645,6 +644,7 @@ tbody {
.selectPassword { .selectPassword {
padding: 10px 0; padding: 10px 0;
align-self: left; align-self: left;
max-width: 100%;
} }
.setPassword { .setPassword {
@ -822,7 +822,6 @@ tbody {
color: white; color: white;
cursor: pointer; cursor: pointer;
font-size: 15px; font-size: 15px;
height: 50px;
padding-left: 10px; padding-left: 10px;
padding-right: 10px; padding-right: 10px;
white-space: nowrap; white-space: nowrap;
@ -897,7 +896,7 @@ tbody {
} }
#addPasswordWrapper { #addPasswordWrapper {
height: 24px; min-height: 24px;
} }
#addPassword { #addPassword {
@ -916,7 +915,7 @@ tbody {
opacity: 1; opacity: 1;
} }
#addPasswordWrapper label::after { #addPasswordWrapper label::before {
content: ''; content: '';
height: 20px; height: 20px;
width: 20px; width: 20px;
@ -927,17 +926,9 @@ tbody {
border-radius: 2px; border-radius: 2px;
} }
#addPassword:not(:checked) + label > img { #addPassword:checked + label::before {
height: 0; background-image: url('/assets/check-16-blue.svg');
width: 0; background-position: 2px 1px;
}
#addPassword:checked + label > img {
height: 20px;
width: 20px;
position: absolute;
left: -29px;
top: 2px;
} }
@media (max-device-width: 992px), (max-width: 992px) { @media (max-device-width: 992px), (max-width: 992px) {
@ -1010,22 +1001,40 @@ tbody {
padding: 5px 5px 5px 20px; padding: 5px 5px 5px 20px;
} }
#copy { #copy,
.setPassword,
#unlock {
width: 100%; width: 100%;
flex-direction: column; flex-direction: column;
padding-left: 0;
} }
#link { .selectPassword {
align-self: center;
min-width: 95%;
}
#addPasswordWrapper label::before {
margin-left: 0;
}
#link,
#unlock-input {
font-size: 22px; font-size: 22px;
padding: 15px 10px; padding: 15px 10px;
border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0;
} }
#copy-btn { #copy-btn,
#unlock-btn {
border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px;
flex: 0 1 65px; flex: 0 1 65px;
} }
#copy-text {
text-align: center;
}
th { th {
font-size: 14px; font-size: 14px;
padding: 0 5px; padding: 0 5px;