2016-07-09 08:54:13 +00:00
|
|
|
/* http://davidwalsh.name/css-tooltips */
|
2020-04-27 18:01:13 +00:00
|
|
|
|
2016-07-09 08:54:13 +00:00
|
|
|
/* base CSS element */
|
|
|
|
.popup {
|
|
|
|
background: #eee;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
|
|
position: fixed;
|
|
|
|
max-width: 300px;
|
|
|
|
font-size: 12px;
|
|
|
|
display: none;
|
|
|
|
margin-left: 2px;
|
|
|
|
margin-top: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup.above {
|
|
|
|
margin-top: -10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup.left {
|
|
|
|
margin-left: -20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.popup.right {
|
|
|
|
margin-left: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pop_content {
|
|
|
|
max-height: 225px;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pop_content > p {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* below */
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup::before {
|
2016-07-09 08:54:13 +00:00
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
border-bottom: 10px solid #eee;
|
|
|
|
border-right: 10px solid transparent;
|
|
|
|
border-left: 10px solid transparent;
|
|
|
|
border-bottom-color: rgba(0, 0, 0, 0.2);
|
|
|
|
left: 50%;
|
|
|
|
top: -10px;
|
|
|
|
margin-left: -6px;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup::after {
|
2016-07-09 08:54:13 +00:00
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
border-bottom: 9px solid #eee;
|
|
|
|
border-right: 9px solid transparent;
|
|
|
|
border-left: 9px solid transparent;
|
|
|
|
left: 50%;
|
|
|
|
top: -9px;
|
|
|
|
margin-left: -5px;
|
|
|
|
content: '';
|
|
|
|
}
|
|
|
|
|
|
|
|
/* above */
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup.above::before {
|
2016-07-09 08:54:13 +00:00
|
|
|
border-bottom: none;
|
|
|
|
border-top: 10px solid #eee;
|
|
|
|
border-top-color: rgba(0, 0, 0, 0.2);
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup.above::after {
|
2016-07-09 08:54:13 +00:00
|
|
|
border-bottom: none;
|
|
|
|
border-top: 9px solid #eee;
|
|
|
|
top: 100%;
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup.left::before,
|
|
|
|
.popup.left::after {
|
2016-07-09 08:54:13 +00:00
|
|
|
left: 20px;
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup.right::before,
|
|
|
|
.popup.right::after {
|
2016-07-09 08:54:13 +00:00
|
|
|
left: auto;
|
|
|
|
right: 20px;
|
|
|
|
}
|
|
|
|
|
2020-04-27 18:01:13 +00:00
|
|
|
.popup.show,
|
|
|
|
.popup.on {
|
2016-07-09 08:54:13 +00:00
|
|
|
display: block;
|
2020-04-27 18:01:13 +00:00
|
|
|
}
|