Safari :hover issue
Hover state stays :hover when moving from down to up over the tooltips.
by Chris Rebert
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<div class="x">
<h4>
John doe 1
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 2
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 3
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 4
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 5
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 6
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 7
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
<div class="x">
<h4>
John doe 8
<span class="glyphicon glyphicon-star" data-toggle="tooltip" data-placement="top" title="Reset users password"></span>
</h4>
</div>
CSS
@font-face {
font-family: 'Glyphicons Halflings';
src: url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.eot');
src: url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.woff') format('woff'), url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
*, *:before, *:after {
box-sizing: border-box;
}
body {
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333;
background-color: #fff;
margin: 0;
}
h4 {
font-size: 18px;
margin-top: 10px;
margin-bottom: 10px;
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
}
.glyphicon:before {
content: "\e006";
}
.glyphicon {
float: right;
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: 400;
line-height: 1;
-webkit-font-smoothing: antialiased;
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
font-style: normal;
font-weight: normal;
line-height: 1.42857143;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
letter-spacing: normal;
word-break: normal;
word-spacing: normal;
word-wrap: normal;
white-space: normal;
filter: alpha(opacity=0);
opacity: 0;
line-break: auto;
}
.tooltip.in {
filter: alpha(opacity=90);
...
JavaScript
$(function() {
$('[data-toggle="tooltip"]').tooltip()
})