Skip to content

Instantly share code, notes, and snippets.

@johnnygizmo
Last active October 9, 2021 15:32
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save johnnygizmo/8e609b609af72a07739387535f366499 to your computer and use it in GitHub Desktop.
Save johnnygizmo/8e609b609af72a07739387535f366499 to your computer and use it in GitHub Desktop.
BattleScribe Replacement CSS Version 1
/*
This file is based off the CSS output of the BattleScribe App. This is only meant to pretty up the output a little
Instructions:
1: Create a folder for your rosters
2: Place this file (gizmoscribe.css) in the folder
3: Place a png image file (make sure it's square) with your army logo in the same folder and call it logo.png
4: Save your rosters in HTML format to the folder
5: Edit the HTML files in a text Editor of choice (notepad, notepad++, etc)
6: Delete the <style></style> section at the top of the HTML and replace it with the following 2 lines:
<link rel="stylesheet" href="gizmoscribe.css">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
7: Load the HTML file in your browser and print
*/
body.battlescribe {
margin: 0px;
padding: 0px;
border-width: 0px;
}
div.battlescribe {
width: 96%;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 8px;
border-width: 0px;
font-family: 'Ubuntu', sans-serif;
font-size: 10px;
color: #444444;
text-align: left;
}
div.battlescribe h1,
div.battlescribe h2,
div.battlescribe h3,
div.battlescribe h4 {
margin: 0px;
padding: 0px;
border-width: 0px;
}
div.battlescribe h1 {
margin: 8px 0px 0px 0px;
background-image: url("logo.png");
background-size: 35px 35px;
background-repeat: no-repeat;
padding-left:40px;
font-size: 30px;
}
div.battlescribe h2 {
font-size: 15px;
}
div.force> h2 {
display:none;
font-size: 15px;
}
div.summary> h2 {
font-size: 25px;
}
div.battlescribe h3 {
font-size: 12px;
display:none!important;
}
div.battlescribe h4 {
font-size: 14px;
}
div.battlescribe div.force {
margin: 18px 0px 0px 0px;
padding: 0px;
border-width: 0px;
}
div.battlescribe div.summary {
margin: 16px 0px 0px 0px;
padding: 0px;
border-width: 0px;
}
div.battlescribe ul {
margin: 0px 0px 0px 6px;
padding: 0px;
border-width: 0px;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
}
div.battlescribe li {
margin: 8px 0px 0px 0px;
padding: 0px;
border-width: 0px;
}
div.battlescribe li.category {
margin: 16px 0px 0px 0px;
padding: 0px;
border-width: 0px;
}
div.battlescribe li.rootselection {
margin: 10px 0px 0px 0px;
padding: 8px;
border-width: 1px;
border-style: solid;
border-color: #BBBBBB;
page-break-after:always;
break-after:always;
-moz-box-shadow: 8px 8px 5px #888;
-webkit-box-shadow: 8px 8px 5px #888;
box-shadow: 8px 8px 5px #888;
}
li.rootselection table:first-of-type{
font-size: 1.3em;
}
table tr:first-of-type th{
background-color: lightgreen;
}
li.rootselection>h4{
font-size: 2em;
background-color:lightgrey;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
padding:3px 0px 3px 8px;
}
li.rootselection>ul>li>h4{
background-color:lightblue;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
padding:3px 0px 3px 8px;
}
li.rootselection>ul>li>ul{
margin-left: 6px!important;
}
li.rootselection table:first-of-type tr td{
border-left:1pt lightgrey solid;
min-width: 15px;
}
div.battlescribe p {
margin: 4px 0px 0px 16px;
padding: 0px;
border-width: 0px;
font-size: 12px;
}
div.battlescribe table {
margin: 8px 0px 0px 16px;
padding: 0px;
border-collapse: collapse;
font-size: 12px;
color: #444444;
}
div.battlescribe tr {
border-width: 1px;
border-style: solid;
border-color: #BBBBBB;
}
div.battlescribe th {
padding: 4px;
margin: 0px;
border-width: 0px;
font-weight: bold;
text-align: left;
}
div.battlescribe td {
padding: 4px;
margin: 0px;
border-width: 0px;
text-align: left;
}
div.battlescribe table.statistics {
}
div.battlescribe table.statistics tr.subtotal {
font-weight: bold;
}
div.battlescribe table.statistics tr.total {
font-size: 13px;
font-weight: bold;
}
div.battlescribe table.statistics th {
border-width: 1px;
border-style: solid;
border-color: #BBBBBB;
font-size: 13px;
text-align: right;
}
div.battlescribe table.statistics th.center {
text-align: center;
}
div.battlescribe table.statistics td {
border-width: 1px;
border-style: solid;
border-color: #BBBBBB;
text-align: right;
}
div.battlescribe .italic {
font-style: italic;
}
div.battlescribe .bold {
font-weight: bold;
}
div.summary>p {
border-bottom: 1pt solid grey;
padding-bottom: 10px;
line-height: 18px;
}
div.summary>p>span.bold {
font-size:13px;
font-weight:bold;
margin-right:10px;
background-color:lightgreen;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
padding:3px 8px 3px 8px;
}
@Lawrence-of-course
Copy link

This is exactly what I was looking for - do you mind if I fork it and adapt for my admech army?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment