Changeset fb1a62


Ignore:
Timestamp:
11/11/2008 04:32:01 PM (16 years ago)
Author:
Damien Churchill <damoc@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
8a4da5
Parents:
bc3a7bd
Message:

add styling of the file input hack

Location:
deluge/ui/webui/templates/ajax
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/webui/templates/ajax/render/html/window_add_torrent_file.html

    rbc3a7bd rfb1a62  
    55    <body style="background: none;">
    66        <form method="post" action="/json/upload" enctype="multipart/form-data">
    7             <label>$_('File'):</label><div id="torrentFileDiv"><input type="file" name="torrentFile" /></div><br/>
     7            <label>$_('File'):</label>
     8            <div class="fileInputs">
     9                <input type="file" name="torrentFile" class="file" />
     10                <div class="fakeFile">
     11                    <input />
     12                    <button>$_('Browse')</button>
     13                </div>
     14            </div><br/>
    815            <button class="ok">$_('Ok')</button><button class="cancel">$_('Cancel')</button>
    916        </form>
  • deluge/ui/webui/templates/ajax/static/themes/classic/iframe.css

    rbc3a7bd rfb1a62  
    2424        line-height: 20px;
    2525        float: left;
     26}
     27
     28div.fileInputs {
     29    position: relative;
     30}
     31
     32div.fakeFile {
     33    position: absolute;
     34    top: 0px;
     35    left: 0px;
     36    z-index: 1;
     37}
     38
     39form input.file {
     40    position: absolute;
     41    top: 0px;
     42    left: 0px;
     43    text-align: left;
     44    -moz-opacity: 0;
     45    opacity: 0;
     46    filter: alpha(opacity: 0);
     47    z-index: 2;
    2648}
    2749
Note: See TracChangeset for help on using the changeset viewer.