From f51f2ea13f6cebf83ed91594cc6fa4179dd6f0c4 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Tue, 12 Jan 2010 14:50:10 +0000 Subject: [PATCH] Made Open button icon scale by optimizing file opening code git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1198 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.css | 20 ++++++++++++++++++++ editor/svg-editor.html | 6 ++---- editor/svg-editor.js | 40 +++++++++++++--------------------------- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 107bcbde..06f8316b 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -442,6 +442,7 @@ span.zoom_tool { cursor: pointer; } +/* div.fileinputs { position: relative; } @@ -460,9 +461,11 @@ div.fileinputs svg { z-index: 2; cursor: pointer; } +*/ /* the file input control is placed on top but made invisible */ /* TODO: is moz-opacity really needed? filter? */ +/* input.file { position: relative; text-align: right; @@ -470,6 +473,23 @@ input.file { filter:alpha(opacity: 0); opacity: 0; } +*/ + +#fileinputs { + position: relative; + overflow: hidden; +} + +#fileinputs input { + -moz-transform: scale(2.0); /* Not entirely necessary, but keeps it nice and big for OS X*/ + height: 100%; + position: absolute; + opacity: 0; + top: -3px; + right: 10px; + margin: 0; + cursor: pointer; /* Sadly doesn't appear to have an effect */ +} #svg_editor .tool_button_current, #svg_editor .push_button_pressed { diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 6e96fff4..e0e310a0 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -85,10 +85,8 @@ script type="text/javascript" src="locale/locale.min.js">
-