From 3e41e8115ae77e915569aeaa1453415e45cffb92 Mon Sep 17 00:00:00 2001 From: Salvador Melo Date: Mon, 27 Aug 2018 02:28:13 -0400 Subject: [PATCH] Improved health track with single row of cycling boxes. --- NWOD-Mage2e/mage2e.css | 140 +++++++++++++++++++++++++++++++++ NWOD-Mage2e/mage2e.html | 168 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 305 insertions(+), 3 deletions(-) diff --git a/NWOD-Mage2e/mage2e.css b/NWOD-Mage2e/mage2e.css index 3fdb8222af..970a802e96 100644 --- a/NWOD-Mage2e/mage2e.css +++ b/NWOD-Mage2e/mage2e.css @@ -309,4 +309,144 @@ input.sheet-CorC2:checked ~ h4.sheet-CorC2 .sheet-reptable + .repcontainer { padding-right: 0px; +} + +.sheet-legacy { + display: none; +} + +/* -----BOXES----- */ +.sheet-healthboxcontainer { + position: relative; +} + +.sheet-healthboxcontainer input +{ + top: 0px; + right: 0px; + position: absolute; + opacity: 0; + width: 15px; + cursor: pointer; + margin-top: 5px; + z-index: 101; +} + +.sheet-healthboxcontainer input + span::before +{ + content: ""; + opacity: 1.0; + width: 10px; + height: 10px; + font-size: 12px; + + -moz-border-radius: 1px; + -webkit-border-radius: 1px; + border-radius: 1px; + + border: solid 1px #000000; + line-height: 11px; + text-align: center; + vertical-align: middle; + + -moz-box-shadow: 0 0 0px #000; + -webkit-box-shadow: 0 0 0px #000; + box-shadow: 0 0 0px #000; + + background: #000000; + background: -moz-radial-gradient(#f6f6f6, #dfdfdf); + background: -webkit-radial-gradient(#f6f6f6, #dfdfdf); + background: -ms-radial-gradient(#f6f6f6, #dfdfdf); + background: -o-radial-gradient(#f6f6f6, #dfdfdf); + background: radial-gradient(#f6f6f6, #dfdfdf); +} + +.sheet-healthboxcontainer input:checked + span::before +{ + -moz-box-shadow: 0 0 2px transparent; + -webkit-box-shadow: 0 0 2px transparent; + box-shadow: 0 0 2px transparent; +} + +.sheet-healthboxcontainer input[type="radio"].sheet-whitedot:checked + span::before +{ + content: "" !important; +} + +.sheet-healthboxcontainer input[type="radio"].sheet-bashingdot:checked + span::before +{ + background: + linear-gradient(to top left, + rgba(0,0,0,0) 0%, + rgba(0,0,0,0) calc(50% - 1.2px), + rgba(170, 0, 0, 1) 50%, + rgba(0,0,0,0) calc(50% + 1.2px), + rgba(0,0,0,0) 100%); +} + +.sheet-healthboxcontainer input[type="radio"].sheet-lethaldot:checked + span::before +{ + background: + linear-gradient(to top left, + rgba(0,0,0,0) 0%, + rgba(0,0,0,0) calc(50% - 1.2px), + rgba(170, 0, 0, 1) 50%, + rgba(0,0,0,0) calc(50% + 1.2px), + rgba(0,0,0,0) 100%), + linear-gradient(to top right, + rgba(0,0,0,0) 0%, + rgba(0,0,0,0) calc(50% - 1.2px), + rgba(170, 0, 0, 1) 50%, + rgba(0,0,0,0) calc(50% + 1.2px), + rgba(0,0,0,0) 100%); +} + +.sheet-healthboxcontainer input[type="radio"].sheet-aggravateddot:checked + span::before +{ + background: + linear-gradient(to top left, + rgba(0,0,0,0) 0%, + rgba(0,0,0,0) calc(50% - 1.2px), + rgba(170, 0, 0, 1) 50%, + rgba(0,0,0,0) calc(50% + 1.2px), + rgba(0,0,0,0) 100%), + linear-gradient(to top right, + rgba(0,0,0,0) 0%, + rgba(0,0,0,0) calc(50% - 1.2px), + rgba(170, 0, 0, 1) 50%, + rgba(0,0,0,0) calc(50% + 1.2px), + rgba(0,0,0,0) 100%), + linear-gradient(to right, + rgba(0,0,0,0) 0%, + rgba(0,0,0,0) calc(50% - 1.2px), + rgba(170, 0, 0, 1) 50%, + rgba(0,0,0,0) calc(50% + 1.2px), + rgba(0,0,0,0) 100%) +} + +.sheet-healthboxcontainer input[type="radio"].sheet-whitedot { + z-index: 102; +} + +input.sheet-whitedot:checked ~ input.sheet-bashingdot, +input.sheet-bashingdot:checked ~ input.sheet-lethaldot, +input.sheet-lethaldot:checked ~ input.sheet-aggravateddot { + z-index: 103; +} + +.sheet-healthboxcontainer span { + display: none; +} + +input.sheet-whitedot:checked ~ span.sheet-whitedot, +input.sheet-bashingdot:checked ~ span.sheet-bashingdot, +input.sheet-lethaldot:checked ~ span.sheet-lethaldot, +input.sheet-aggravateddot:checked ~ span.sheet-aggravateddot { + display: inline-block; +} + +.sheet-healthcontainer { + width: 20px; + margin-left: -16px; + display: inline-block; } \ No newline at end of file diff --git a/NWOD-Mage2e/mage2e.html b/NWOD-Mage2e/mage2e.html index 70ca6532f1..95dc02a67e 100644 --- a/NWOD-Mage2e/mage2e.html +++ b/NWOD-Mage2e/mage2e.html @@ -1,3 +1,7 @@ + +
+ +

Second Edition

@@ -376,14 +380,139 @@ + Boxes: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bashing: - + Lethal: - + Aggravated: @@ -879,4 +1008,37 @@ - \ No newline at end of file + + \ No newline at end of file