Skip to content

Commit

Permalink
印刷用に表紙省略・隠しノンブル付与
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Mar 26, 2024
1 parent faa007d commit 70195cb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions config-vivliostyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ inherit: ["config.yml"]
stylesheet: vivliostyle-a5.css
catalogfile: catalog.yml
bookname: book
coverimage: null
highlight:
html: "rouge"
17 changes: 17 additions & 0 deletions sass/common/_format.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ html {
// フォントサイズ * 文字数
height: $content-height;
margin: auto;
marks: crop;
}

@page :left {
Expand All @@ -37,6 +38,22 @@ html {
margin-top: 6mm;
writing-mode: horizontal-tb;
}

@right-middle {
/* 隠しノンブル */
font-size: 6pt;
margin-right: -3mm !important;
text-align: start !important;
content: counter(page);
}

@left-middle {
/* 隠しノンブル */
font-size: 6pt;
margin-left: -3mm !important;
align-items: end !important;
content: counter(page);
}
}

@page :right {
Expand Down

0 comments on commit 70195cb

Please sign in to comment.