Commit 10e89f68 by Torkel Ödegaard

small tweek to plot hover and annotation hover tooltip css

parent 551b802d
......@@ -10,18 +10,6 @@ function ($) {
$.fn.place_tt = (function () {
var defaults = {
offset: 5,
css: {
position : 'absolute',
top : -1000,
left : 0,
color : "#c8c8c8",
padding : '10px',
'font-size': '11pt',
'font-weight' : 200,
'background-color': '#1f1f1f',
'border-radius': '5px',
'z-index': 9999
}
};
return function (x, y, opts) {
......@@ -29,7 +17,8 @@ function ($) {
return this.each(function () {
var $tooltip = $(this), width, height;
$tooltip.css(opts.css);
$tooltip.addClass('grafana-tooltip');
if (!$.contains(document.body, $tooltip[0])) {
$tooltip.appendTo(document.body);
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -460,7 +460,6 @@ select.grafana-target-segment-input {
width: 200px;
text-align: center;
cursor: auto;
//background: rgba(50,50,50,0.8);
padding: 10px;
}
......@@ -475,3 +474,16 @@ select.grafana-target-segment-input {
display: block;
}
}
.grafana-tooltip {
position : absolute;
top: -1000;
left: 0;
color: #c8c8c8;
padding: 10px;
font-size: 11pt;
font-weight : 200;
background-color: rgb(58, 57, 57);
border-radius: 5px;
z-index: 9999;
}
......@@ -127,3 +127,5 @@
padding: 5px;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment