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:
Eric Lippmann 2018-05-07 05:42:45 -04:00 committed by GitHub
commit ae192314ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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 {

View File

@ -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
}); });
}); });