Unverified Commit 086fbb9e authored by KlaraSkinner's avatar KlaraSkinner Committed by GitHub
Browse files

Merge pull request #14 from electricbookworks/pdf-footnote-marker-position

PDF footnote-marker position
parents 3a904aef e6559fa4
......@@ -54,12 +54,48 @@ exclude:
- /*/images/app
# Temporarily exclude these and keep_files them below
# for faster builds where you don't need to refresh these.
# - /assets
# - /assets/fonts
# - /book/fonts
# - /book/styles
# - /book/text/0-* # prelims
# - /book/text/01-00*
# - /book/text/01-01*
# - /book/text/01-02*
# - /book/text/01-03*
# - /book/text/01-04*
# - /book/text/01-05*
# - /book/text/02-00*
# - /book/text/02-06*
# - /book/text/02-07*
# - /book/text/02-08*
# - /book/text/02-09*
# - /book/text/03-00*
# - /book/text/03-11*
# - /book/text/03-12*
# - /book/text/03-13*
# - /book/text/03-14*
# - /book/text/04-00*
# - /book/text/04-15*
# - /book/text/04-16*
# - /book/text/04-17*
# - /book/text/05-00*
# - /book/text/05-18*
# - /book/text/06-00*
# - /book/text/06-19*
# - /book/text/50-00*
# - /book/text/50-01*
# - /book/text/50-02*
# - /book/text/50-03*
# - /book/text/50-04*
# - /book/text/50-05*
# - /book/text/50-06*
# - /book/text/50-07*
# - /book/text/60-00*
# Populate the keep_files list for temporary faster builds
# or to keep previously generated files for other formats.
keep_files:
# - assets
# - assets/fonts
# - book/fonts
# - book/styles
// Footnotes
.page-footnote {
float: footnote;
footnote-style-position: inside;
text-indent: -($line-height-default);
margin-left: $line-height-default;
&:first-of-type {
border-top: $rule-thickness solid $color-text-secondary;
padding-top: $line-height-default;
}
p {
font-size: 9pt;
margin-bottom: 0;
}
}
// The numbers in front of footnote text
*::footnote-marker {
float: left;
font-size: 9pt;
width: 0;
}
......@@ -9,7 +9,8 @@
$print-notes: true !default;
@if $print-notes {
// Footnote reference in text
// Footnote reference in text, and see
// *::footnote-call below
.footnote {
line-height: inherit;
// Ensure footnote refs in headings are small
......@@ -45,14 +46,27 @@ $print-notes: true !default;
// For styling see https://www.princexml.com/doc-prince/#footnote-calls
.page-footnote {
float: footnote;
font-size: $font-size-default * $font-size-smaller;
footnote-style-position: inside;
text-indent: -($line-height-default * 1.5);
margin-left: $line-height-default * 1.5;
text-indent: -($line-height-default);
margin-left: $line-height-default;
// Rule above
&:first-of-type {
border-top: $rule-thickness solid $color-text-secondary;
padding-top: $line-height-default;
}
p {
margin-bottom: 0;
text-indent: 0;
&:first-of-type {
}
}
}
// The numbers in front of footnote text
*::footnote-marker {
float: left;
width: $line-height-default * 1.5;
font-size: $font-size-default * $font-size-smaller;
width: 0;
}
// Avoid page-footnotes created by footnotes.js
......@@ -76,9 +90,12 @@ $print-notes: true !default;
// _print-base-typography.scss
*::footnote-call {
content: counter(footnote);
font-size: $font-size-default * $font-size-smaller;
font-size: $font-size-default * 0.7;
vertical-align: super;
line-height: none;
// Shift down
top: $font-size-default / 4;
position: relative;
}
}
......@@ -425,7 +425,6 @@ $print-page-setup-lightning-source: false !default; // Removes crop marks and se
@import "custom/pdf-copyright-page";
@import "custom/pdf-contents-page";
@import "custom/pdf-part-page";
@import "custom/pdf-footnotes";
@import "custom/pdf-dps-images";
// Resets
......
......@@ -423,7 +423,6 @@ $print-page-headers-footers-style: true !default; // Sets styling for headers an
@import "custom/pdf-copyright-page";
@import "custom/pdf-contents-page";
@import "custom/pdf-part-page";
@import "custom/pdf-footnotes";
@import "custom/pdf-dps-images";
// Resets
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment