Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
huideyeren committed Aug 27, 2024
1 parent a9f1885 commit 2e6d986
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 28 deletions.
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" class="max" />
<img src="images/cover.png" class="max" />
</section>
</body>
</html>
82 changes: 57 additions & 25 deletions sass/common/_format.scss
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,26 @@ html {
}
}

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

@page title {
width: 100% !important;
height: 100% !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

@top-left {
content: none;
}

@top-right {
content: none;
}
}

// @page title {
// size: $paper-size;
Expand Down Expand Up @@ -178,26 +195,25 @@ html {
}
}

// .colophon {
// page: colophon;
// }
.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;
@page colophon {
width: 100% !important;
height: 100% !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

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

// @right-middle {
// content: none;
Expand All @@ -206,11 +222,27 @@ html {
// @left-middle {
// content: none;
// }
// }

// .backcover {
// page: backcover;
// }

.backcover {
page: backcover;
}

@page backcover {
width: 100% !important;
height: 100% !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
margin-right: 0 !important;
margin-left: 0 !important;

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

// @page backcover {
// size: $paper-size;
Expand Down
3 changes: 1 addition & 2 deletions zenmen.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@page { size: a6 !important; marks: crop !important; bleed: 3mm !important; }
@page :first { margin: 0 !important; }
@page { size: a6 !important; marks: none !important; bleed: 0 !important; }
:root, body { margin: 0 !important; }
img, svg { max-inline-size: 100% !important; max-block-size: 100vb !important; object-fit: contain !important; }

0 comments on commit 2e6d986

Please sign in to comment.