Merge pull request #3430 from Icinga/fix/transparent-tooltip-texts-3418
tipsy: Don't use opacity but rgba to avoid having transparent text
This commit is contained in:
commit
ae192314ee
|
@ -300,6 +300,7 @@ ul.tree li a.error:hover {
|
||||||
font-size: @font-size-small;
|
font-size: @font-size-small;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
background-color: rgba(0,0,0,0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-label span {
|
.progress-label span {
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
var $el = $(this);
|
var $el = $(this);
|
||||||
$el.attr('title', $el.data('title-rich') || $el.attr('title'));
|
$el.attr('title', $el.data('title-rich') || $el.attr('title'));
|
||||||
});
|
});
|
||||||
$('svg .chart-data', el).tipsy({ gravity: 'se', html: true });
|
$('svg .chart-data', el).tipsy({ gravity: 'se', html: true, opacity: 1 });
|
||||||
$('i[title]', el).tipsy({ gravity: $.fn.tipsy.autoNS, offset: 2 });
|
$('i[title]', el).tipsy({ gravity: $.fn.tipsy.autoNS, offset: 2, opacity: 1 });
|
||||||
$('[title]', el).each(function (i, el) {
|
$('[title]', el).each(function (i, el) {
|
||||||
var $el = $(el);
|
var $el = $(el);
|
||||||
var delay, gravity;
|
var delay, gravity;
|
||||||
|
@ -48,7 +48,8 @@
|
||||||
delay = delay === undefined ? 500 : delay;
|
delay = delay === undefined ? 500 : delay;
|
||||||
$el.tipsy({
|
$el.tipsy({
|
||||||
gravity: gravity || $.fn.tipsy.autoNS,
|
gravity: gravity || $.fn.tipsy.autoNS,
|
||||||
delayIn: delay
|
delayIn: delay,
|
||||||
|
opacity: 1
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue