diff --git a/Hc Svnt Dracones Second Edition/Readme.md b/Hc Svnt Dracones Second Edition/Readme.md index 072951d8cf..19d52a62f1 100644 --- a/Hc Svnt Dracones Second Edition/Readme.md +++ b/Hc Svnt Dracones Second Edition/Readme.md @@ -3,6 +3,13 @@ Official Character Sheet # Changelog +## V.1.75 (2020-10-20) +* fix duplicate page number on Ability 3 +* add `&{template:hsd2}` roll template to sheet. Syntax: `&{template:hsd2} {{title=big title}} {{subtitle=optional subtitle}} {{color=white}} {{normal=section like default roll template}} {{rollexample =[[2d10+2]] }} {{desc=wide section better suited for descriptions. color section is optional, defaults to grey. Other color options are white, black, red}}` +* add initiative button +* update page names +* update sheet desciption + ## V.1.70 (2020-05-27) * add Default sheet settings for `EXP`, `credits` and number of `techniques` * updated `sheet.json`'s "instructions" diff --git a/Hc Svnt Dracones Second Edition/hsd2.css b/Hc Svnt Dracones Second Edition/hsd2.css index 53171a6ac0..de8771b067 100644 --- a/Hc Svnt Dracones Second Edition/hsd2.css +++ b/Hc Svnt Dracones Second Edition/hsd2.css @@ -11,6 +11,8 @@ * * PAGE.................CSS for switching tabs/pages * + * ROLL TEMPATES........Styling roll outputs + * * SPECIAL..............special CSS tricks applied last */ @@ -695,6 +697,97 @@ div.sheet-pg3 { div.sheet-tab-content { display: none; } +/*------------------------------------*\ + #ROLL TEMPLATES +\*------------------------------------*/ + +/* Smaller margins - remove these if you want the huge default left margin */ +.sheet-rolltemplate-hsd2 { + margin-left: -37px; +} +.withoutavatars .sheet-rolltemplate-hsd2 { + margin-left: -7px; +} + +.sheet-rolltemplate-hsd2 .sheet-container { + border: 3px solid black; + border-radius: 3px; +} + +/* Header formatting - title and subtitle */ +.sheet-rolltemplate-hsd2 .sheet-header { + background-color: var(--header-bg-color); + color: var(--header-text-color); + text-align: left; + text-transform: capitalize; + padding: 5px; + border-bottom: 2px solid black; +} +.sheet-rolltemplate-hsd2 .sheet-title { + font-size:1.2em; + font-weight: bold; +} +.sheet-rolltemplate-hsd2 .sheet-subtitle { + font-size:.9em; +} + +/* example colors */ +.sheet-rolltemplate-hsd2 .sheet-container { + /* this is the default color */ + --header-bg-color: #FFF; + --header-text-color: #000; +} + +/* alt template colors */ +.sheet-rolltemplate-hsd2 .sheet-container.sheet-color-grey { + --header-bg-color: #A4A4A4; +} +.sheet-rolltemplate-hsd2 .sheet-container.sheet-color-black { + --header-bg-color: #000; + --header-text-color: #FFF; +} +.sheet-rolltemplate-hsd2 .sheet-container.sheet-color-red { + --header-bg-color: #a83521; + --header-text-color: #FFF; +} + +/* Allprops part */ +.sheet-rolltemplate-hsd2 .sheet-content { + display: grid; + background: #FFF; + /* Header formatting - modify the column layout below */ + grid-template-columns: auto auto; + /* Line height to match default roll template */ + line-height:1.4em; +} +.sheet-rolltemplate-hsd2 .sheet-content > div { + padding: 5px; +} + +/* Left column */ +.sheet-rolltemplate-hsd2 .sheet-content .sheet-key { + font-weight: bold; + padding-right: 10px; + text-align: right; +} + +/* Empty rule, use this if you want to change the right column +.sheet-rolltemplate-hsd2 .sheet-value { +} +*/ + +/* Make even-numbered rows grey */ +.sheet-rolltemplate-hsd2 .sheet-content :nth-child(4n+3), +.sheet-rolltemplate-hsd2 .sheet-content :nth-child(4n) { + background:#EEE; +} + +/* Description field */ +.sheet-rolltemplate-hsd2 .sheet-desc { + grid-column: span 2; + padding: 5px; + text-align: center; +} /*------------------------------------*\ #SPECIAL diff --git a/Hc Svnt Dracones Second Edition/hsd2.html b/Hc Svnt Dracones Second Edition/hsd2.html index 0ed525a3bd..76d817f733 100644 --- a/Hc Svnt Dracones Second Edition/hsd2.html +++ b/Hc Svnt Dracones Second Edition/hsd2.html @@ -1,10 +1,10 @@ - - - + + + -Sheet Version: 1.70 +Sheet Version: 1.75 @@ -65,6 +65,7 @@