redesign access key input box in uploader

This commit is contained in:
Viktor Oreshkin 2020-03-01 03:43:53 +03:00
parent 4361c44128
commit 5a6e589500
2 changed files with 24 additions and 1 deletions

View File

@ -264,6 +264,24 @@ body {
margin: 0;
}
#access_key_checkbox {
margin: 0;
}
#access_key_checkbox:checked ~ #access_key {
display: inline-block;
}
#access_key_checkbox:checked ~ #access_key_label {
display: none;
}
#access_key {
line-height: 1em;
padding: 1px;
border: 3px;
display: none;
}
.oopscontent {
width: 400px;
}

View File

@ -27,7 +27,12 @@
</select>
</label>
</div>
<label><input name="access_key" type="text"/> Require password to access</label>
<div>
<input type="checkbox" id="access_key_checkbox"/>
<input id="access_key" name="access_key" type="text" placeholder="Access password"/>
<label id="access_key_label"> Require password to access</label>
</div>
</div>
<div class="clear"></div>
</form>