0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 20:52:40 +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

@@ -385,13 +385,14 @@ body {
} }
} }
.pageNumber{ .pageNumber{
position : absolute; position : absolute;
right : 2px; right : 2px;
bottom : 22px; bottom : 22px;
width : 50px; width : 50px;
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