Skip to content

Commit

Permalink
fix popover template style
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaetanbrl committed Apr 20, 2022
1 parent 4fd0ff6 commit 36c957c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
11 changes: 1 addition & 10 deletions css/mviewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -1495,6 +1495,7 @@ span.mv-time-player-selection {
.popover-content{
font-size: 13px;
color: #555;
width: max-content;
}

.popover-content a{
Expand Down Expand Up @@ -1658,16 +1659,6 @@ button.btn.btn-default.btn-raised, a#exportpng,a.btn.btn-default {
width: 1px;
z-index: 100;
}
#feature-info .popover-content {
color: white !important;
padding: 10px !important;
}
#feature-info .popover {
background-color: black !important;
}
#feature-info .arrow:after {
border-top-color: black !important;
}

/*******************************
------------- HELP PANEL
Expand Down
3 changes: 2 additions & 1 deletion js/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,8 @@ var info = (function () {
placement: 'top',
animation: false,
html: true,
content: `${title}`,
content: title,
template: mviewer.templates.tooltip
});
$(popup).popover('show');
}
Expand Down
2 changes: 1 addition & 1 deletion js/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mviewer.templates = {};
mviewer.templates.tooltip = [
'<div class="tooltip mv-tooltip" role="tooltip">',
'<div class="mv-tooltip tooltip-arrow"></div>',
'<div class="mv-tooltip tooltip-inner"></div>',
'<div class="mv-tooltip tooltip-inner popover-content"></div>',
'</div>'].join("");

mviewer.templates.theme = [
Expand Down

0 comments on commit 36c957c

Please sign in to comment.