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 68e2e36 commit 9872f67
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 32 deletions.
2 changes: 1 addition & 1 deletion backcover.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<section class="backcover" id="backcover" role="doc-backcover">
<img src="images/backcover.png" />
<img src="images/backcover.png" class="max" />
</section>
</body>
</html>
2 changes: 1 addition & 1 deletion colophon.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<section class="colophon" id="colophon" role="doc-colophon">
<img src="images/colophon.png" />
<img src="images/colophon.png" class="max" />
</section>
</body>
</html>
8 changes: 4 additions & 4 deletions config-vivliostyle.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
inherit: ["config.yml"]
stylesheet: vivliostyle-a6.css
cover: null
coverimage: null
titlepage: true
titlefile: title.xhtml
colophon: null
coverimage: cover.xhtml
titlepage: false
# titlefile: title.xhtml
colophon: colophon.xhtml
backcover: null
# catalogfile: catalog.yml
bookname: book
Expand Down
2 changes: 1 addition & 1 deletion cover.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<section class="cover" id="cover" role="doc-cover">
<img src="images/title.png" />
<img src="images/title.png" class="max" />
</section>
</body>
</html>
38 changes: 17 additions & 21 deletions sass/common/_contents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ figure > img[src$='.jpeg'] {
image-resolution: 350dpi;
}

p > img, div > img {
p > img, div > img, section > img {
width: auto;
max-width: $content-width;
max-height: $content-height;
}

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

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

// p {
// text-indent: 0;
// hanging-punctuation: none;
// }
// }

/* 改ページ */
.page-break {
Expand Down Expand Up @@ -86,13 +86,7 @@ p > img, div > img {
}

/* 表紙 */
.cover, .title, .backcover {
margin: 0 !important;
img {
max-width: 100vw !important;
max-height: 100vh !important;
}
}


/* 3行あける */
.line-03 {
Expand All @@ -114,9 +108,11 @@ div.note, div.memo, div.tip, div.info, div.warning, div.important, div.caution,
}

img.max {
margin: 0;
width: 100%;
height: 100vh;
margin: 0 !important;
max-width: 100vw;
width: auto;
max-height: 100vh;
height: auto;
}

pre {
Expand Down
28 changes: 25 additions & 3 deletions sass/common/_format.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ html {
}

@page cover {
margin: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

@top-left {
content: none;
Expand All @@ -107,7 +110,10 @@ html {
}

@page title {
margin: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

@top-left {
content: none;
Expand Down Expand Up @@ -144,20 +150,36 @@ html {
}

@page colophon {
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

@top-left {
content: none;
}
@top-right {
content: none;
}

@right-middle {
content: none;
}

@left-middle {
content: none;
}
}

.backcover {
page: backcover;
}

@page backcover {
margin: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

@top-left {
content: none;
Expand Down
2 changes: 1 addition & 1 deletion title.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>
<body>
<section class="title" id="title" role="doc-title">
<img src="images/title.png" />
<img src="images/title.png" class="max" />
</section>
</body>
</html>

0 comments on commit 9872f67

Please sign in to comment.