diff --git a/rpg-docs/client/style/cards.scss b/rpg-docs/client/style/cards.scss index 56e345d3..e6f99bf9 100644 --- a/rpg-docs/client/style/cards.scss +++ b/rpg-docs/client/style/cards.scss @@ -56,7 +56,7 @@ $thinColumnWidth: 240px; padding: 16px; border-radius: 0 0 2px 2px; &.list { - padding: 0 0 16px 0; + padding: 16px 0; .subhead { color: rgba(0,0,0,0.54); font-size: 14px; diff --git a/rpg-docs/client/style/listItem.scss b/rpg-docs/client/style/listItem.scss index 9d5f717f..7feae752 100644 --- a/rpg-docs/client/style/listItem.scss +++ b/rpg-docs/client/style/listItem.scss @@ -3,7 +3,7 @@ List items */ .item-slot { background-color: rgb(232, 232, 232); - background-color: rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.1); } .item { @@ -30,7 +30,7 @@ List items box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.37); z-index: 10; } - core-icon, paper-icon-button { + iron-icon, paper-icon-button { color: #747474; color: rgba(0,0,0,0.54); } diff --git a/rpg-docs/client/style/main.scss b/rpg-docs/client/style/main.scss index e8ac388a..4a94d7ff 100644 --- a/rpg-docs/client/style/main.scss +++ b/rpg-docs/client/style/main.scss @@ -35,14 +35,6 @@ hr { text-align: center; } -/* - Stop all links from formatting themselves - */ -a { - text-decoration: none; - color: inherit; -} - .avatar { display: inline-block; box-sizing: border-box; diff --git a/rpg-docs/client/views/GeneralCSS/typography.css b/rpg-docs/client/views/GeneralCSS/typography.css index f97cb577..5c770053 100644 --- a/rpg-docs/client/views/GeneralCSS/typography.css +++ b/rpg-docs/client/views/GeneralCSS/typography.css @@ -1,107 +1,35 @@ -.display2 { - font-size: 45px; - font-weight: 400; - color: #000; - color: rgba(0,0,0,0.54); - letter-spacing: 0; -} - -.white-text .display2{ +.white-text .paper-font-display2{ color: rgba(255,255,255,0.54); } -.display1 { - font-size: 34px; - font-weight: 400; - color: #000; - color: rgba(0,0,0,0.54); - letter-spacing: 0; -} - -.white-text .display1, .white-text.display1{ +.white-text .paper-font-display1, .white-text.paper-font-display1{ color: rgba(255,255,255,0.54); } -h1, .headline { - font-size: 24px; - font-weight: 400; - margin: 0; - color: #000; - color: rgba(0,0,0,0.87); - letter-spacing: 0; -} - -.white-text h1, .white-text .headline, .white-text.headline{ +.white-text h1, .white-text .paper-font-headline, .white-text.paper-font-headline{ color: rgba(255,255,255,0.87); } -h2, .title { - font-size: 20px; - font-weight: 500; - margin: 0; - color: #000; - color: rgba(0,0,0,0.87); - letter-spacing: 0.005em; -} - -.white-text h2, .white-text .title, .white-text.title{ +.white-text h2, .white-text .paper-font-title, .white-text.paper-font-title{ color: rgba(255,255,255,0.87); } -h3, .subhead { - font-size: 16px; - font-weight: 400; - margin: 0; - color: #000; - color: rgba(0,0,0,0.87); - letter-spacing: 0.010em; -} - -.white-text h3, .white-text .subhead{ +.white-text h3, .white-text .paper-font-subhead{ color: rgba(255,255,255,0.87); } -.body2 { - font-size: 14px; - font-weight: 500; - color: #000; - color: rgba(0,0,0,0.87); - letter-spacing: 0.010em; -} - -.white-text .body2{ +.white-text .paper-font-body2{ color: rgba(255,255,255,0.87); } -p, .body1, body { - font-size: 14px; - font-weight: 400; - margin: 0; - color: #000; - color: rgba(0,0,0,0.87); - letter-spacing: 0.010em; -} - -.white-text p, .white-text .body1{ +.white-text p, .white-text .paper-font-body1{ color: rgba(255,255,255,0.87); } -.caption{ - font-size: 12px; - font-weight: 400; - color: #000; - color: rgba(0,0,0,0.54); - letter-spacing: 0.020em; -} - -.white-text .caption{ +.white-text .paper-font-caption{ color: rgba(255,255,255,0.54); } -html /deep/ .white-text{ - color: #fff; -} - .black54 { color: #444; color: rgba(0,0,0,0.54); diff --git a/rpg-docs/client/views/character/characterSheet.html b/rpg-docs/client/views/character/characterSheet.html index 1f1bcedc..f0633235 100644 --- a/rpg-docs/client/views/character/characterSheet.html +++ b/rpg-docs/client/views/character/characterSheet.html @@ -1,54 +1,56 @@ diff --git a/rpg-docs/client/views/character/stats/abilityCards/abilityCards.css b/rpg-docs/client/views/character/stats/abilityCards/abilityCards.css new file mode 100644 index 00000000..52be38a1 --- /dev/null +++ b/rpg-docs/client/views/character/stats/abilityCards/abilityCards.css @@ -0,0 +1,23 @@ +.ability-mini-card { + min-width: 75px; + text-align: center; + cursor: pointer; + -webkit-margin-collapse: separate; + background: #fff; +} + +.ability-mini-card .title { + padding: 16px; +} + +.ability-mini-card .numbers { + min-width: 72px; + padding: 16px; +} + +.ability-mini-card .modifier { + font-weight: 600; + font-size: 24px; + color: #747474; + color: rgba(0,0,0,0.54); +} diff --git a/rpg-docs/client/views/character/stats/abilityCards/abilityCards.html b/rpg-docs/client/views/character/stats/abilityCards/abilityCards.html index 3a05ec9e..fb21d972 100644 --- a/rpg-docs/client/views/character/stats/abilityCards/abilityCards.html +++ b/rpg-docs/client/views/character/stats/abilityCards/abilityCards.html @@ -1,16 +1,17 @@ diff --git a/rpg-docs/client/views/character/stats/healthCard/healthCard.html b/rpg-docs/client/views/character/stats/healthCard/healthCard.html index 3a9ee647..26abe189 100644 --- a/rpg-docs/client/views/character/stats/healthCard/healthCard.html +++ b/rpg-docs/client/views/character/stats/healthCard/healthCard.html @@ -1,31 +1,28 @@ diff --git a/rpg-docs/client/views/character/stats/skillRow/skillRow.js b/rpg-docs/client/views/character/stats/skillRow/skillRow.js index fae6145a..20915294 100644 --- a/rpg-docs/client/views/character/stats/skillRow/skillRow.js +++ b/rpg-docs/client/views/character/stats/skillRow/skillRow.js @@ -12,7 +12,7 @@ Template.skillRow.helpers({ if (prof > 0 && prof < 1) return "image:brightness-2"; if (prof === 1) return "image:brightness-1"; if (prof > 1) return "av:album"; - return "radio-button-off"; + return "radio-button-unchecked"; }, failSkill: function(){ var charId = Template.parentData()._id; diff --git a/rpg-docs/client/views/character/stats/statCard/statCard.css b/rpg-docs/client/views/character/stats/statCard/statCard.css new file mode 100644 index 00000000..04a9250e --- /dev/null +++ b/rpg-docs/client/views/character/stats/statCard/statCard.css @@ -0,0 +1,16 @@ +.stat-card { + min-width: 75px; + text-align: center; + cursor: pointer; + -webkit-margin-collapse: separate; + background: #fff; +} + +.stat-card .title { + padding: 16px; +} + +.stat-card .numbers { + min-width: 72px; + padding: 16px; +} diff --git a/rpg-docs/client/views/character/stats/statCard/statCard.html b/rpg-docs/client/views/character/stats/statCard/statCard.html new file mode 100644 index 00000000..997a6df5 --- /dev/null +++ b/rpg-docs/client/views/character/stats/statCard/statCard.html @@ -0,0 +1,16 @@ + diff --git a/rpg-docs/client/views/character/stats/statCard/statCard.js b/rpg-docs/client/views/character/stats/statCard/statCard.js new file mode 100644 index 00000000..32a89cad --- /dev/null +++ b/rpg-docs/client/views/character/stats/statCard/statCard.js @@ -0,0 +1,9 @@ +Template.statCard.helpers({ + skillMod: function() { + return signedString( + Characters.calculate.skillMod( + Template.parentData()._id, this.stat + ) + ); + }, +}); diff --git a/rpg-docs/client/views/character/stats/stats.html b/rpg-docs/client/views/character/stats/stats.html index 3f3df6ab..2e33a9ba 100644 --- a/rpg-docs/client/views/character/stats/stats.html +++ b/rpg-docs/client/views/character/stats/stats.html @@ -29,7 +29,7 @@
-
+
Saving Throws
@@ -45,7 +45,7 @@
-
+
Skills
@@ -73,21 +73,3 @@
- - diff --git a/rpg-docs/client/views/character/stats/stats.js b/rpg-docs/client/views/character/stats/stats.js index 0cf7b922..9d2f7e6e 100644 --- a/rpg-docs/client/views/character/stats/stats.js +++ b/rpg-docs/client/views/character/stats/stats.js @@ -1,8 +1,8 @@ Template.stats.events({ - "tap .statCard": function(event, instance){ + "click .statCard": function(event, instance){ var charId = instance.data._id; if (this.isSkill){ - GlobalUI.setDetail({ + pushDialogStack({ template: "skillDialog", data: { name: this.name, @@ -10,10 +10,10 @@ Template.stats.events({ charId: charId, color: this.color, }, - heroId: charId + this.stat, + element: event.currentTarget, }); } else { - GlobalUI.setDetail({ + pushDialogStack({ template: "attributeDialog", data: { name: this.name, @@ -21,15 +21,15 @@ Template.stats.events({ charId: charId, color: this.color, }, - heroId: charId + this.stat, + element: event.currentTarget, }); } }, - "tap .abilityMiniCard": function(event, instance){ + "click .ability-mini-card": function(event, instance){ var charId = Template.parentData()._id; var template = "attributeDialog"; if (this.ability === "strength") template = "strengthDialog"; - GlobalUI.setDetail({ + pushDialogStack({ template: template, data: { name: this.title, @@ -37,24 +37,24 @@ Template.stats.events({ charId: charId, color: this.color, }, - heroId: charId + this.ability, + element: event.currentTarget, }); }, "tap .skill-row": function(event, instance){ var skill = this.skill; var charId = instance.data._id; - GlobalUI.setDetail({ + pushDialogStack({ template: "skillDialog", data: { name: this.name, skillName: skill, charId: charId, }, - heroId: charId + skill, + element: event.currentTarget, }); }, "tap .hitPointTitle": function(event, instance) { - GlobalUI.setDetail({ + pushDialogStack({ template: "attributeDialog", data: { name: "Hit Points", @@ -62,17 +62,7 @@ Template.stats.events({ charId: this._id, color: "green", }, - heroId: this._id + "hitPoints", + element: event.currentTarget.parentElement.parentElement, }); }, }); - -Template.statCard.helpers({ - skillMod: function() { - return signedString( - Characters.calculate.skillMod( - Template.parentData()._id, this.stat - ) - ); - }, -}); diff --git a/rpg-docs/client/views/layout/polymerImports.html b/rpg-docs/client/views/layout/polymerImports.html index b751207c..37a246b6 100644 --- a/rpg-docs/client/views/layout/polymerImports.html +++ b/rpg-docs/client/views/layout/polymerImports.html @@ -11,12 +11,12 @@ - + - + diff --git a/rpg-docs/public/custom_components/app-theme.html b/rpg-docs/public/custom_components/app-theme.html index 401c579c..b2427fe7 100644 --- a/rpg-docs/public/custom_components/app-theme.html +++ b/rpg-docs/public/custom_components/app-theme.html @@ -1,6 +1,7 @@ +