From 266d595e0dadbf187ad67e17350f5c79044cad61 Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Fri, 10 Aug 2012 12:38:29 +0200 Subject: some style fixes --- static/style.css | 27 ++++++++++++------ static/upload.js | 77 --------------------------------------------------- templates/layout.html | 11 ++++---- 3 files changed, 24 insertions(+), 91 deletions(-) delete mode 100644 static/upload.js diff --git a/static/style.css b/static/style.css index 8ff2812..7b3b094 100644 --- a/static/style.css +++ b/static/style.css @@ -1,3 +1,10 @@ +html, body { + padding: 0; + margin: 0; + height: 100%; + font: 13px/1.5 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif; +} + body { background-color: #333; } @@ -15,7 +22,7 @@ body { background-color: #fff; clear: both; height: 80px; - margin: 0px auto 5px auto; + margin: 0px auto 10px auto; } footer { @@ -31,8 +38,6 @@ footer a, footer a:visited { color: #fff; } - - #sub-header { width:100%; } @@ -47,17 +52,21 @@ footer a, footer a:visited { #header h1 { float: left; - width: 60px; + width: 50%; margin: 0px; } #header p { font-family: monospace; - float: left; - width: 550px; - text-align: left; - line-height: 80px; + text-align: right; + line-height: 180%; height: 80px; - padding: 0px; + padding: 5px; + margin: 0; +} + +#header h1 small { + color: #777; + font-size: 50%; } #header form { diff --git a/static/upload.js b/static/upload.js deleted file mode 100644 index abd264e..0000000 --- a/static/upload.js +++ /dev/null @@ -1,77 +0,0 @@ -var fileUploader = {}; - -fileUploader.init = function() { - var uploader = new plupload.Uploader({ - runtimes : 'html5,flash,html4,silverlight', - browse_button : 'pickfiles', - container : 'container', - max_file_size : '10mb', - url : '/', - flash_swf_url : '/static/plupload/js/plupload.flash.swf', - silverlight_xap_url : '/static/plupload/js/plupload.silverlight.xap', - multipart_params: {}, - filters : [ - {title : "Image files", extensions : "jpg,gif,png"}, - {title : "Data Compression", extensions : "zip,tar.gz"}, - {title : "Additional", extensions : "pdf,gs"} - ], - }); - - uploader.bind('Init', function(up, params) { - console.log("using runtime: " + params.runtime); - $('#upload-form').html('

'+ - ' Add files |'+ - ' Upload'+ - '

'+ - ''); - $('#filelist').html('
  • No Files Added
  • '); - - }); - - $('#uploadfiles').live('click', function(e) { - uploader.start(); - e.preventDefault(); - }); - - uploader.init(); - - uploader.bind('BeforeUpload', function(up, file) { - uploader.settings.multipart_params.tags = $('input[name='+file.id +']').val(); - }); - - uploader.bind('FilesAdded', function(up, files) { - $('#no-files').remove() - $.each(files, function(i, file) { - $('#filelist').append( - '
  • ' + - '' + - '' + - '' + - '
  • '); - }); - - up.refresh(); // Reposition Flash/Silverlight - }); - - uploader.bind('UploadProgress', function(up, file) { - $('#' + file.id + " input").attr('disabled', true); - $('#' + file.id + " b").html(file.percent + "%"); - }); - - uploader.bind('Error', function(up, err) { - $('#filelist').append("
    Error: " + err.code + - ", Message: " + err.message + - (err.file ? ", File: " + err.file.name : "") + - "
    " - ); - - up.refresh(); // Reposition Flash/Silverlight - }); - - uploader.bind('FileUploaded', function(up, file, response) { - var responseObj = jQuery.parseJSON(response.response) - $('#'+file.id).html(''+file.name+''); - }); -}; diff --git a/templates/layout.html b/templates/layout.html index d5e3929..e4cacde 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -2,16 +2,17 @@ - - - Fit
    -- cgit v1.2.3-1-g7c22