move more textarea styles to CSS
This commit is contained in:
parent
84a2ceb28d
commit
82b14fc439
2 changed files with 5 additions and 7 deletions
|
|
@ -74,6 +74,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.ace_editor textarea {
|
.ace_editor textarea {
|
||||||
|
position: "absolute";
|
||||||
|
z-index: -1;
|
||||||
|
opacity: 0;
|
||||||
|
width: 10px;
|
||||||
|
height: 30px;
|
||||||
border: none;
|
border: none;
|
||||||
resize: none;
|
resize: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
|
||||||
|
|
@ -43,13 +43,6 @@ var useragent = require("pilot/useragent");
|
||||||
var TextInput = function(parentNode, host) {
|
var TextInput = function(parentNode, host) {
|
||||||
|
|
||||||
var text = document.createElement("textarea");
|
var text = document.createElement("textarea");
|
||||||
var style = text.style;
|
|
||||||
style.position = "absolute";
|
|
||||||
style.zIndex = -1;
|
|
||||||
style.opacity = 0;
|
|
||||||
style.border = "none";
|
|
||||||
style.width = "10px";
|
|
||||||
style.height = "30px";
|
|
||||||
parentNode.appendChild(text);
|
parentNode.appendChild(text);
|
||||||
|
|
||||||
var PLACEHOLDER = String.fromCharCode(0);
|
var PLACEHOLDER = String.fromCharCode(0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue