Migrated stats tab to Polymer 1.0

This commit is contained in:
Stefan Zermatten
2017-01-17 15:01:11 +02:00
parent b8fdc27df9
commit 420de9b005
19 changed files with 214 additions and 255 deletions

View File

@@ -29,7 +29,7 @@
<!--Saving Throws-->
<div>
<paper-material class="card">
<div class="top white subhead">
<div class="top white paper-font-subhead">
Saving Throws
</div>
<div flex class="bottom list">
@@ -45,7 +45,7 @@
<!--Skills-->
<div>
<paper-material class="card">
<div class="top white subhead">
<div class="top white paper-font-subhead">
Skills
</div>
<div flex class="bottom list">
@@ -73,21 +73,3 @@
</div>
</div>
</template>
<template name="statCard">
<div>
<paper-material class="card statCard clickable" hero-id="main" {{detailHero stat ../_id}} layout horizontal>
<div class="left display1 white-text {{color}}"
hero-id="toolbar" {{detailHero stat ../_id}}>
{{#if isSkill}}
{{prefix}}{{skillMod}}
{{else}}
{{prefix}}{{characterCalculate "attributeValue" ../_id stat}}
{{/if}}
</div>
<div class="right subhead" flex horizontal layout center>
{{name}}
</div>
</paper-material>
</div>
</template>