From eaf9124a48a9edb0a0ebefa7dca816e7a7fa4f0d Mon Sep 17 00:00:00 2001 From: "St. Lawrence, Zachary" Date: Thu, 1 Jan 2015 21:36:04 -0500 Subject: [PATCH] Fate Accelerated: Added stat roll buttons, cleaned up formatting --- Fate_Accelerated/fate.css | 75 ++++++++++++++++++++++++++++++++++--- Fate_Accelerated/fate.html | 77 ++++++++++++++++++++++++++++---------- 2 files changed, 127 insertions(+), 25 deletions(-) diff --git a/Fate_Accelerated/fate.css b/Fate_Accelerated/fate.css index 556d82e325..772e24cb78 100644 --- a/Fate_Accelerated/fate.css +++ b/Fate_Accelerated/fate.css @@ -91,12 +91,77 @@ table.sheet-stress td { position: relative; } -input.sheet-stress-check { - font-size: 30px; - width: 20px; - height: 20px; +table.sheet-stress td div.sheet-checkbox-label-div { + width: 50px; + height: 50px; position: relative; - left: calc(50% - 10px) !important; + border: 1px solid black; + left: calc(50% - 25px) !important; +} + +table.sheet-stress td div.sheet-checkbox-label-div label { + position: relative; + top:-50px; + background: #ddd; + height: 50px; + width: 50px; + display: block; + /* Note: This gradient may render differently in browsers that don't support the unprefixed gradient syntax */ + + /* IE10 Consumer Preview */ + background-image: -ms-linear-gradient(bottom right, #FFFFFF 0%, #C7C7C7 100%); + + /* Mozilla Firefox */ + background-image: -moz-linear-gradient(bottom right, #FFFFFF 0%, #C7C7C7 100%); + + /* Opera */ + background-image: -o-linear-gradient(bottom right, #FFFFFF 0%, #C7C7C7 100%); + + /* Webkit (Safari/Chrome 10) */ + background-image: -webkit-gradient(linear, right bottom, left top, color-stop(0, #FFFFFF), color-stop(1, #C7C7C7)); + + /* Webkit (Chrome 11+) */ + background-image: -webkit-linear-gradient(bottom right, #FFFFFF 0%, #C7C7C7 100%); + + /* W3C Markup, IE10 Release Preview */ + background-image: linear-gradient(to top left, #FFFFFF 0%, #C7C7C7 100%); + +} +table.sheet-stress td div.sheet-checkbox-label-div label:hover {/* Note: This gradient may render differently in browsers that don't support the unprefixed gradient syntax */ + + /* IE10 Consumer Preview */ + background-image: -ms-linear-gradient(bottom right, #FFFFFF 0%, #8FECFF 100%); + + /* Mozilla Firefox */ + background-image: -moz-linear-gradient(bottom right, #FFFFFF 0%, #8FECFF 100%); + + /* Opera */ + background-image: -o-linear-gradient(bottom right, #FFFFFF 0%, #8FECFF 100%); + + /* Webkit (Safari/Chrome 10) */ + background-image: -webkit-gradient(linear, right bottom, left top, color-stop(0, #FFFFFF), color-stop(1, #8FECFF)); + + /* Webkit (Chrome 11+) */ + background-image: -webkit-linear-gradient(bottom right, #FFFFFF 0%, #8FECFF 100%); + + /* W3C Markup, IE10 Release Preview */ + background-image: linear-gradient(to top left, #FFFFFF 0%, #8FECFF 100%);} + + +input[type=checkbox].sheet-stress-check { + margin: 0px; + width: 50px; + height: 50px; + opacity: 0; + z-index: 1; + position: relative; + left: calc(50% - 27px) !important; + top: -2px; +} + +input[type=checkbox].sheet-stress-check:checked ~ label { + background: url(http://ramyasspace.files.wordpress.com/2011/06/tick.jpg); + background-size: 100%; } /* === CONSEQUENCES === */ diff --git a/Fate_Accelerated/fate.html b/Fate_Accelerated/fate.html index e46a482e9f..2213b8fe80 100644 --- a/Fate_Accelerated/fate.html +++ b/Fate_Accelerated/fate.html @@ -30,12 +30,40 @@
Approaches
- - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -53,9 +81,9 @@
Consequences
@@ -66,22 +94,31 @@
+ + + + + - - - - -
+
+ + +
+
+
+ + +
+
+
+ + +
+

1

2

3

- - - - - -