From e0dbc7e75085aa97bfc67c5a79ea0db3eabf1609 Mon Sep 17 00:00:00 2001 From: Bruno Heridet Date: Thu, 21 Feb 2013 19:56:59 +0000 Subject: [PATCH] moved layers list styling to CSS git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2450 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.css | 13 +++++++++---- editor/svg-editor.js | 2 -- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 0e1d4d15..8708e924 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -189,11 +189,11 @@ select { display: inline-block; position:absolute; top: 1px; - bottom: 0px; - right: 0px; - width: 0px; + bottom: 0; + right: 0; + width: 0; overflow: auto; - margin: 0px; + margin: 0; -moz-user-select: none; -webkit-user-select: none; } @@ -314,6 +314,11 @@ select { cursor: pointer; } +#layerlist td.layername:hover { + color: blue; + font-style: italic; +} + #layerlist tr.layersel td.layername { font-weight: bold; } diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 7e8faa86..6b001f0a 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -3728,11 +3728,9 @@ evt.preventDefault(); }) .mouseover(function(evt){ - $(this).css({'font-style': 'italic', 'color': 'blue'}); toggleHighlightLayer(this.textContent); }) .mouseout(function(evt){ - $(this).css({'font-style': 'normal', 'color': 'black'}); toggleHighlightLayer(); }); $('#layerlist td.layervis').click(function(evt){