diff --git a/editor/images/dropdown.gif b/editor/images/dropdown.gif new file mode 100644 index 00000000..4180d5eb Binary files /dev/null and b/editor/images/dropdown.gif differ diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 9357d80c..56bb75d5 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -185,8 +185,6 @@ div.color_block { vertical-align:12px; } -/* TODO: figure out why there is a couple pixels between - the tools with a flyout arrow */ #svg_editor .flyout_arrow_horiz { float: right; position: relative; @@ -195,6 +193,63 @@ div.color_block { margin-bottom: -13px; } +#zoom_panel { + width: 133px; +} + +#zoom { + width: 3em; +} + +#svg_editor #tools_top #zoom_dropdown { + position: relative; + float: right; + left: -5px; +} + +#zoom_dropdown button { + background: transparent 3px 8px url('images/dropdown.gif') no-repeat; + width: 15px; + height: 21px; + margin: 6px 0 0 3px; + padding: 0; + border-left: 1px solid #FFFFFF; + border-top: 1px solid #FFFFFF; + border-right: 1px solid #808080; + border-bottom: 1px solid #808080; +} + +#zoom_dropdown button.down { + border-left: 1px solid #808080; + border-top: 1px solid #808080; + border-right: 1px solid #FFFFFF; + border-bottom: 1px solid #FFFFFF; + background-color: #B0B0B0; +} + +#zoom_dropdown ul { + list-style: none; + position: absolute; + margin: 0; + padding: 0; + left: -93px; + top: 30px; + display: none; +} + +#zoom_dropdown li { + display: block; + width: 100px; + padding: 4px; + background: #E8E8E8; + border: 1px solid #B0B0B0; + margin: 0 0 -1px 0; +} + +#zoom_dropdown li:hover { + background-color: #B0B0B0; +} + #svg_editor .tool_button, #svg_editor .tool_button_current, #svg_editor .tool_button_disabled { height: 24px; width: 24px; diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 48b71001..33c67da5 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -58,10 +58,25 @@ -
zoom:
+