Add tooltip support and tooltips

This commit is contained in:
Will Toohey
2017-09-04 15:38:54 +10:00
parent 8b9dd6ee1d
commit b180129275
8 changed files with 53 additions and 9 deletions
+22
View File
@@ -26,6 +26,28 @@
background-color: rgb(200,200,200);
}
.tooltip {
visibility: hidden;
font-size: 14px;
margin-left: 6px;
padding: 5px;
border: 1px solid black;
border-radius: 4px;
}
.tooltip:hover, .tooltip:focus, .tooltip:active{
visibility: visible;
}
.tooltip:before {
visibility: visible;
content: ' ? ';
font-size: 20px;
margin-right: 10px;
background: #ddd;
border-radius: 10px;
}
body {
margin: 40px auto;
max-width: 650px;