use opacity instead of font-weight to prevent jumping of text
This commit is contained in:
parent
533ebba80b
commit
7012cff89d
|
@ -20,3 +20,11 @@
|
|||
-webkit-border-radius: 8px;
|
||||
}
|
||||
|
||||
text {
|
||||
background-color: #ffff00;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
tspan {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
10
radia.js
10
radia.js
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user