Skip to content

Commit

Permalink
fix: refactor game manual button style
Browse files Browse the repository at this point in the history
- use css classes instead of overriding base dom elements
- TODO: some manual margin tuning needed for game manual button to
  vertically center / align properly, need to look into why this is
  happening
  • Loading branch information
alee committed Feb 22, 2022
1 parent 313a683 commit c627628
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions client/src/components/game/HUDRightButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<button
v-b-tooltip.hover.top="'Phase Information'"
:class="buttonClass(view.PhaseInformation)"
class="hud-button"
@click="switchCurrentView(view.PhaseInformation)"
>
<font-awesome-icon :icon="['fas', 'info']" class="icon" size="lg" />
Expand All @@ -13,14 +14,15 @@
<button
v-b-tooltip.hover.top="'Active Events'"
:class="buttonClass(view.ActiveEvents)"
class="hud-button"
@click="switchCurrentView(view.ActiveEvents)"
>
<font-awesome-icon :icon="['fas', 'meteor']" class="icon" size="lg" />
</button>
</b-col>
<b-col cols="auto" class="ml-auto">
<b-button class="float-right" v-b-tooltip.hover.top="'Game Manual'" :to="manual" target="_blank">
<font-awesome-icon :icon="['fas', 'question-circle']" class="icon" size="lg" />
<b-col cols="3">
<b-button class="hud-button" v-b-tooltip.hover.top="'Game Manual'" :to="manual" target="_blank">
<font-awesome-icon :icon="['fas', 'question-circle']" class="icon mt-2" size="lg" />
</b-button>
</b-col>
</b-row>
Expand Down Expand Up @@ -67,7 +69,7 @@ export default class HUDRightButtons extends Vue {
</script>

<style lang="scss" scoped>
button {
.hud-button {
@include reset-button;
height: 3rem;
width: 3rem;
Expand Down

0 comments on commit c627628

Please sign in to comment.