add styling of the file input hack
This commit is contained in:
parent
bc3a7bd057
commit
fb1a62a9f8
|
@ -4,7 +4,14 @@
|
|||
</head>
|
||||
<body style="background: none;">
|
||||
<form method="post" action="/json/upload" enctype="multipart/form-data">
|
||||
<label>$_('File'):</label><div id="torrentFileDiv"><input type="file" name="torrentFile" /></div><br/>
|
||||
<label>$_('File'):</label>
|
||||
<div class="fileInputs">
|
||||
<input type="file" name="torrentFile" class="file" />
|
||||
<div class="fakeFile">
|
||||
<input />
|
||||
<button>$_('Browse')</button>
|
||||
</div>
|
||||
</div><br/>
|
||||
<button class="ok">$_('Ok')</button><button class="cancel">$_('Cancel')</button>
|
||||
</form>
|
||||
</body>
|
||||
|
|
|
@ -25,6 +25,28 @@ form label {
|
|||
float: left;
|
||||
}
|
||||
|
||||
div.fileInputs {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.fakeFile {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
form input.file {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
text-align: left;
|
||||
-moz-opacity: 0;
|
||||
opacity: 0;
|
||||
filter: alpha(opacity: 0);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
form input, form select {
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
|
|
Loading…
Reference in New Issue