From 3f3b7a6ed030706244003d2a839ed9db4fc4d31f Mon Sep 17 00:00:00 2001 From: Kirintale Date: Tue, 25 Sep 2018 20:22:20 +0100 Subject: [PATCH 1/6] Moving Powers to a collapsible field. --- vampire-v5/vampirev5.css | 56 ++++++++++++++++++++++++-- vampire-v5/vampirev5.html | 85 ++++++++++++++++++++++++++++++++++----- 2 files changed, 127 insertions(+), 14 deletions(-) diff --git a/vampire-v5/vampirev5.css b/vampire-v5/vampirev5.css index a48617801e..1ab09e6ecd 100644 --- a/vampire-v5/vampirev5.css +++ b/vampire-v5/vampirev5.css @@ -677,10 +677,12 @@ input.sheet-tab7 { } /* - diebutton-simple = inline die roll; diebutton-api = call to the api - */ -button.sheet-diebutton-simple { /* Simple Roll is the default roller */ +button.sheet-diebutton-simple, +button.sheet-diebutton-simple2 { /* Simple Roll is the default roller */ } -button.sheet-diebutton-api { +button.sheet-diebutton-api, +button.sheet-diebutton-api2 { display: none; /* - Note: Simple Roll is the default and will be visible - */ } @@ -692,4 +694,52 @@ input.sheet-roll-useDice:checked ~ div table button.sheet-diebutton-api { dis input.sheet-roll-useDice:unchecked ~ div div button.sheet-diebutton-api { display: none; } input.sheet-roll-useDice:unchecked ~ div div button.sheet-diebutton-simple { display: inline-block; } input.sheet-roll-useDice:checked ~ div div button.sheet-diebutton-simple { display: none; } -input.sheet-roll-useDice:checked ~ div div button.sheet-diebutton-api { display: inline-block; } \ No newline at end of file +input.sheet-roll-useDice:checked ~ div div button.sheet-diebutton-api { display: inline-block; } + +input.sheet-roll-useDice:unchecked ~ div div button.sheet-diebutton-api2 { display: none; } +input.sheet-roll-useDice:unchecked ~ div div button.sheet-diebutton-simple2 { display: inline-block; } +input.sheet-roll-useDice:checked ~ div div button.sheet-diebutton-simple2 { display: none; } +input.sheet-roll-useDice:checked ~ div div button.sheet-diebutton-api2 { display: inline-block; } + +/** Checkbox with arrow **/ +/* Hide actual checkbox */ +input.sheet-arrowBox[type="checkbox"] +{ + opacity: 0; + width: 16px; + height: 16px; + position: relative; + top: 5px; + left: 6px; + margin: -10px; + cursor: pointer; + z-index: 1; +} + +/* Fake checkbox */ +input.sheet-arrowBox[type="checkbox"] + span::before +{ + margin-right: 4px; + line-height: 14px; + text-align: center; + display: inline-block; + vertical-align: middle; + + content: "◄"; + width: 14px; + height: 14px; + font-size: 12px; +} +input.sheet-arrowBox[type="checkbox"]:checked + span::before +{ + content: "▼"; +} + +div.sheet-arrowBox +{ + display:none; +} + +input.sheet-arrowBox[type="checkbox"]:checked + span + div.sheet-arrowBox{ + display:block; +} \ No newline at end of file diff --git a/vampire-v5/vampirev5.html b/vampire-v5/vampirev5.html index 386de3fbf8..1953c6811f 100644 --- a/vampire-v5/vampirev5.html +++ b/vampire-v5/vampirev5.html @@ -1803,15 +1803,74 @@ name="roll_disciplineInlineDice"> -

Powers

-
- - - - - +

Powers

+ + +
+
+
+ + + + + + +
+
+

Details

+ +

Display

+ +
+
-
@@ -3050,8 +3109,8 @@ On completion of this sheet we sat down and had a chat and we all agreed that it would be great if some good could come from it. Therefore if you like our work and want to show your appreciate please make a donation to any of the following charities.
-
Red Cross: https://www.justgiving.com/fundraising/vtm-5thed-character-sheet-red-cross

While I am maintaining this repo anyone who makes a donation, can message me via https://app.roll20.net/users/117780 +
Red Cross: https://www.justgiving.com/fundraising/vtm-5thed-character-sheet-red-cross +

While I am maintaining this repo anyone who makes a donation, can message me via https://app.roll20.net/users/117780 and get their name added to our list of supports.
@@ -3319,7 +3378,11 @@ {{Roll}} - {{/Roll}} {{#Normal}} + {{/Roll}} {{#DisciplineDetails}} + + {{DisciplineDetails}} + + {{/DisciplineDetails}}{{#Normal}} Normal From 4da2b03a8c0974fb12bdab2fbdc5579d6f3f66aa Mon Sep 17 00:00:00 2001 From: Kirintale Date: Tue, 25 Sep 2018 20:38:12 +0100 Subject: [PATCH 2/6] Bug fix both buttons hide as appropriate. --- vampire-v5/vampirev5.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vampire-v5/vampirev5.html b/vampire-v5/vampirev5.html index 1953c6811f..ea504eedaf 100644 --- a/vampire-v5/vampirev5.html +++ b/vampire-v5/vampirev5.html @@ -1856,7 +1856,7 @@ -