add warning icon for setup roles in character assignment modal

This commit is contained in:
Steffen 2021-04-09 21:33:52 +02:00
parent d4e144f0f0
commit 1dae16f924
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
2 changed files with 28 additions and 5 deletions

View File

@ -231,11 +231,21 @@ ul {
}
ul {
li {
.icon { width: 6vh; }
.role { line-height: 100%; }
.name { font-size: 100%; }
.player { font-size: 100%; }
.ability { font-size: 90%; }
.icon {
width: 6vh;
}
.role {
line-height: 100%;
}
.name {
font-size: 100%;
}
.player {
font-size: 100%;
}
.ability {
font-size: 90%;
}
}
}
}

View File

@ -17,6 +17,7 @@
@click="role.selected = role.selected ? 0 : 1"
>
<Token :role="role" />
<font-awesome-icon icon="exclamation-triangle" v-if="role.setup" />
<div class="buttons" v-if="allowMultiple">
<font-awesome-icon
icon="minus-circle"
@ -177,6 +178,9 @@ ul.tokens {
.buttons {
display: flex;
}
.fa-exclamation-triangle {
display: block;
}
}
&.townsfolk {
box-shadow: 0 0 10px $townsfolk, 0 0 10px #004cff;
@ -197,6 +201,15 @@ ul.tokens {
transform: scale(1.2);
z-index: 10;
}
.fa-exclamation-triangle {
position: absolute;
color: red;
filter: drop-shadow(0 0 3px black) drop-shadow(0 0 3px black);
top: 5px;
right: -5px;
font-size: 150%;
display: none;
}
.buttons {
display: none;
position: absolute;