Skip to content

Commit efe527b

Browse files
committed
simple magrin notes width same as other margin notes
1 parent fc39fdc commit efe527b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

book.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@
271271
'pagenumberBottomMargin': 0.3,
272272
'pageHeight': 8.3,
273273
'pageWidth': 5.8,
274-
'marginNotesWidth': 1.0,
275-
'marginNotesSeparatorWidth': 0.09,
274+
'marginNotesWidth': 1.5,
275+
'marginNotesSeparatorWidth': 1.09,
276276
'marginNotesVerticalSeparatorWidth': 0.09,
277277
'lengthUnit': 'in'
278278
};
@@ -378,6 +378,8 @@
378378
var unit = pagination.config('lengthUnit'),
379379
marginNotesWidthNumber = pagination.config('marginNotesWidth') * pagination.config('enableMarginNotes'),
380380
marginNotesWidth = marginNotesWidthNumber + unit,
381+
simpleMarginNotesWidth = pagination.config('marginNotesWidth') + unit,
382+
simpleMarginNotesWidthAndMargin = pagination.config('marginNotesWidth') + pagination.config('marginNotesVerticalSeparatorWidth') + unit,
381383
marginNotesSeparatorWidthNumber = pagination.config('marginNotesSeparatorWidth') * pagination.config('enableMarginNotes'),
382384
marginNotesSeparatorWidth = marginNotesSeparatorWidthNumber + unit,
383385
marginNotesVerticalSeparator = pagination.config('marginNotesVerticalSeparatorWidth') + unit,
@@ -454,12 +456,12 @@
454456
+ "\n.pagination-contents-column-separator {width:" + contentsColumnSeparatorWidth + ";}" +
455457
// Footnotes in non-CSS Regions browsers will render as right margin notes.
456458
"\n.pagination-simple .pagination-footnote > span, .pagination-simple .pagination-marginnote > span {" +
457-
"position: absolute; right: 0in; width: 1in;}" +
459+
"position: absolute; right: 0in; width: " + simpleMarginNotesWidth + ";}" +
460+
"\n.pagination-simple {padding-right:" + simpleMarginNotesWidthAndMargin + ";}" +
458461
"\n.pagination-marginnotes, .pagination-marginnote-item {width:" + marginNotesWidth + ";}" +
459462
"\n.pagination-marginnote-item {margin-bottom:" + marginNotesVerticalSeparator + ";}" +
460463
"\n.pagination-marginnotes-separator {width:" + marginNotesSeparatorWidth + ";}" +
461464
"\n.pagination-main-contents-container, .pagination-marginnotes, .pagination-marginnotes-separator {height:" + contentsHeight + ";}";
462-
463465
};
464466

465467

test9.html

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33

44
<head>
5+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
56
<link href='http://fonts.googleapis.com/css?family=Goudy+Bookletter+1911' rel='stylesheet' type='text/css'>
67
<title>The Malay Archipelago</title>
78
<style>

0 commit comments

Comments
 (0)