-
Notifications
You must be signed in to change notification settings - Fork 84
/
role-picker.vue
69 lines (59 loc) 路 1.8 KB
/
role-picker.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<template>
<transition enter-active-class="fadeInUp" leave-active-class="fadeOutDown">
<div v-show="show" class="role-picker">
<i class="ion-android-close close" @click="close()"></i>
<div class="header">Select {{ selectingFirst ? 'First' : 'Second' }} Role</div>
<a class="role" @click="select(role.key)" v-for="role in ROLES">
<img :src="roleImage(role.key)">
<span>{{ role.name }}</span>
</a>
</div>
</transition>
</template>
<script lang="ts" src="./role-picker.ts"></script>
<style lang="stylus" scoped>
.fadeInUp, .fadeOutDown
animation-duration 0.4s !important
.role-picker
position absolute
top 165px
left 0
right 0
bottom 0
z-index 2
display flex
flex-direction column
align-items center
background-image url(../../static/magic-background.jpg)
background-repeat no-repeat
background-size cover
color #f0e6d3
.close
position absolute
top 22px
right 40px
font-size 70px
& > .header
width 100%
text-align center
border-bottom 1px solid lightgray
margin-top 20px
padding-bottom 20px
font-family "LoL Body"
font-size 60px
.role
box-sizing border-box
padding 10px
width 100%
display flex
align-items center
border-bottom 1px solid #cdbe93
font-family "LoL Display"
font-size 60px
&:active span, &:active img
opacity 0.7
span
margin-left 30px
img
margin-left 10px
</style>