0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 15: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',
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',
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',

View File

@@ -385,13 +385,14 @@ body {
}
}
.pageNumber{
position : absolute;
right : 2px;
bottom : 22px;
width : 50px;
font-size : 0.9em;
color : #c9ad6a;
text-align : center;
position : absolute;
right : 2px;
bottom : 22px;
width : 50px;
font-size : 0.9em;
color : #c9ad6a;
text-align : center;
text-indent : 0;
&.auto::after {
content : counter(phb-page-numbers);
}
@@ -605,6 +606,7 @@ body {
.inline-block {
display : inline-block;
text-indent : initial;
line-height : 1.3em;
}
div {
column-gap : 0.5cm; //Default spacing if a div uses multicolumns