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 229b75f commit 91eee79
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 128 deletions.
6 changes: 3 additions & 3 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: cover.xhtml
# coverimage: null
# cover: null
coverimage: title.png
titlepage: false
# titlefile: title.xhtml
colophon: colophon.xhtml
colophon: true
backcover: null
# catalogfile: catalog.yml
bookname: book
Expand Down
269 changes: 144 additions & 125 deletions sass/common/_format.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,27 @@ html {
}
}

@page :first { margin: 0 !important; }
@page :last { margin: 0 !important; }
@page :first {
margin: 0 !important;

@top-left {
content: none;
}

@top-right {
content: none;
}
}

@page :last {
@top-left {
content: none;
}

@top-right {
content: none;
}
}

@page :right {

Expand Down Expand Up @@ -81,69 +100,69 @@ html {
}
}

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

@page cover {
size: $paper-size;
bleed: $bleed-size;
width: $paper-width;
height: $paper-height;
marks: $marks;
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;
}
}

.title {
page: title;
}

@page title {
size: $paper-size;
bleed: $bleed-size;
width: $paper-width;
height: $paper-height;
marks: $marks;
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;
}
}
// /* 表紙ページ */
// .cover {
// page: cover;
// }

// @page cover {
// size: $paper-size;
// bleed: $bleed-size;
// width: $paper-width;
// height: $paper-height;
// marks: $marks;
// 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;
// }
// }

// .title {
// page: title;
// }

// @page title {
// size: $paper-size;
// bleed: $bleed-size;
// width: $paper-width;
// height: $paper-height;
// marks: $marks;
// 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;
// }
// }

/* 目次ページ */
.toc {
Expand All @@ -159,67 +178,67 @@ html {
}
}

.colophon {
page: colophon;
}

@page colophon {
size: $paper-size;
width: $paper-width;
height: $paper-height;
marks: $marks;
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 {
size: $paper-size;
bleed: $bleed-size;
width: $paper-width;
height: $paper-height;
marks: $marks;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

@top-left {
content: none;
}
// .colophon {
// page: colophon;
// }

// @page colophon {
// size: $paper-size;
// width: $paper-width;
// height: $paper-height;
// marks: $marks;
// 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 {
// size: $paper-size;
// bleed: $bleed-size;
// width: $paper-width;
// height: $paper-height;
// marks: $marks;
// 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;
}
}
// @top-right {
// content: none;
// }

// @right-middle {
// content: none;
// }

// @left-middle {
// content: none;
// }
// }

@media print {
.cover {
Expand Down

0 comments on commit 91eee79

Please sign in to comment.