Browse Source

Update CSS

master
Noëlle 4 years ago
parent
commit
51831b404e
2 changed files with 10 additions and 4 deletions
  1. 6
    0
      assets/kobold.css
  2. 4
    4
      koboldgen.py

+ 6
- 0
assets/kobold.css View File

.firstrow {
float: left;
max-width: 30%;
padding-right: 20px;
}

#theship { #theship {
float: left; float: left;
} }

+ 4
- 4
koboldgen.py View File

lines.append("{pst}") lines.append("{pst}")
if html: if html:
out = ( out = (
f"<div id='theship'>\n"
f"<div id='theship' class='firstrow'>\n"
f" <span id='shipname'>\n" f" <span id='shipname'>\n"
f" The {self.ship.fullname}!\n" f" The {self.ship.fullname}!\n"
f" </span>\n" f" </span>\n"
f" </span><br>\n" f" </span><br>\n"
f" But...<br>\n" f" But...<br>\n"
f" <span id='shipquality2'>\n" f" <span id='shipquality2'>\n"
f" {self.ship.bqual}\n"
f" it {self.ship.bqual}!\n"
f" </span>\n" f" </span>\n"
f"</div>\n" f"</div>\n"
f"<div id='themission'>\n"
f"<div id='themission' class='firstrow'>\n"
f" <span id='missionloc'>\n" f" <span id='missionloc'>\n"
f" The kobolds have been sent to {self.art} {self.params.loc_desc} {self.params.location}\n" f" The kobolds have been sent to {self.art} {self.params.loc_desc} {self.params.location}\n"
f" </span><br>\n" f" </span><br>\n"
f" in order {self.params.mission}.\n" f" in order {self.params.mission}.\n"
f" </span>\n" f" </span>\n"
f"</div>\n" f"</div>\n"
f"<div id='theadversary'>\n"
f"<div id='theadversary' class='firstrow'>\n"
f" They're challenged by <span id='advname'>{self.params.fullProblem}</span>!\n" f" They're challenged by <span id='advname'>{self.params.fullProblem}</span>!\n"
f" <br>\n" f" <br>\n"
f" <span id='problemstats'>\n" f" <span id='problemstats'>\n"

Loading…
Cancel
Save