diff --git a/deadsands/content/regions/blooming-wastes.md b/deadsands/content/regions/blooming-wastes.md index 0990f12..35e3cf2 100644 --- a/deadsands/content/regions/blooming-wastes.md +++ b/deadsands/content/regions/blooming-wastes.md @@ -5,7 +5,6 @@ title: The Blooming Wastes author: evilchili tags: region, homebrew date: 2022-07-20 17:54:47.286869 -description: Once you have surveyed a region you will gain access a subset of this information; others, like weather and regional effects, must be discovered. template: region region: name: The Blooming Wastes @@ -15,35 +14,29 @@ region: The Blooming Wastes stretch out before you: a mostly flat expanse of hard, cracked earth blanketed by some kind of sandy brown scrub. Small mesas dot the horizon, suggesting the possibility of shelter. As you approach you see that the scrub is covered in thick black thorns sharp enough to pierce boot leather; you will need to tread carefully. travel: dc: 10 - critical_success: normal terrain - critical_failure: - resources: forage: dc: 10 - critical_success: - critical_failure: resources: redfoot, moon blossom (night only) track: dc: 13 - critical_success: - critical_failure: shelter occupied; random encounter resources: shelter, water evade: dc: 2 - critical_success: - critical_failure: random encounter survey: dc: 13 - critical_success: - critical_failure: - encounters: 1-6 cr: 4 + encounters: + d1-d4: Easy + d5: Dangerous + d6: Deadly + d7-d20: None regional_effects: - - Add 1d6 to radiant damage - - Nightvision not functional - - When a spell attack misses, it hits a random creature within 5 feet instead - - On a spell attack critical hit or miss, roll on the Wild Magic Table - - 1d4 piercing damage for every 30ft of movement during the Dash action + d1: Add 1d6 to radiant damage + d2: Nightvision not functional + d3: When a spell attack misses, it hits a random creature within 5 feet instead + d4: On a spell attack critical hit or miss, roll on the Wild Magic Table + d5: 1d4 piercing damage for every 30ft of movement during the Dash action + d6: No Effect weather: d1: Scorching Temperatures - 2x water consumption d2: Hail (no effect - counts as magical water if consumed) diff --git a/deadsands/deadsands-theme/static/deadsands/css/style.css b/deadsands/deadsands-theme/static/deadsands/css/style.css index b093bdf..70f1b20 100644 --- a/deadsands/deadsands-theme/static/deadsands/css/style.css +++ b/deadsands/deadsands-theme/static/deadsands/css/style.css @@ -359,7 +359,7 @@ ol > li > ul li:last-of-type { } .column { - margin: 1em 0; + margin: 0px; display: flex; flex-wrap: wrap; justify-content: space-between; @@ -629,31 +629,6 @@ a.disabled:hover { color: #333; } -.statblock h4, .statblock h5, .statblock h6 { - border: none; -} - -.statblock table, -.statblock table tr { - width: 100%; -} -.statblock table th { - border: none; - white-space: nowrap; - vertical-align: top; -} - -.statblock table th, .statblock table td { - padding: 0.5em; - width: 1%; - text-align: left; -} - -.statblock table ul { - padding-left: 1em; -} - - .two-column { column-count: 2; display: block; @@ -663,130 +638,84 @@ a.disabled:hover { break-inside: avoid-column; } -.statblock table, -.statblock table tr { - break-inside: avoid-column; - width: 100%; -} - -.statblock table th { - width: 1%; - font-weight: bold; -} - -table.last-wide tr:last-child { - width: 100%; -} - -table.auto, table.auto tr, table.auto th, table.auto td { - width: auto; -} - - -.statblock, dl.spoiler { - margin: 20px auto; +.read { + margin: 1em; + margin-top: 0em; + text-align: left; padding: 10px; - /* - background: rgb(255,255,255); - background: linear-gradient(135deg, rgba(255,255,255,1) 40%, #A2B672 100%); - */ - border: 1px solid #AAA; -} - -.statblock .separator { - content: ""; - display:block; - width: 100%; - margin: 10px 0px; - border-top: 3px solid #28371C; + background: rgba(255,255,255, 0.5); } /* Stat block typography */ .statblock { - font-size: 0.75em; + padding: 1em; + margin: 3em; + background: #e8d4b3; + background: rgba(244,241,232, 0.5); + border: 1px solid #333; + box-shadow: 0 1px 4px rgba(0, 0, 0, 60%), 0 0 25px rgba(0, 0, 0, 20%) inset; } -.statblock h2, h3, h4, h5, h6 { - padding-bottom: 5px; - border-bottom: 1px solid #28371C; +.statblock h4, h5, h6 { text-transform: capitalize; -} - - -.statblock .name { - font-weight: 700; - font-size: 2em; - font-variant: small-caps; + text-align: left; margin: 0; - margin-top: -10px; } -.statblock .name:hover { - color: #28371C; +.statblock table { + margin: 0; } -.statblock .size { - font-style: italic; - margin-top: -3px; - padding-left:2px; +.statblock table tr, .statblock table tr td { + background: inherit; } - -.statblock .stat { - font-size:0.9em; - color: #28371C; +.statblock table tr th, +.statblock table tr td { + vertical-align: top; + padding-right: 2em; +} +.statblock table tr td:first-of-type { font-weight: bold; } -.statblock .stat .value { - color: #333; - font-weight:normal; - padding-left: 3px; +.statblock table tr:last-child, +.statblock table tr:last-child { + padding-right: 1em; +} +.statblock table tr:nth-child(even) { + background: rgba(244,241,232, 0.5); +} +.statblock table tr:nth-child(odd) { + background: rgba(255,255,255, 0.3); } -.statblock .ability-scores ul { - font-size: 1.2rem; - width: 100%; + + +.statblock dl { display: flex; + flex-flow: row; flex-wrap: wrap; - justify-content: space-between; - list-style: none; - margin: 0 auto; - padding: 0; - color: #28371C; - font-weight: bold; + width: 100%; + overflow: visible; } -.statblock .ability-scores ul li { - width: calc(100% / 6); - font-size: 0.8em; - text-align: center; +.statblock dl dt { + flex: 0 0 25%; + text-overflow: ellipsis; + overflow: hidden; + margin-bottom: 2em; +} +.statblock dl dd { + flex:0 0 75%; + margin-left: auto; + text-align: left; + text-overflow: ellipsis; + overflow: hidden; } -.statblock .ability-scores ul.score li small { - font-weight: normal; - color: #333; +.statblock .inner { + display: none; } -.statblock p { - font-family: Roboto,Helvetica,sans-serif !important; - text-align: justify; -} - -.statblock p strong::after { - content: '.'; - display: inline; -} - -.statblock p em { - padding-right: 5px; -} - -.statblock p em::after { - content: ':'; - display:inline; -} - - - @media screen and (min-width: 900px) { .column { diff --git a/deadsands/deadsands-theme/templates/macros.html b/deadsands/deadsands-theme/templates/macros.html index c871ba1..243900e 100644 --- a/deadsands/deadsands-theme/templates/macros.html +++ b/deadsands/deadsands-theme/templates/macros.html @@ -5,3 +5,12 @@ {% endif %} {% endmacro %} + +{% macro rolltable(t) %} + + + {% for die in t %} + + {% endfor %} +
RollEffect
{{ die }}{{ t[die] }}
+{% endmacro %} diff --git a/deadsands/deadsands-theme/templates/region.html b/deadsands/deadsands-theme/templates/region.html index 8028b83..22064ea 100644 --- a/deadsands/deadsands-theme/templates/region.html +++ b/deadsands/deadsands-theme/templates/region.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% import "macros.html" as macros %} {% block title %}{{ article.title|capitalize }} - {{SITENAME}}{% endblock title %} {% block content %} {% set r = article.metadata.region %} @@ -18,79 +19,40 @@ {{ article.content }} + {% set target = article.title.replace(' ', '_') %}
-
-

{{ article.title }}

- - - - - - - - - - - - - - - - - - - - - - - - - -
{{ r.description }}
Size{{ r.size }} sq. miles
Terrain{{ r.terrain }}
Encounters On{{ r.encounters }}
Challenge Rating{{ r.cr }}
Regional Effects -
    {% for e in r.regional_effects %}
  • {{ e }}
  • {% endfor %}
-
- -
-

Weather

- - - - - - - - - - -
RollEffect
d1{{ r.weather.d1 }}
d2{{ r.weather.d2 }}
d3{{ r.weather.d3 }}
d4{{ r.weather.d4 }}
d5{{ r.weather.d5 }}
d6{{ r.weather.d6 }}
d7{{ r.weather.d7 }}
d8{{ r.weather.d8 }}
+

{{ article.title }}

+ -
-

Activities

- - - - - - - - - - {% for (k, v) in [ ('Travel', r.travel), ('Forage', r.forage), ('Track', r.track), ('Evade', r.evade), ('Survey', r.survey) ] %} - - - - - - {% endfor %} - -
  - DCResourcesNotes
{{ k }}{{ v.dc or ""}}{{ v.resources or ""}} - {% if v.critical_success %}crit. success = {{ v.critical_success }}
{% endif %} - {% if v.critical_failure %}crit. failure = {{ v.critical_failure }}
{% endif %} -
-
+
{% include "bottom-nav.html" %}
diff --git a/deadsands/site_tools/cli.py b/deadsands/site_tools/cli.py index e3f2f75..e2b0eb1 100644 --- a/deadsands/site_tools/cli.py +++ b/deadsands/site_tools/cli.py @@ -2,6 +2,7 @@ import click import os import shutil import subprocess +import shlex import sys import typer import webbrowser @@ -101,14 +102,14 @@ def serve() -> None: def publish() -> None: clean() pelican_run(publish=True) - subprocess.call( + subprocess.run(shlex.split( 'rsync --delete --exclude ".DS_Store" -pthrvz -c ' '-e "ssh -p {ssh_port}" ' '{} {ssh_user}@{ssh_host}:{ssh_path}'.format( CONFIG['deploy_path'].rstrip('/') + '/', **CONFIG ) - ) + )) @app.command()