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;
}
text {
background-color: #ffff00;
opacity: 0.6;
}
tspan {
font-weight: bold;
}

View File

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