tooltip styling

This commit is contained in:
Steffen 2020-04-18 20:21:26 +02:00
parent 30caa1a627
commit 53f2042374
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
3 changed files with 16 additions and 10 deletions

View File

@ -240,7 +240,7 @@ export default {
display: none;
}
.circle .player:hover .ability {
display: block;
opacity: 1;
}
/***** Reminder token *****/

View File

@ -111,6 +111,7 @@ export default {
}
.ability {
display: flex;
position: absolute;
padding: 5px 10px;
top: 20px;
@ -118,26 +119,31 @@ export default {
width: 250px;
z-index: 25;
font-size: 80%;
background: rgba(0, 0, 0, 0.7);
background: rgba(0, 0, 0, 0.5);
border-radius: 10px;
border: 3px solid black;
text-align: left;
display: none;
justify-items: center;
align-content: center;
align-items: center;
pointer-events: none;
opacity: 0;
transition: opacity 200ms ease-in-out;
filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
&:after {
&:before {
content: " ";
border: 10px solid transparent;
position: absolute;
right: 100%;
width: 0;
height: 0;
border-right-color: black;
top: 10px;
margin: 0 2px;
position: absolute;
margin-right: 2px;
right: 100%;
}
}
&:hover .ability {
display: block;
opacity: 1;
}
}
</style>

View File

@ -188,7 +188,7 @@ export default {
.ability {
right: 110%;
left: auto;
&:after {
&:before {
border-right-color: transparent;
border-left-color: black;
right: auto;