styling improved

This commit is contained in:
Steffen 2020-04-04 17:25:11 +02:00
parent dae4c6465e
commit e139d59aaf
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
3 changed files with 24 additions and 7 deletions

View File

@ -21,7 +21,7 @@
</div> </div>
</transition> </transition>
</template> </template>
<style> <style lang="scss">
.modal-backdrop { .modal-backdrop {
position: fixed; position: fixed;
top: 0; top: 0;
@ -44,6 +44,11 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
max-width: 60%; max-width: 60%;
h2 {
margin: 0;
text-align: center;
}
} }
.modal-fade-enter, .modal-fade-enter,

View File

@ -84,15 +84,24 @@
width: 2/3 * $token; width: 2/3 * $token;
height: 2/3 * $token; height: 2/3 * $token;
left: 50%; left: 50%;
top: 0; top: -30px;
cursor: pointer; cursor: pointer;
opacity: 0; opacity: 0;
transition: opacity 200ms; transform: scale(1.5);
transition: all 200ms;
z-index: 2; z-index: 2;
&:hover { opacity: 0.5; } &:hover {
opacity: 0.5;
top: -10px;
transform: scale(1);
}
} }
&.dead .shroud { opacity: 1; } &.dead .shroud {
opacity: 1;
top: 0;
transform: scale(1);
}
&.dead .name { color: #999; } &.dead .name { color: #999; }
} }
@ -242,7 +251,7 @@
border-radius: 50%; border-radius: 50%;
border: 3px solid black; border: 3px solid black;
box-shadow: 0 0 10px rgba(0,0,0,0.5); box-shadow: 0 0 10px rgba(0,0,0,0.5);
transition: opacity 200ms; transition: all 200ms;
cursor: pointer; cursor: pointer;
&:before, &:after { &:before, &:after {
@ -266,13 +275,14 @@
&.add { &.add {
opacity: 0; opacity: 0;
top: 30px;
&:after { display: none; } &:after { display: none; }
} }
&:hover:before { opacity: 0; } &:hover:before { opacity: 0; }
&:hover:after { opacity: 1; } &:hover:after { opacity: 1; }
} }
.circle li:hover .reminder.add, { opacity: 1; } .circle li:hover .reminder.add, { opacity: 1; top: 0; }
.circle li:hover .reminder.add:before { opacity: 1; } .circle li:hover .reminder.add:before { opacity: 1; }
#townsquare.public .reminder { display: none; } #townsquare.public .reminder { display: none; }

View File

@ -12,6 +12,7 @@
></Player> ></Player>
</ul> </ul>
<Modal v-show="availableReminders.length" @close="closeModal"> <Modal v-show="availableReminders.length" @close="closeModal">
<h2>Choose a reminder token:</h2>
<ul class="reminders"> <ul class="reminders">
<li v-for="reminder in availableReminders" class="reminder" <li v-for="reminder in availableReminders" class="reminder"
v-bind:class="[reminder.role]" v-bind:class="[reminder.role]"
@ -21,6 +22,7 @@
</ul> </ul>
</Modal> </Modal>
<Modal v-show="availableRoles.length" @close="closeModal"> <Modal v-show="availableRoles.length" @close="closeModal">
<h2>Choose a new role:</h2>
<ul class="tokens"> <ul class="tokens">
<li v-for="role in availableRoles" class="token" <li v-for="role in availableRoles" class="token"
v-bind:class="[role.id, role.team]" v-bind:class="[role.id, role.team]"