1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-17 23:34:53 +00:00
calibre-web/cps/static/css/popup.css

94 lines
1.5 KiB
CSS
Raw Normal View History

/* http://davidwalsh.name/css-tooltips */
2020-04-27 18:01: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 {
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 {
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 {
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 {
border-bottom: none;
border-top: 9px solid #eee;
top: 100%;
}
2020-04-27 18:01:13 +00:00
.popup.left::before,
.popup.left::after {
left: 20px;
}
2020-04-27 18:01:13 +00:00
.popup.right::before,
.popup.right::after {
left: auto;
right: 20px;
}
2020-04-27 18:01:13 +00:00
.popup.show,
.popup.on {
display: block;
2020-04-27 18:01:13 +00:00
}