Files
DiceCloud/app/imports/ui/properties/viewers/AttributeViewer.vue
2019-08-01 14:03:51 +02:00

40 lines
633 B
Vue

<template lang="html">
<div class="attribute-viewer">
<div class="title">
{{model.name}}
</div>
<div class="caption">
({{model.variableName}})
</div>
</div>
</template>
<script>
import numberToSignedString from '/imports/ui/utility/numberToSignedString.js';
export default {
props: {
model: Object,
},
methods: {
numberToSignedString,
},
}
</script>
<style lang="css" scoped>
.ability-value {
font-weight: 600;
font-size: 24px !important;
color: rgba(0, 0, 0, 0.54);
}
.mod, .ability-value {
text-align: center;
width: 100%;
}
.attribute-value {
text-align: center;
}
</style>