added medium text boxes
This commit is contained in:
parent
c3653a45b6
commit
5c4f5c0a90
@ -100,6 +100,13 @@ class Form extends InterfaceElement {
|
|||||||
return this.appendElement(new FormElement(params));
|
return this.appendElement(new FormElement(params));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
createMediumTextBox(params) {
|
||||||
|
params.tag = document.createElement("textarea");
|
||||||
|
params.tag.classList.add("mediumbox")
|
||||||
|
dataTypeSupports(params, ["plaintext", "b64", "json-b64"]);
|
||||||
|
return this.appendElement(new FormElement(params));
|
||||||
|
}
|
||||||
|
|
||||||
createPasswordInput(params) {
|
createPasswordInput(params) {
|
||||||
params.tag = document.createElement("input");
|
params.tag = document.createElement("input");
|
||||||
params.tag.setAttribute("type", "password");
|
params.tag.setAttribute("type", "password");
|
||||||
|
@ -31,10 +31,14 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input:not([type]), input[type=password] {
|
input:not([type]), input[type=password] {
|
||||||
width: 20em;
|
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mediumbox {
|
||||||
|
width: 20em;
|
||||||
|
height: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
label, input, button, textarea {
|
label, input, button, textarea {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
@ -56,7 +60,7 @@ input:focus, textarea:focus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
textarea:disabled, input:disabled {
|
textarea:disabled, input:disabled {
|
||||||
opacity: 40%;
|
background: #ffffff33;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox-container {
|
.checkbox-container {
|
||||||
|
Loading…
Reference in New Issue
Block a user