From db67d2e54264f4bc2cef11214050034558800d1d Mon Sep 17 00:00:00 2001 From: Steffen Date: Sun, 26 Apr 2020 20:11:29 +0200 Subject: [PATCH] curved token names edition icons added refactored token icons --- src/App.vue | 18 +++- src/assets/{ => editions}/bmr-demon.png | Bin src/assets/{ => editions}/bmr-minion.png | Bin src/assets/{ => editions}/bmr-outsider.png | Bin src/assets/{ => editions}/bmr-townsfolk.png | Bin .../{edition-bmr.png => editions/bmr.png} | Bin .../{edition-luf.png => editions/luf.png} | Bin src/assets/{ => editions}/snv-demon.png | Bin src/assets/{ => editions}/snv-minion.png | Bin src/assets/{ => editions}/snv-outsider.png | Bin src/assets/{ => editions}/snv-townsfolk.png | Bin .../{edition-snv.png => editions/snv.png} | Bin src/assets/{ => editions}/tb-demon.png | Bin src/assets/{ => editions}/tb-minion.png | Bin src/assets/{ => editions}/tb-outsider.png | Bin src/assets/{ => editions}/tb-townsfolk.png | Bin .../{edition-tb.png => editions/tb.png} | Bin src/components/Player.vue | 14 ++- src/components/Token.vue | 80 ++++++++++---- src/components/TownSquare.vue | 26 ++--- src/vars.scss | 101 +----------------- 21 files changed, 100 insertions(+), 139 deletions(-) rename src/assets/{ => editions}/bmr-demon.png (100%) rename src/assets/{ => editions}/bmr-minion.png (100%) rename src/assets/{ => editions}/bmr-outsider.png (100%) rename src/assets/{ => editions}/bmr-townsfolk.png (100%) rename src/assets/{edition-bmr.png => editions/bmr.png} (100%) rename src/assets/{edition-luf.png => editions/luf.png} (100%) rename src/assets/{ => editions}/snv-demon.png (100%) rename src/assets/{ => editions}/snv-minion.png (100%) rename src/assets/{ => editions}/snv-outsider.png (100%) rename src/assets/{ => editions}/snv-townsfolk.png (100%) rename src/assets/{edition-snv.png => editions/snv.png} (100%) rename src/assets/{ => editions}/tb-demon.png (100%) rename src/assets/{ => editions}/tb-minion.png (100%) rename src/assets/{ => editions}/tb-outsider.png (100%) rename src/assets/{ => editions}/tb-townsfolk.png (100%) rename src/assets/{edition-tb.png => editions/tb.png} (100%) diff --git a/src/App.vue b/src/App.vue index c76295a..14d3670 100644 --- a/src/App.vue +++ b/src/App.vue @@ -373,9 +373,23 @@ ul { } // Editions -@each $img in $editions { +@each $img, $skipIcons in $editions { .edition-#{$img} { - background-image: url("./assets/edition-#{$img}.png"); + background-image: url("./assets/editions/#{$img}.png"); + } + @if $skipIcons != true { + .edition-#{$img}.townsfolk { + background-image: url("./assets/editions/#{$img}-townsfolk.png"); + } + .edition-#{$img}.outsider { + background-image: url("./assets/editions/#{$img}-outsider.png"); + } + .edition-#{$img}.minion { + background-image: url("./assets/editions/#{$img}-minion.png"); + } + .edition-#{$img}.demon { + background-image: url("./assets/editions/#{$img}-demon.png"); + } } } diff --git a/src/assets/bmr-demon.png b/src/assets/editions/bmr-demon.png similarity index 100% rename from src/assets/bmr-demon.png rename to src/assets/editions/bmr-demon.png diff --git a/src/assets/bmr-minion.png b/src/assets/editions/bmr-minion.png similarity index 100% rename from src/assets/bmr-minion.png rename to src/assets/editions/bmr-minion.png diff --git a/src/assets/bmr-outsider.png b/src/assets/editions/bmr-outsider.png similarity index 100% rename from src/assets/bmr-outsider.png rename to src/assets/editions/bmr-outsider.png diff --git a/src/assets/bmr-townsfolk.png b/src/assets/editions/bmr-townsfolk.png similarity index 100% rename from src/assets/bmr-townsfolk.png rename to src/assets/editions/bmr-townsfolk.png diff --git a/src/assets/edition-bmr.png b/src/assets/editions/bmr.png similarity index 100% rename from src/assets/edition-bmr.png rename to src/assets/editions/bmr.png diff --git a/src/assets/edition-luf.png b/src/assets/editions/luf.png similarity index 100% rename from src/assets/edition-luf.png rename to src/assets/editions/luf.png diff --git a/src/assets/snv-demon.png b/src/assets/editions/snv-demon.png similarity index 100% rename from src/assets/snv-demon.png rename to src/assets/editions/snv-demon.png diff --git a/src/assets/snv-minion.png b/src/assets/editions/snv-minion.png similarity index 100% rename from src/assets/snv-minion.png rename to src/assets/editions/snv-minion.png diff --git a/src/assets/snv-outsider.png b/src/assets/editions/snv-outsider.png similarity index 100% rename from src/assets/snv-outsider.png rename to src/assets/editions/snv-outsider.png diff --git a/src/assets/snv-townsfolk.png b/src/assets/editions/snv-townsfolk.png similarity index 100% rename from src/assets/snv-townsfolk.png rename to src/assets/editions/snv-townsfolk.png diff --git a/src/assets/edition-snv.png b/src/assets/editions/snv.png similarity index 100% rename from src/assets/edition-snv.png rename to src/assets/editions/snv.png diff --git a/src/assets/tb-demon.png b/src/assets/editions/tb-demon.png similarity index 100% rename from src/assets/tb-demon.png rename to src/assets/editions/tb-demon.png diff --git a/src/assets/tb-minion.png b/src/assets/editions/tb-minion.png similarity index 100% rename from src/assets/tb-minion.png rename to src/assets/editions/tb-minion.png diff --git a/src/assets/tb-outsider.png b/src/assets/editions/tb-outsider.png similarity index 100% rename from src/assets/tb-outsider.png rename to src/assets/editions/tb-outsider.png diff --git a/src/assets/tb-townsfolk.png b/src/assets/editions/tb-townsfolk.png similarity index 100% rename from src/assets/tb-townsfolk.png rename to src/assets/editions/tb-townsfolk.png diff --git a/src/assets/edition-tb.png b/src/assets/editions/tb.png similarity index 100% rename from src/assets/edition-tb.png rename to src/assets/editions/tb.png diff --git a/src/components/Player.vue b/src/components/Player.vue index e6bc5c2..7d1df81 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -47,10 +47,20 @@ v-bind:class="[reminder.role]" @click="removeReminder(reminder)" > + {{ reminder.name }} -
+
+ +
@@ -441,7 +451,7 @@ export default { transition: all 200ms; cursor: pointer; - &:before, + .icon, &:after { content: " "; position: absolute; diff --git a/src/components/Token.vue b/src/components/Token.vue index 654e950..ee34579 100644 --- a/src/components/Token.vue +++ b/src/components/Token.vue @@ -1,5 +1,14 @@