blob: e10cf8d84e526f7b110ae8976b1cd9f47333267a (
plain)
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
|
<template>
<li class="ranking-entry">
<div class="ranking-entry__troop">{{ troop }}</div>
<div class="ranking-entry__points">{{ points }}</div>
</li>
</template>
<script>
export default {
name: 'RankingEntry',
props: {
troop: {
type: String,
required: true
},
points: {
type: Number,
required: true
}
}
}
</script>
<style scoped>
.ranking-entry {
width: 100%;
list-style: none;
margin: 5px;
padding: 10px 20px;
border: 2px solid #efefef;
display: grid;
grid-template-columns: 0% 75% 25%;
font-size: 20px;
}
.ranking-entry div {
display: inline-block;
}
.ranking-entry__troop {
text-align: left;
grid-column: 2;
}
.ranking-entry__points {
grid-column: 3;
}
</style>
|