From fb1a62a9f8e0a8343748889c4cb471dce90c0320 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 11 Nov 2008 16:32:01 +0000 Subject: [PATCH] add styling of the file input hack --- .../render/html/window_add_torrent_file.html | 9 +++++++- .../ajax/static/themes/classic/iframe.css | 22 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/deluge/ui/webui/templates/ajax/render/html/window_add_torrent_file.html b/deluge/ui/webui/templates/ajax/render/html/window_add_torrent_file.html index dea031386..bfb2a4ad5 100644 --- a/deluge/ui/webui/templates/ajax/render/html/window_add_torrent_file.html +++ b/deluge/ui/webui/templates/ajax/render/html/window_add_torrent_file.html @@ -4,7 +4,14 @@
-

+ +
+ +
+ + +
+

diff --git a/deluge/ui/webui/templates/ajax/static/themes/classic/iframe.css b/deluge/ui/webui/templates/ajax/static/themes/classic/iframe.css index 8688b0a94..fcf7fecc6 100644 --- a/deluge/ui/webui/templates/ajax/static/themes/classic/iframe.css +++ b/deluge/ui/webui/templates/ajax/static/themes/classic/iframe.css @@ -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;