Code cosmetics
This commit is contained in:
+12
-15
@@ -1,4 +1,5 @@
|
||||
/* http://davidwalsh.name/css-tooltips */
|
||||
|
||||
/* base CSS element */
|
||||
.popup {
|
||||
background: #eee;
|
||||
@@ -9,10 +10,8 @@
|
||||
position: fixed;
|
||||
max-width: 300px;
|
||||
font-size: 12px;
|
||||
|
||||
display: none;
|
||||
margin-left: 2px;
|
||||
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
@@ -38,7 +37,7 @@
|
||||
}
|
||||
|
||||
/* below */
|
||||
.popup:before {
|
||||
.popup::before {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
border-bottom: 10px solid #eee;
|
||||
@@ -51,7 +50,7 @@
|
||||
content: '';
|
||||
}
|
||||
|
||||
.popup:after {
|
||||
.popup::after {
|
||||
position: absolute;
|
||||
display: inline-block;
|
||||
border-bottom: 9px solid #eee;
|
||||
@@ -64,33 +63,31 @@
|
||||
}
|
||||
|
||||
/* above */
|
||||
.popup.above:before {
|
||||
.popup.above::before {
|
||||
border-bottom: none;
|
||||
border-top: 10px solid #eee;
|
||||
border-top-color: rgba(0, 0, 0, 0.2);
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.popup.above:after {
|
||||
.popup.above::after {
|
||||
border-bottom: none;
|
||||
border-top: 9px solid #eee;
|
||||
top: 100%;
|
||||
}
|
||||
|
||||
.popup.left:before,
|
||||
.popup.left:after
|
||||
{
|
||||
.popup.left::before,
|
||||
.popup.left::after {
|
||||
left: 20px;
|
||||
}
|
||||
|
||||
.popup.right:before,
|
||||
.popup.right:after
|
||||
{
|
||||
.popup.right::before,
|
||||
.popup.right::after {
|
||||
left: auto;
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
|
||||
.popup.show, .popup.on {
|
||||
.popup.show,
|
||||
.popup.on {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user