mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-31 18:08:28 +02:00
Bug fixes and EPUB CSS improvements.
This commit is contained in:
@@ -33,9 +33,9 @@
|
||||
<dd>[[ character.hair ]] </dd>
|
||||
</dl>
|
||||
|
||||
<h2 id="combat-stats details">Combat Statistics</h2>
|
||||
<h2 id="combat-stats">Combat Statistics</h2>
|
||||
|
||||
<dl class="combat-stats">
|
||||
<dl class="combat-stats details">
|
||||
<dt>Armor Class</dt>
|
||||
<dd>[[ character.armor_class ]]</dd>
|
||||
<dt>Initiative</dt>
|
||||
@@ -138,33 +138,33 @@
|
||||
|
||||
<h3 id="treasure">Additional Treasure</h3>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.treasure ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="personaility-traits">Personality Traits</h2>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.personality_traits ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="ideals">Ideals</h2>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.ideals ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="bonds">Bonds</h2>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.bonds ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="flaws">Flaws</h2>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.flaws ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="appearance">Appearance</h2>
|
||||
|
||||
@@ -175,18 +175,18 @@
|
||||
<dd>[[ character.faction_name ]] </dd>
|
||||
</dl>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.allies ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="other-traits">Additional Features & Traits</h2>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.other_feats_traits ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
<h2 id="backstory">Backstory</h2>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ character.backstory ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
@@ -2,11 +2,9 @@
|
||||
|
||||
[% for shape in character.all_wild_shapes|sort(attribute='challenge_rating') %]
|
||||
|
||||
|
||||
<block class="[% if not character.can_assume_shape(shape) %]known-beast-disabled[% endif %]">
|
||||
<div class="[% if not character.can_assume_shape(shape) %]known-beast-disabled[% endif %]">
|
||||
|
||||
<h2 id="known-beasts-[[ shape.name | to_heading_id ]]">[[ shape.name ]]</h2>
|
||||
|
||||
[% if shape.description %]
|
||||
<p>[[ shape.description ]]</p>
|
||||
[% endif %]
|
||||
@@ -45,10 +43,10 @@
|
||||
<dt>Immunities</dt><dd>[[ shape.condition_immunities ]] </dd>
|
||||
</dl>
|
||||
|
||||
<block>
|
||||
<div>
|
||||
[[ shape.__doc__ | rst_to_html(top_heading_level=2) ]]
|
||||
</block>
|
||||
</div>
|
||||
|
||||
[% endfor %]
|
||||
</div>
|
||||
|
||||
</block>
|
||||
[% endfor %]
|
||||
|
||||
@@ -1,7 +1,32 @@
|
||||
[% if use_dnd_decorations %]
|
||||
/* With fancy decorations */
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
color: #58180d;
|
||||
color: #58180d;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
body {
|
||||
background: #ECDDB4;
|
||||
}
|
||||
table {
|
||||
background: #ECEEE3;
|
||||
}
|
||||
tr:nth-child(even) {
|
||||
background: #CDD290;
|
||||
}
|
||||
th {
|
||||
font-family: sans-serif
|
||||
}
|
||||
|
||||
|
||||
[% else %]
|
||||
/* Without Fancy decorations */
|
||||
|
||||
th {
|
||||
border-style: solid;
|
||||
border-width: 0px;
|
||||
border-bottom-width: 1px;
|
||||
}
|
||||
[% endif %]
|
||||
/* End fancy decorations */
|
||||
|
||||
/* Spell lists */
|
||||
@@ -63,7 +88,7 @@ dl.[[ class ]] dd {
|
||||
|
||||
/* For showing beasts */
|
||||
.known-beast-disabled {
|
||||
color: lightgrey;
|
||||
opacity: 0.33;
|
||||
}
|
||||
|
||||
/* Errors in rst conversion or missing content */
|
||||
@@ -85,10 +110,11 @@ table {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
table p {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
th {
|
||||
border-style: solid;
|
||||
border-width: 0px;
|
||||
border-bottom-width: 1px;
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
text-align: center;
|
||||
|
||||
Reference in New Issue
Block a user