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 3c7070a commit 96f5ced
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 49 deletions.
6 changes: 4 additions & 2 deletions backcover.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<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/backcover.png" class="single-html"/>
<section class="backcover">
<img src="images/backcover.png" />
</section>
</body>
</html>
4 changes: 3 additions & 1 deletion colophon.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<title>奥付</title>
</head>
<body>
<img src="images/colophon.png" class="single-html" />
<section class="colophon">
<img src="images/colophon.png" />
</section>
</body>
</html>
2 changes: 1 addition & 1 deletion config-vivliostyle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
inherit: ["config.yml"]
stylesheet: vivliostyle-a6.css
cover: title.xhtml
cover: cover.xhtml
coverimage: null
titlepage: false
titlefile: null
Expand Down
6 changes: 4 additions & 2 deletions cover.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
<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/cover.png" class="single-html"/>
<section class="cover">
<img src="images/title.png" />
</section>
</body>
</html>
36 changes: 19 additions & 17 deletions sass/common/_contents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,19 @@ p > img, div > img {

/* 奥付 */
.colophon {
font-size: 7pt;
// 3行空け
margin-block-start: $base-line-height * 3;

p {
text-indent: 0;
hanging-punctuation: none;
// font-size: 7pt;
// // 3行空け
// margin-block-start: $base-line-height * 3;

// p {
// text-indent: 0;
// hanging-punctuation: none;
// }
img {
display: block;
margin: 0;
max-width: 100%;
height: auto;
}
}

Expand Down Expand Up @@ -86,10 +92,12 @@ p > img, div > img {
}

/* 表紙 */
.cover {
h1 {
line-height: 17.75em;
margin-block-start: 1.75em;
.cover, .title, .backcover {
img {
display: block;
margin: 0;
max-width: 100%;
height: auto;
}
}

Expand Down Expand Up @@ -118,12 +126,6 @@ img.max {
height: 100vh;
}

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

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

/* タイトル文字列セット */
.title {
string-set: title content();
}

@page {
size: $paper-width $paper-height;
// 行送り * 行数
Expand Down Expand Up @@ -82,40 +77,51 @@ html {
}
}

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

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

@right-middle {
content: none;
}

@left-middle {
content: none;
}
}

/* 表紙ページ */
.cover {
page: cover;
.title {
page: title;
}

@page cover {
@page title {
margin: 0;
padding: 0;
@top-left {
content: none;
}
@top-right {
content: none;
}

@right-middle {
content: none;
}

@left-middle {
content: none;
}
}

/* 目次ページ */
Expand All @@ -132,6 +138,52 @@ html {
}
}

.colophon {
page: colophon;
}

@page colophon {
margin: 0;
padding: 0;
@top-left {
content: none;
}
@top-right {
content: none;
}

@right-middle {
content: none;
}

@left-middle {
content: none;
}
}

.backcover {
page: backcover;
}

@page backcover {
margin: 0;
padding: 0;
@top-left {
content: none;
}
@top-right {
content: none;
}

@right-middle {
content: none;
}

@left-middle {
content: none;
}
}

@media print {
.cover {
content: none;
Expand Down
4 changes: 3 additions & 1 deletion title.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<title></title>
</head>
<body>
<img src="images/title.png" class="single-html"/>
<section class="title">
<img src="images/title.png" />
</section>
</body>
</html>

0 comments on commit 96f5ced

Please sign in to comment.