Browse Source

More CSS

master
Noëlle 3 years ago
parent
commit
b0b343378a
2 changed files with 8 additions and 4 deletions
  1. 4
    4
      assets/kobold.css
  2. 4
    0
      koboldgen.py

+ 4
- 4
assets/kobold.css View File

@@ -9,7 +9,7 @@
}

#theship::before {
content: "<span class='head'>The Ship</span>";
content: "";
}

#themission {
@@ -17,7 +17,7 @@
}

#themission::before {
content: "<span class='head'>The Mission</span>";
content: "";
}

#theadversary {
@@ -25,7 +25,7 @@
}

#theadversary::before {
content: "<span class='head'>The Adversary</span>";
content: "";
}

#thekobolds {
@@ -34,7 +34,7 @@
}

#thekobolds::before {
content: "<span class='head'>The Kobolds</span>";
content: "";
}

.kobold {

+ 4
- 0
koboldgen.py View File

@@ -262,6 +262,7 @@ class Campaign:
if html:
out = (
f"<div id='theship' class='firstrow'>\n"
f" <span class='head'>The Ship</span>\n"
f" <span id='shipname'>\n"
f" The {self.ship.fullname}!\n"
f" </span>\n"
@@ -275,6 +276,7 @@ class Campaign:
f" </span>\n"
f"</div>\n"
f"<div id='themission' class='firstrow'>\n"
f" <span class='head'>The Mission</span>\n"
f" <span id='missionloc'>\n"
f" The kobolds have been sent to {self.art} {self.params.loc_desc} {self.params.location}\n"
f" </span><br>\n"
@@ -283,6 +285,7 @@ class Campaign:
f" </span>\n"
f"</div>\n"
f"<div id='theadversary' class='firstrow'>\n"
f" <span class='head'>The Adversary</span>\n"
f" They're challenged by <span id='advname'>{self.params.fullProblem}</span>!\n"
f" <br>\n"
f" <span id='problemstats'>\n"
@@ -320,6 +323,7 @@ class Campaign:
def print_chars(self, html=False):
if html:
print(f"<div id='thekobolds'>\n")
print(f"<span class='head'>The Kobolds</span>\n")
else:
print("The kobolds:")
for k in self.characters:

Loading…
Cancel
Save