Skip to content

Commit

Permalink
Minor responsive updates to the spell bar (#10580)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHollidayInn committed Aug 9, 2018
1 parent 1eb1fe7 commit f1c1ba8
Showing 1 changed file with 40 additions and 26 deletions.
66 changes: 40 additions & 26 deletions website/client/components/tasks/spells.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,50 @@ div(v-if='user.stats.lvl > 10')
.col-4.mana
.img(:class='`shop_${spell.key} shop-sprite item-img`')

drawer(
:title="$t('skillsTitle')",
v-if='user.stats.class && !user.preferences.disableClasses',
v-mousePosition="30",
@mouseMoved="mouseMoved($event)",
:openStatus='openStatus',
@toggled='drawerToggled'
)
div(slot="drawer-slider")
.container.spell-container
.row
.col-3(
@click='castStart(skill)',
v-for='(skill, key) in spells[user.stats.class]',
v-if='user.stats.lvl >= skill.lvl',
v-b-popover.hover.auto='skill.notes()')
.spell.col-12.row
.col-8.details
a(:class='{"disabled": spellDisabled(key)}')
div.img(:class='`shop_${skill.key} shop-sprite item-img`')
span.title {{skill.text()}}
.col-4.mana
.mana-text
.svg-icon(v-html="icons.mana")
div {{skill.mana}}
.drawer-wrapper.d-flex.justify-content-center
drawer(
:title="$t('skillsTitle')",
v-if='user.stats.class && !user.preferences.disableClasses',
v-mousePosition="30",
@mouseMoved="mouseMoved($event)",
:openStatus='openStatus',
@toggled='drawerToggled'
)
div(slot="drawer-slider")
.container.spell-container
.row
.col-12.col-md-3(
@click='castStart(skill)',
v-for='(skill, key) in spells[user.stats.class]',
v-if='user.stats.lvl >= skill.lvl',
v-b-popover.hover.auto='skill.notes()')
.spell.col-12.row
.col-8.details
a(:class='{"disabled": spellDisabled(key)}')
div.img(:class='`shop_${skill.key} shop-sprite item-img`')
span.title {{skill.text()}}
.col-4.mana
.mana-text
.svg-icon(v-html="icons.mana")
div {{skill.mana}}
</template>

<style lang="scss" scoped>
.drawer-wrapper {
width: 100vw;
position: fixed;
bottom: 0;
left: 0;
z-index: 19;
.drawer-container {
left: auto !important;
right: auto !important;
min-width: 60%;
}
}
.drawer-container {
left: calc((100% - 978px) / 2);
}
.drawer-slider {
Expand Down

0 comments on commit f1c1ba8

Please sign in to comment.