0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-16 16:52:39 +00:00

Merge pull request #1483 from Gazook89/pageNumber-v3

v3 Snippets: Page Numbers
This commit is contained in:
Trevor Buckner
2021-07-30 22:35:58 -04:00
committed by GitHub
2 changed files with 11 additions and 9 deletions

View File

@@ -73,12 +73,12 @@ module.exports = [
{ {
name : 'Page Number', name : 'Page Number',
icon : 'fas fa-bookmark', icon : 'fas fa-bookmark',
gen : '{{pageNumber\n1\n}}\n{{footnote\nPART 1 | FANCINESS\n}}\n\n' gen : '{{pageNumber 1}}\n{{footnote PART 1 | SECTION NAME}}\n\n'
}, },
{ {
name : 'Auto-incrementing Page Number', name : 'Auto-incrementing Page Number',
icon : 'fas fa-sort-numeric-down', icon : 'fas fa-sort-numeric-down',
gen : '{{pageNumber,auto\n}}\n\n' gen : '{{pageNumber,auto}}\n{{footnote PART 1 | SECTION NAME}}\n\n'
}, },
{ {
name : 'Link to page', name : 'Link to page',

View File

@@ -392,6 +392,7 @@ body {
font-size : 0.9em; font-size : 0.9em;
color : #c9ad6a; color : #c9ad6a;
text-align : center; text-align : center;
text-indent : 0;
&.auto::after { &.auto::after {
content : counter(phb-page-numbers); content : counter(phb-page-numbers);
} }
@@ -605,6 +606,7 @@ body {
.inline-block { .inline-block {
display : inline-block; display : inline-block;
text-indent : initial; text-indent : initial;
line-height : 1.3em;
} }
div { div {
column-gap : 0.5cm; //Default spacing if a div uses multicolumns column-gap : 0.5cm; //Default spacing if a div uses multicolumns