use opacity instead of font-weight to prevent jumping of text

This commit is contained in:
Sanj 2011-06-27 20:23:56 +05:30
parent 533ebba80b
commit 7012cff89d
2 changed files with 14 additions and 4 deletions

View File

@ -20,3 +20,11 @@
-webkit-border-radius: 8px; -webkit-border-radius: 8px;
} }
text {
background-color: #ffff00;
opacity: 0.6;
}
tspan {
font-weight: bold;
}

View File

@ -25,13 +25,15 @@ $(function() {
$(window).resize(); $(window).resize();
$.getJSON("radia.json", {}, function(data) { $.getJSON("radia.json", {}, function(data) {
var highlightCSS = { var highlightCSS = {
'fontWeight': 'bold', 'opacity': "1.0"
'backgroundColor': '#ffff00' // 'fontWeight': 'bold',
// 'backgroundColor': '#ffff00'
} }
var unhighlightCSS = { var unhighlightCSS = {
'fontWeight': 'normal', 'opacity': "0.6"
'backgroundColor': '#ffffff' // 'fontWeight': 'normal',
// 'backgroundColor': '#ffffff'
} }
var R = data; var R = data;