0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 03:52:40 +00:00

Added in new auto-incrementing snippet

This commit is contained in:
Scott Tolksdorf
2016-06-05 13:09:37 -04:00
parent 5969e45087
commit 0d25a972ba
3 changed files with 33 additions and 0 deletions

View File

@@ -57,6 +57,12 @@ module.exports = [
gen : "<div class='pageNumber'>1</div>\n<div class='footnote'>PART 1 | FANCINESS</div>\n\n"
},
{
name : "Auto-incrementing Page Number",
icon : 'fa-sort-numeric-asc',
gen : "<div class='pageNumber auto'></div>\n"
},
]
},
@@ -141,6 +147,24 @@ module.exports = [
"| 17th | 4 or lower |\n\n",
].join('\n');
},
},
{
name : 'Wide Table',
icon : 'fa-list',
gen : function(){
return [
"<div class='wide'>",
"##### Cookie Tastiness",
"| Tastiness | Cookie Type |",
"|:----:|:-------------|",
"| -5 | Raisin |",
"| 8th | Chocolate Chip |",
"| 11th | 2 or lower |",
"| 14th | 3 or lower |",
"| 17th | 4 or lower |",
"</div>\n\n"
].join('\n');
},
}
]
},

View File

@@ -11,6 +11,9 @@
@headerText : #58180D;
@monsterStatBackground : #FDF1DC;
@page { margin: 0; }
body {
counter-reset: phb-page-numbers;
}
.useSansSerif(){
font-family : ScalySans;
em{
@@ -291,6 +294,11 @@
font-size : 0.9em;
color : #c9ad6a;
text-align : center;
&.auto::after {
counter-increment: phb-page-numbers;
content: counter(phb-page-numbers);
}
}
.footnote{
position : absolute;