Character Abilities and general stats implemented as Material Cards
This commit is contained in:
@@ -1,38 +1,42 @@
|
||||
.profIcon{
|
||||
display: inline-block;
|
||||
width: 23px;
|
||||
height: 14px;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
position: relative;
|
||||
top: 1px;
|
||||
display: inline-block;
|
||||
width: 23px;
|
||||
height: 14px;
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
|
||||
position: relative;
|
||||
top: 1px;
|
||||
|
||||
/*TODO fix the actual images and remove inversion*/
|
||||
-webkit-filter: invert(100%);
|
||||
opacity: 0.54;
|
||||
}
|
||||
|
||||
table.skillTable td:nth-of-type(2) {
|
||||
text-align: right;
|
||||
table.skillTable td:nth-of-type(2) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
table.skillTable td:nth-of-type(3) {
|
||||
padding-left: 8px;
|
||||
table.skillTable td:nth-of-type(3) {
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
td.fail {
|
||||
color: #AF0000;
|
||||
color: #AF0000;
|
||||
}
|
||||
|
||||
.advantage{
|
||||
background-image: url(/png/advantage/greenUp.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url(/png/advantage/greenUp.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.disadvantage{
|
||||
background-image: url(/png/advantage/redDown.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-image: url(/png/advantage/redDown.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
td.conditionals::after{
|
||||
content: "*";
|
||||
}
|
||||
content: "*";
|
||||
}
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#stats{
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
@@ -1,80 +1,80 @@
|
||||
<template name="stats">
|
||||
<div id="stats">
|
||||
<div>
|
||||
<div id="abilities">
|
||||
{{> bigAbilities}}
|
||||
</div>
|
||||
<div id="savesAndSkills">
|
||||
{{> skills}}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div id="armor">
|
||||
{{attributeValue "armor"}}
|
||||
</div>
|
||||
<div id="initiative">
|
||||
{{attributeValue "initiative"}}
|
||||
</div>
|
||||
<div id="proficiencyBonus">
|
||||
{{attributeValue "proficiencyBonus"}}
|
||||
</div>
|
||||
<div id="speed">
|
||||
{{attributeValue "speed"}}
|
||||
</div>
|
||||
<div id="passivePerception">
|
||||
{{passiveSkill "perception"}}
|
||||
</div>
|
||||
<div id="hitDice">
|
||||
{{> hitDice "d6HitDice"}}
|
||||
{{> hitDice "d8HitDice"}}
|
||||
{{> hitDice "d10HitDice"}}
|
||||
{{> hitDice "d12HitDice"}}
|
||||
</div>
|
||||
<div id="spellSlots">
|
||||
{{# if canCast}}
|
||||
{{> spellSlots}}
|
||||
{{/if}}
|
||||
</div>
|
||||
<div id="rages">
|
||||
{{# if attributeBase "rages"}}
|
||||
{{attributeValue "rages"}}/{{attributeBase "rages"}} rages
|
||||
{{/if}}
|
||||
</div>
|
||||
<div id="sorceryPoints">
|
||||
{{# if attributeBase "sorceryPoints"}}
|
||||
{{attributeValue "sorceryPoints"}}/{{attributeBase "sorceryPoints"}} Sorcery Points
|
||||
{{/if}}
|
||||
</div>
|
||||
<div id="expertiseDice">
|
||||
{{# if attributeBase "expertiseDice"}}
|
||||
{{attributeValue "expertiseDice"}}/{{attributeBase "expertiseDice"}} Expertise Dice
|
||||
{{/if}}
|
||||
</div>
|
||||
<div id="superiorityDice">
|
||||
{{# if attributeBase "superiorityDice"}}
|
||||
{{attributeValue "superiorityDice"}}/{{attributeBase "superiorityDice"}} Superiority Dice
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="stats">
|
||||
{{> abilityCards}}
|
||||
<paper-shadow class="card" id="armor">
|
||||
<h1>{{attributeValue "armor"}}</h1>
|
||||
<p class="caption">Armor</p>
|
||||
</paper-shadow>
|
||||
<paper-shadow class="card" id="initiative">
|
||||
<h1>{{skillMod "initiative"}}</h1>
|
||||
<p class="caption">Initiative</p>
|
||||
</paper-shadow>
|
||||
<paper-shadow class="card" id="proficiencyBonus">
|
||||
<h1>{{attributeValue "proficiencyBonus"}}</h1>
|
||||
<p class="caption">Proficiency Bonus</p>
|
||||
</paper-shadow>
|
||||
<paper-shadow class="card" id="speed">
|
||||
<h1>{{attributeValue "speed"}}</h1>
|
||||
<p class="caption">Speed</p>
|
||||
</paper-shadow>
|
||||
<paper-shadow class="card" id="passivePerception">
|
||||
<h1>{{passiveSkill "perception"}}</h1>
|
||||
<p class="caption">Passive Perception</p>
|
||||
</paper-shadow>
|
||||
<paper-shadow class="card" id="hitDice">
|
||||
<h1>{{> hitDice hitDice="d6HitDice" d="6"}}</h1>
|
||||
<h1>{{> hitDice hitDice="d8HitDice" d="8"}}</h1>
|
||||
<h1>{{> hitDice hitDice="d10HitDice" d="10"}}</h1>
|
||||
<h1>{{> hitDice hitDice="d12HitDice" d="12"}}</h1>
|
||||
<p class="caption">Hit Dice</p>
|
||||
</paper-shadow>
|
||||
{{# if canCast}}
|
||||
<paper-shadow class="card" id="spellSlots">
|
||||
<h1>{{> spellSlots}}</h1>
|
||||
<p class="caption">Spell Slots</p>
|
||||
</paper-shadow>
|
||||
{{/if}}
|
||||
{{# if attributeBase "rages"}}
|
||||
<paper-shadow class="card" id="rages">
|
||||
<h1>{{attributeValue "rages"}}</h1>
|
||||
<p class="caption">rages</p>
|
||||
</paper-shadow>
|
||||
{{/if}}
|
||||
{{# if attributeBase "sorceryPoints"}}
|
||||
<paper-shadow class="card" id="sorceryPoints">
|
||||
<h1>{{attributeValue "sorceryPoints"}}</h1>
|
||||
<p class="caption">Sorcery Points</p>
|
||||
</paper-shadow>
|
||||
{{/if}}
|
||||
{{# if attributeBase "expertiseDice"}}
|
||||
<paper-shadow class="card" id="expertiseDice">
|
||||
<h1>{{attributeValue "expertiseDice"}}</h1>
|
||||
<p class="caption">Expertise Dice</p>
|
||||
</paper-shadow>
|
||||
{{/if}}
|
||||
{{# if attributeBase "superiorityDice"}}
|
||||
<paper-shadow class="card" id="superiorityDice">
|
||||
<h1>{{attributeValue "superiorityDice"}}</h1>
|
||||
<p class="caption">Superiority Dice</p>
|
||||
</paper-shadow>
|
||||
{{/if}}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template name="hitDice">
|
||||
{{# if ../attributeBase hitDice}}
|
||||
<div id={{hitDice}}>
|
||||
{{../attributeValue hitDice}}/{{../attributeBase hitDice}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{# if ../attributeBase hitDice}}
|
||||
{{../attributeValue hitDice}}d{{d}} + {{../abilityMod "constitution"}}
|
||||
{{/if}}
|
||||
</template>
|
||||
|
||||
<template name="spellSlots">
|
||||
{{attributevalue "level1SpellSlots"}}
|
||||
{{attributevalue "level2SpellSlots"}}
|
||||
{{attributevalue "level3SpellSlots"}}
|
||||
{{attributevalue "level4SpellSlots"}}
|
||||
{{attributevalue "level5SpellSlots"}}
|
||||
{{attributevalue "level6SpellSlots"}}
|
||||
{{attributevalue "level7SpellSlots"}}
|
||||
{{attributevalue "level8SpellSlots"}}
|
||||
{{attributevalue "level9SpellSlots"}}
|
||||
</template>
|
||||
{{attributevalue "level1SpellSlots"}}
|
||||
{{attributevalue "level2SpellSlots"}}
|
||||
{{attributevalue "level3SpellSlots"}}
|
||||
{{attributevalue "level4SpellSlots"}}
|
||||
{{attributevalue "level5SpellSlots"}}
|
||||
{{attributevalue "level6SpellSlots"}}
|
||||
{{attributevalue "level7SpellSlots"}}
|
||||
{{attributevalue "level8SpellSlots"}}
|
||||
{{attributevalue "level9SpellSlots"}}
|
||||
</template>
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
<template name="abilityCards">
|
||||
{{> strengthCard}}
|
||||
{{> dexterityCard}}
|
||||
{{> constitutionCard}}
|
||||
{{> intelligenceCard}}
|
||||
{{> wisdomCard}}
|
||||
{{> charismaCard}}
|
||||
</template>
|
||||
|
||||
<template name="strengthCard">
|
||||
<paper-shadow class="card double">
|
||||
<h1>Strength</h1>
|
||||
<h1>{{attributeValue "strength"}}</h1>
|
||||
<h2>{{abilityMod "strength"}}</h2>
|
||||
<hr>
|
||||
<table>
|
||||
{{> skillRow name="Strength Save" skill="strengthSave"}}
|
||||
{{> skillRow name="Athletics" skill="athletics"}}
|
||||
</table>
|
||||
</paper-shadow>
|
||||
</template>
|
||||
|
||||
<template name="dexterityCard">
|
||||
<paper-shadow class="card double">
|
||||
<h1>Dexterity</h1>
|
||||
<h1>{{attributeValue "dexterity"}}</h1>
|
||||
<h2>{{abilityMod "dexterity"}}</h2>
|
||||
<hr>
|
||||
<table>
|
||||
{{> skillRow name="Dexterity Save" skill="dexteritySave"}}
|
||||
{{> skillRow name="Acrobatics" skill="acrobatics"}}
|
||||
{{> skillRow name="Sleight of Hand" skill="sleightOfHand"}}
|
||||
{{> skillRow name="Stealth" skill="stealth"}}
|
||||
</table>
|
||||
</paper-shadow>
|
||||
</template>
|
||||
|
||||
<template name="constitutionCard">
|
||||
<paper-shadow class="card double">
|
||||
<h1>Constitution</h1>
|
||||
<h1>{{attributeValue "constitution"}}</h1>
|
||||
<h2>{{abilityMod "constitution"}}</h2>
|
||||
<hr>
|
||||
<table>
|
||||
{{> skillRow name="Constitution Save" skill="constitutionSave"}}
|
||||
</table>
|
||||
</paper-shadow>
|
||||
</template>
|
||||
|
||||
<template name="intelligenceCard">
|
||||
<paper-shadow class="card double">
|
||||
<h1>Intelligence</h1>
|
||||
<h1>{{attributeValue "intelligence"}}</h1>
|
||||
<h2>{{abilityMod "intelligence"}}</h2>
|
||||
<hr>
|
||||
<table>
|
||||
{{> skillRow name="Intelligence Save" skill="intelligenceSave"}}
|
||||
{{> skillRow name="Arcana" skill="arcana"}}
|
||||
{{> skillRow name="History" skill="history"}}
|
||||
{{> skillRow name="Investigation" skill="investigation"}}
|
||||
{{> skillRow name="Nature" skill="nature"}}
|
||||
{{> skillRow name="Religion" skill="religion"}}
|
||||
</table>
|
||||
</paper-shadow>
|
||||
</template>
|
||||
|
||||
<template name="wisdomCard">
|
||||
<paper-shadow class="card double">
|
||||
<h1>Wisdom</h1>
|
||||
<h1>{{attributeValue "wisdom"}}</h1>
|
||||
<h2>{{abilityMod "wisdom"}}</h2>
|
||||
<hr>
|
||||
<table>
|
||||
{{> skillRow name="Wisdom Save" skill="wisdomSave"}}
|
||||
{{> skillRow name="Animal Handling" skill="animalHandling"}}
|
||||
{{> skillRow name="Insight" skill="insight"}}
|
||||
{{> skillRow name="Medicine" skill="medicine"}}
|
||||
{{> skillRow name="Perception" skill="perception"}}
|
||||
{{> skillRow name="Survival" skill="survival"}}
|
||||
</table>
|
||||
</paper-shadow>
|
||||
</template>
|
||||
|
||||
<template name="charismaCard">
|
||||
<paper-shadow class="card double">
|
||||
<h1>Charisma</h1>
|
||||
<h1>{{attributeValue "charisma"}}</h1>
|
||||
<h2>{{abilityMod "charisma"}}</h2>
|
||||
<hr>
|
||||
<table>
|
||||
{{> skillRow name="Charisma Save" skill="charismaSave"}}
|
||||
{{> skillRow name="Deception" skill="deception"}}
|
||||
{{> skillRow name="Intimidation" skill="intimidation"}}
|
||||
{{> skillRow name="Performance" skill="performance"}}
|
||||
{{> skillRow name="Persuasion" skill="persuasion"}}
|
||||
</table>
|
||||
</paper-shadow>
|
||||
</template>
|
||||
@@ -29,10 +29,10 @@
|
||||
|
||||
<core-animated-pages selected={{selectedTab}} transitions="slide-from-right">
|
||||
<div>{{> stats}}</div>
|
||||
<div>{{> features}}</div>
|
||||
<div>{{> persona}}</div>
|
||||
<div>{{> inventory}}</div>
|
||||
<div>{{> spellBook}}</div>
|
||||
<div>{{> journal}}</div>
|
||||
<div>features</div>
|
||||
<div>persona</div>
|
||||
<div>inventory</div>
|
||||
<div>spellBook</div>
|
||||
<div>journal</div>
|
||||
</core-animated-pages>
|
||||
</template>
|
||||
|
||||
@@ -1,33 +1,119 @@
|
||||
root {
|
||||
display: block;
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
|
||||
margin: 0;
|
||||
color: #333;
|
||||
overflow-x: hidden;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial;
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body.core-narrow {
|
||||
padding: 8px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.calculatedValue {
|
||||
color: #021C33;
|
||||
font-weight: bold;
|
||||
color: #021C33;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
h1, .headline {
|
||||
font-size: 24px;
|
||||
font-weight: 400;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.87);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
}
|
||||
h2, .title {
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.87);
|
||||
letter-spacing: 0.005;
|
||||
}
|
||||
|
||||
h3, .subhead {
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
margin: 0;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.87);
|
||||
letter-spacing: 0.010;
|
||||
}
|
||||
|
||||
.body2 {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.87);
|
||||
letter-spacing: 0.010;
|
||||
}
|
||||
|
||||
p, .body1, body {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.87);
|
||||
letter-spacing: 0.010;
|
||||
}
|
||||
|
||||
.caption{
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.54);
|
||||
letter-spacing: 0.020;
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: #444;
|
||||
opacity: 0.12;
|
||||
border-width: 0;
|
||||
color: #444;
|
||||
height: 1px;
|
||||
line-height: 0;
|
||||
margin: 0 -16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
paper-button {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
text-transform: uppercase;
|
||||
color: #000;
|
||||
color: rgba(0,0,0,0.87);
|
||||
letter-spacing: 0.010;
|
||||
}
|
||||
|
||||
.card {
|
||||
width: 148px;
|
||||
margin: 4px;
|
||||
padding: 16px;
|
||||
font-size: 14px;
|
||||
border-radius: 2px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.card.double {
|
||||
width: 304px;
|
||||
}
|
||||
|
||||
.card paper-button {
|
||||
font-size: 14px;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
|
||||
.grey-background, body {
|
||||
background-color: #E0E0E0;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<link rel="import" href="bower_components/paper-tabs/paper-tabs.html">
|
||||
<link rel="import" href="bower_components/core-animated-pages/core-animated-pages.html">
|
||||
<link rel="import" href="bower_components/core-animated-pages/transitions/slide-from-right.html">
|
||||
<link rel="import" href="bower_components/paper-shadow/paper-shadow.html">
|
||||
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic,900,900italic,100italic,100&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
|
||||
<script type='text/javascript' id='lt_ws' src='http://localhost:57539/socket.io/lighttable/ws.js'></script>
|
||||
</head>
|
||||
|
||||
|
||||
3
rpg-docs/client/views/loading/loading.css
Normal file
3
rpg-docs/client/views/loading/loading.css
Normal file
@@ -0,0 +1,3 @@
|
||||
paper-spinner.red::shadow .circle {
|
||||
border-color: #db4437;
|
||||
}
|
||||
3
rpg-docs/client/views/loading/loading.html
Normal file
3
rpg-docs/client/views/loading/loading.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<template name="loading">
|
||||
<paper-spinner class="red" active></paper-spinner>
|
||||
</template>
|
||||
Reference in New Issue
Block a user