Skip to content

Commit

Permalink
Add webkit-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrillberg committed Dec 23, 2024
1 parent 9cd9635 commit 6371f9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/javascript/src/assets/styles.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.hoverable {
stroke-width: 0.5px;
filter: brightness(0.7);
-webkit-filter: brightness(0.7);
}

.hoverable:hover {
filter: url(#brightness);
-webkit-filter: url(#brightness);
}

.tooltip .tooltip-text {
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/src/components/Province.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ export default {
province.prepend(provincePath, province.children[0]);
// Add hoverable effect for maneuvers
if (this.isValid) {
this.$refs.province.children[0].classList.add('hoverable');
this.$refs.province.classList.add('hoverable');
} else {
this.$refs.province.children[0].classList.remove('hoverable');
this.$refs.province.classList.remove('hoverable');
}
if (this.provinceWithFight) {
this.$refs.province.children[0].children[0].animate([
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/src/views/Game.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
Clone game
</v-btn>
</v-col>
<v-col class="text-right my-auto mx-2">
<v-col class="text-right my-auto mx-2" v-if="gameData.timeCommitment">

Check warning on line 77 in app/javascript/src/views/Game.vue

View workflow job for this annotation

GitHub Actions / build (16.x)

Attribute "v-if" should go before "class"

Check warning on line 77 in app/javascript/src/views/Game.vue

View workflow job for this annotation

GitHub Actions / build (16.x)

'v-if' should be on a new line
<span><v-icon icon="$timerSand" /> <b>Time Commitment:</b> {{ timeCommitment(gameData.timeCommitment) }}</span>
</v-col>
<v-col
Expand Down

0 comments on commit 6371f9f

Please sign in to comment.