Browse Source

Add styling

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

+ 16
- 0
assets/kobold.css View File

@@ -69,6 +69,7 @@
float: left;
margin-right: 20px;
margin-top: 10px;
max-width: 16%;
padding: 5px;
}

@@ -85,6 +86,21 @@
padding-left: 20px;
}

.koboldgadgetname {
font-weight: bold;
}

.koboldgadgetdescription {
font-size: 0.8em;
font-style: italic;
}

.koboldgadgetreuse {
color: red;
font-size: 0.8em;
font-style: italic;
}

.head {
display: block;
font-family: "Reverb";

+ 3
- 3
koboldgen.py View File

@@ -222,9 +222,9 @@ class Character:
f" </span>\n"
f" <br>\n"
f" <span class='koboldgadget'>\n"
f" {self.gadget['name']}<br>\n"
f" {self.gadget['description']}<br>\n"
f" {'Reusable' if self.gadget['reusable'] else ''}\n"
f" <span class='koboldgadgetname'>{self.gadget['name']}</span><br>\n"
f" <span class='koboldgadgetdescription'>{self.gadget['description']}</span>\n"
f" {'<br><span class=\'koboldgadgetreuse\'>Reusable</span>' if self.gadget['reusable'] else ''}\n"
f" </span>"
f"</div>\n"
)

Loading…
Cancel
Save