Skip to content
Snippets Groups Projects
Commit 039d1b19 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

use grid width for tooltips, disabled remaining code in bootstrap/tooltip.js

parent 93bcc22f
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
var timeout = null; var timeout = null;
STUDIP.Tooltip.threshold = 6; STUDIP.Tooltip.threshold = 6;
/*
$(document).on('mouseenter mouseleave focusin focusout', '[data-tooltip],.tooltip:has(.tooltip-content)', function(event) { $(document).on('mouseenter mouseleave focusin focusout', '[data-tooltip],.tooltip:has(.tooltip-content)', function(event) {
let data = $(this).data(); let data = $(this).data();
const visible = event.type === 'mouseenter' || event.type === 'focusin'; const visible = event.type === 'mouseenter' || event.type === 'focusin';
...@@ -32,3 +32,4 @@ $(document).on('mouseenter mouseleave focusin focusout', '[data-tooltip],.toolti ...@@ -32,3 +32,4 @@ $(document).on('mouseenter mouseleave focusin focusout', '[data-tooltip],.toolti
}).on('mouseleave focusout', '.studip-tooltip', function() { }).on('mouseleave focusout', '.studip-tooltip', function() {
$(this).hide(); $(this).hide();
}); });
*/
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
bottom: 100%; bottom: 100%;
display: inline-block; display: inline-block;
left: 50%; left: 50%;
margin-left: -129px; margin-left: -($grid-element-width) / 2 - 10px;
width: 230px; width: $grid-element-width;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment