Skip to content

Commit

Permalink
update....
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Jul 5, 2024
1 parent d1bc4b5 commit 3c7070a
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backcover.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<title>裏表紙</title>
</head>
<body>
<img src="images/backcover.png" />
<img src="images/backcover.png" class="single-html"/>
</body>
</html>
2 changes: 1 addition & 1 deletion colophon.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<title>奥付</title>
</head>
<body>
<img src="images/colophon.png" />
<img src="images/colophon.png" class="single-html" />
</body>
</html>
3 changes: 2 additions & 1 deletion config-vivliostyle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
inherit: ["config.yml"]
stylesheet: vivliostyle-a6.css
coverimage: title.png
cover: title.xhtml
coverimage: null
titlepage: false
titlefile: null
colophon: colophon.xhtml
Expand Down
2 changes: 1 addition & 1 deletion cover.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<title>表紙</title>
</head>
<body>
<img src="images/cover.png" />
<img src="images/cover.png" class="single-html"/>
</body>
</html>
6 changes: 6 additions & 0 deletions sass/common/_contents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ img.max {
height: 100vh;
}

img.single-html {
margin: 0;
max-width: 100%;
max-height: 100%;
}

pre {
box-decoration-break: clone;
}
Expand Down
12 changes: 12 additions & 0 deletions sass/common/_format.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,25 @@ html {
}

@page :first {
size: $paper-width $paper-height;
// 行送り * 行数
width: $paper-width;
// フォントサイズ * 文字数
height: $paper-height;
margin: 0;
padding: 0;
marks: $marks;
}

@page :last {
size: $paper-width $paper-height;
// 行送り * 行数
width: $paper-width;
// フォントサイズ * 文字数
height: $paper-height;
margin: 0;
padding: 0;
marks: $marks;
}

/* 表紙ページ */
Expand Down
4 changes: 2 additions & 2 deletions title.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:ops="http://www.idpf.org/2007/ops" xml:lang="ja">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="colophon.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<meta name="generator" content="Re:VIEW" />
<title></title>
</head>
<body>
<img src="images/title.png" />
<img src="images/title.png" class="single-html"/>
</body>
</html>

0 comments on commit 3c7070a

Please sign in to comment.