|
1 | 1 | <template>
|
2 | 2 | <div class="card card-outer"
|
3 | 3 | :class="{'selected': card.selected, 'targetable': doingAction && targets.indexOf(card.id) !== -1}">
|
4 |
| -<!-- |
5 |
| - TODO Add ng-FitText.js fields to elements in this model of which length may vary widely, for example card descriptions and flavor text. |
6 |
| - The primary fields for FitText are: |
7 |
| - - data-fittext : Enable FitText for the content inside the tag |
8 |
| - - data-fittext-min="8pt" : Minimum font size allowed |
9 |
| - - data-fittext-max="12pt" : Maximum font size allowed |
10 |
| - --> |
11 |
| - |
12 | 4 | <div class="test" v-if="debugMode">doingAction: {{doingAction}} targets: {{targets}} actions: {{actions}} card: {{card}}</div>
|
13 | 5 | <!-- card name -->
|
14 | 6 | <div>
|
|
31 | 23 | <!-- card statistics -->
|
32 | 24 | <div>
|
33 | 25 | <!-- mana cost -->
|
34 |
| - <div style="float: left; padding: 5px"> |
35 |
| - <button class="btn btn-sm btn-info active fa fa-tint" style="cursor:default">{{card.properties.MANA_COST}}</button> |
| 26 | + <div style="float: left; padding-left: 5px;"> |
| 27 | + <button class="btn btn-sm btn-info active fa fa-tint" style="cursor:default" title="Mana Cost"> |
| 28 | + {{card.properties.MANA_COST}} |
| 29 | + </button> |
36 | 30 | </div>
|
37 |
| - <div style="float: right; padding: 5px;" class="btn-group"> |
| 31 | + <div style="float: right; padding-right: 5px;" class="btn-group"> |
38 | 32 | <!-- attack -->
|
39 |
| - <button class="btn btn-sm btn-danger active fa fa-crosshairs" style="cursor:default">{{card.properties.ATTACK || "-"}}</button> |
| 33 | + <button class="btn btn-sm btn-danger active fa fa-crosshairs" style="cursor:default" title="Attack"> |
| 34 | + {{card.properties.ATTACK || "-"}} |
| 35 | + </button> |
40 | 36 | <!-- health -->
|
41 | 37 | <div class="card-property">
|
42 |
| - <button class="btn btn-sm btn-success active fa fa-heart" style="cursor:default">{{card.properties.HEALTH || "-"}}</button> |
| 38 | + <button class="btn btn-sm btn-success active fa fa-heart" style="cursor:default" title="Health"> |
| 39 | + {{card.properties.HEALTH || "-"}} |
| 40 | + </button> |
43 | 41 | <!-- <dynamic-animation items="card.animations.HEALTH" /> -->
|
44 | 42 | </div>
|
45 | 43 | </div>
|
46 | 44 | </div>
|
47 | 45 | <div style="clear: both;">
|
48 |
| - <div style="float: left; padding: 5px; text-align: center;"> |
| 46 | + <div v-if="card.properties.SCRAP_COST" style="float: left; padding: 5px;"> |
49 | 47 | <!-- scrap cost -->
|
50 |
| - <button v-if="card.properties.SCRAP_COST" class="btn btn-xs btn-primary active fa fa-wrench" style="cursor:default">{{card.properties.SCRAP_COST}}</button> |
| 48 | + <button class="btn btn-sm btn-primary active fa fa-wrench" style="cursor:default" title="Scrap Cost"> |
| 49 | + {{card.properties.SCRAP_COST}} |
| 50 | + </button> |
51 | 51 | </div>
|
52 |
| - <div v-if="card.properties.SCRAP" style="float: left; padding: 5px; text-align: center;"> |
| 52 | + <div v-if="card.properties.SCRAP" style="float: left; padding: 5px;"> |
53 | 53 | <!-- scrap value -->
|
54 |
| - <button class="btn btn-xs btn-primary active fa fa-cog" style="cursor:default">{{card.properties.SCRAP}}</button> |
| 54 | + <button class="btn btn-sm btn-primary active fa fa-cog" style="cursor:default" title="Scrap Value"> |
| 55 | + {{card.properties.SCRAP}} |
| 56 | + </button> |
55 | 57 | </div>
|
56 | 58 | <!-- flavor text -->
|
57 | 59 | <div v-show="card.properties.flavor" style="float: right; padding: 5px; text-align: center;">
|
58 |
| - <b-btn type="button" class="btn btn-xs btn-primary fa fa-book" |
| 60 | + <b-btn type="button" class="btn btn-sm btn-dark fa fa-book" |
59 | 61 | popover-placement="top"
|
60 | 62 | v-b-popover.hover="card.properties.flavor"></b-btn>
|
61 | 63 | </div>
|
62 | 64 | <!-- effect text -->
|
63 | 65 | <div v-show="card.properties.effect" style="float: right; padding: 5px; text-align: center;">
|
64 |
| - <b-btn type="button" class="btn btn-xs btn-warning fa fa-flash" |
| 66 | + <b-btn type="button" class="btn btn-sm btn-secondary fa fa-flash" |
65 | 67 | popover-placement="top"
|
66 | 68 | v-b-popover.hover="card.properties.effect">FX</b-btn>
|
67 | 69 | </div>
|
68 | 70 | </div>
|
69 | 71 | <div class="card-actions">
|
70 |
| - <button class="btn btn-xs btn-navbar csh-button btn-default" v-for="action in actions" |
| 72 | + <button class="btn btn-sm btn-navbar csh-button btn-default" v-for="action in actions" |
71 | 73 | :key="action.action"
|
72 | 74 | v-if="!doingAction && action.id === card.id"
|
73 | 75 | @click="startAction(action)">
|
@@ -131,18 +133,18 @@ export default {
|
131 | 133 |
|
132 | 134 | .card-name {
|
133 | 135 | float: left;
|
134 |
| - padding: 5px; |
| 136 | + padding-left: 5px; |
135 | 137 | font-family: Georgia, Times, "Times New Roman", serif;
|
136 |
| - font-size: 1.2em; |
137 |
| - font-weight: bold; |
| 138 | + font-size: 0.9em; |
| 139 | + /* font-weight: bold; */ |
138 | 140 | }
|
139 | 141 |
|
140 | 142 | .card-type {
|
141 | 143 | clear:both;
|
142 | 144 | padding: 5px;
|
143 | 145 | padding-top: 8px;
|
144 | 146 | font-family: Georgia, Times, "Times New Roman", serif;
|
145 |
| - font-size: 1.1em; |
| 147 | + font-size: 0.9em; |
146 | 148 | }
|
147 | 149 |
|
148 | 150 | .card-actions {
|
|
0 commit comments