From bfec30584fc383ccff4e537293c90bc69d80488c Mon Sep 17 00:00:00 2001 From: Actoba Date: Sat, 19 Jul 2014 18:40:01 +0100 Subject: [PATCH] #41 - Updated spell page tabs to be more cross browser friendly --- DnD_5e/DnD_5e.css | 54 +++++++++++++++++++++++++++++----------------- DnD_5e/DnD_5e.html | 34 +++++++++++++++++++---------- 2 files changed, 57 insertions(+), 31 deletions(-) diff --git a/DnD_5e/DnD_5e.css b/DnD_5e/DnD_5e.css index e17aadd6c6..309cdd45e4 100644 --- a/DnD_5e/DnD_5e.css +++ b/DnD_5e/DnD_5e.css @@ -42,7 +42,6 @@ visibility: visible; opacity: 1; transition: opacity 0.5s linear 0s; - overflow: auto; } .charsheet input.sheet-tab { @@ -169,32 +168,46 @@ transition: opacity 0.5s linear 0s; } -.charsheet input.sheet-spellpagetab { - width: 72px; - height: 20px; - cursor: pointer; - z-index: 1; - vertical-align: super; +.charsheet input.sheet-spelltab0:checked ~ span.sheet-spelltab0, +.charsheet input.sheet-spelltab1:checked ~ span.sheet-spelltab1, +.charsheet input.sheet-spelltab2:checked ~ span.sheet-spelltab2, +.charsheet input.sheet-spelltab3:checked ~ span.sheet-spelltab3, +.charsheet input.sheet-spelltab4:checked ~ span.sheet-spelltab4, +.charsheet input.sheet-spelltab5:checked ~ span.sheet-spelltab5, +.charsheet input.sheet-spelltab6:checked ~ span.sheet-spelltab6, +.charsheet input.sheet-spelltab7:checked ~ span.sheet-spelltab7, +.charsheet input.sheet-spelltab8:checked ~ span.sheet-spelltab8, +.charsheet input.sheet-spelltab9:checked ~ span.sheet-spelltab9, +.charsheet input.sheet-spelltab99:checked ~ span.sheet-spelltab99 + { + background: rgb(0,158,115); + color: white; + border-radius: 4px; } -.charsheet input.sheet-spellpagetab::before { - content: attr(title); +.charsheet input.sheet-spellpagetab { + width: 70px; + height: 20px; + cursor: pointer; + position: relative; + opacity: 0; + z-index: 9999; +} + +.charsheet span.sheet-spellpagetab { text-align: center; display: inline-block; - width: 100%; - height: 100%; font-size: 13px; - background: rgb(86,180,233); color: white; font-weight: bold; border-radius: 4px; -} - -.charsheet input.sheet-spellpagetab:checked::before { - background: rgb(0,158,115); - color: white; - border-radius: 4px; + + width: 70px; + height: 20px; + cursor: pointer; + position: relative; + margin-left: -73px; } .charsheet .sheet-spell-row-number, @@ -457,8 +470,9 @@ div[data-groupname^="repeating_classactions"] .repitem { margin: 5px 0; } -.charsheet br.sheet-spacer { - margin-bottom: 5px; +.charsheet span.sheet-spacer { + display: block; + margin-top: 5px; } .charsheet .sheet-heading-row { diff --git a/DnD_5e/DnD_5e.html b/DnD_5e/DnD_5e.html index 9ca971407c..ff969aab6d 100644 --- a/DnD_5e/DnD_5e.html +++ b/DnD_5e/DnD_5e.html @@ -12,25 +12,25 @@ - Core Stats + Core Stats - Skills + Skills - Background + Background - Class + Class - Weapons + Weapons - Spellbook + Spellbook - Inventory + Inventory - Help + Help - Show All + Show All -
+
@@ -1287,17 +1287,29 @@

Use this section to track spells you know, spells in your spell book (Wizards), and/or Spells that you have prepared for the day. Cantrips and spells that you know that do not count against your daily prepared limit (such as cleric domain spells, Wizard school spells, etc..) should be listed as "Always Prepared" in the prepared column.

+ Cantrips + Level 1 + Level 2 + Level 3 + Level 4 + Level 5 + Level 6 + Level 7 + Level 8 + Level 9 - + Show All + +