From 25755385c00cc9ecc4b4d20fc4717d83613eb8c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Sat, 16 Jan 2021 15:16:40 +0100 Subject: [PATCH] Add accessibility. --- src/ds4.scss | 1 + .../components/_character_progression.scss | 2 +- src/scss/global/_accessibility.scss | 3 + src/templates/actor/actor-sheet.hbs | 58 ++++++++++++------- .../actor/partials/character-progression.hbs | 6 +- 5 files changed, 46 insertions(+), 24 deletions(-) create mode 100644 src/scss/global/_accessibility.scss diff --git a/src/ds4.scss b/src/ds4.scss index db46a09a..af018bb7 100644 --- a/src/ds4.scss +++ b/src/ds4.scss @@ -8,6 +8,7 @@ @import "scss/global/window"; @import "scss/global/grid"; @import "scss/global/flex"; +@import "scss/global/accessibility"; /* Styles limited to ds4 sheets */ .ds4 { diff --git a/src/scss/components/_character_progression.scss b/src/scss/components/_character_progression.scss index c2b3fdcd..b13927d9 100644 --- a/src/scss/components/_character_progression.scss +++ b/src/scss/components/_character_progression.scss @@ -11,7 +11,7 @@ font-family: $font-heading; display: block; height: 50px; - padding: 0px; + padding: 0; color: $c-light-grey; border: none; line-height: 50px; diff --git a/src/scss/global/_accessibility.scss b/src/scss/global/_accessibility.scss new file mode 100644 index 00000000..dd0e4211 --- /dev/null +++ b/src/scss/global/_accessibility.scss @@ -0,0 +1,3 @@ +.hidden { + display: none; +} diff --git a/src/templates/actor/actor-sheet.hbs b/src/templates/actor/actor-sheet.hbs index 6763e440..6a14a951 100644 --- a/src/templates/actor/actor-sheet.hbs +++ b/src/templates/actor/actor-sheet.hbs @@ -1,52 +1,68 @@
{{!-- Sheet Header --}}
- + Actor Icon
-

+

+ + +

{{> systems/ds4/templates/actor/partials/character-progression.hbs}}
- +
- +
+ for="data.progression.progressPoints.used">{{config.progression.progressPoints}}
- / - + + / + +
+ for="data.progression.talentPoints.used">{{config.progression.talentPoints}}
/ - + id="data.progression.talentPoints.used" + value="{{data.progression.talentPoints.used}}" data-dtype="Number" /> + / + +
- +
- + for="data.baseInfo.heroClass">{{config.baseInfo.heroClass}} +
@@ -84,4 +100,4 @@ {{editor content=data.biography target="data.biography" button=true owner=owner editable=editable}} - \ No newline at end of file + diff --git a/src/templates/actor/partials/character-progression.hbs b/src/templates/actor/partials/character-progression.hbs index f22376f0..b5a2115e 100644 --- a/src/templates/actor/partials/character-progression.hbs +++ b/src/templates/actor/partials/character-progression.hbs @@ -2,14 +2,16 @@

- Progression Level +

- Experience Points +