From 755a95e3f771dab9bfb7441135e01231ad08c968 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 Jun 2013 15:21:55 +0200 Subject: [PATCH] FIX UploadField: IE10 single click for upload trigger Fixes https://github.com/silverstripe/silverstripe-cms/issues/644. See https://github.com/blueimp/jQuery-File-Upload/commit/d45deb15f4934f7a2bce03040c879aca8eaa9c8a --- css/UploadField.css | 2 +- scss/UploadField.scss | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/css/UploadField.css b/css/UploadField.css index 050a051db..5d6468336 100644 --- a/css/UploadField.css +++ b/css/UploadField.css @@ -43,4 +43,4 @@ Used in side panels and action tabs .ss-uploadfield .ss-uploadfield-addfile.borderTop { border-top: 1px solid #b3b3b3; } .ss-upload .clear { clear: both; } -.ss-upload .ss-uploadfield-fromcomputer input { /* since we can't really style the file input, we use this hack to make it as big as the button and hide it */ position: absolute; top: 0; right: 0; margin: 0; border: solid #000; border-width: 0 0 100px 200px; opacity: 0; filter: alpha(opacity=0); -o-transform: translate(250px, -50px) scale(1); -moz-transform: translate(-300px, 0) scale(4); direction: ltr; cursor: pointer; } +.ss-upload .ss-uploadfield-fromcomputer input { /* since we can't really style the file input, we use this hack to make it as big as the button and hide it */ position: absolute; top: 0; right: 0; margin: 0; opacity: 0; filter: alpha(opacity=0); transform: translate(-300px, 0) scale(4); font-size: 23px; direction: ltr; cursor: pointer; height: 30px; line-height: 30px; } diff --git a/scss/UploadField.scss b/scss/UploadField.scss index a56a994fb..01efe3ef7 100644 --- a/scss/UploadField.scss +++ b/scss/UploadField.scss @@ -217,14 +217,14 @@ top: 0; right: 0; margin: 0; - border: solid #000; - border-width: 0 0 100px 200px; opacity: 0; filter: alpha(opacity=0); - -o-transform: translate(250px, -50px) scale(1); - -moz-transform: translate(-300px, 0) scale(4); + transform: translate(-300px, 0) scale(4); + font-size: 23px; direction: ltr; cursor: pointer; + height: 30px; + line-height: 30px; } } } \ No newline at end of file