Skip to content

Commit 48bf644

Browse files
committed
some fixes in pages format
1 parent f86b4d5 commit 48bf644

File tree

3 files changed

+193
-5
lines changed

3 files changed

+193
-5
lines changed

img/monogram.svg

+172
Loading

static/01-titlepage.html

+1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
<dt>Kompilacja</dt>
1515
<dd>https://github.com/placek/na<br>Paweł Placzyński; wydanie v1.3.0; Łódź 2021</dd>
1616
</dl>
17+
<object class="logo" data="./img/monogram.svg"></object>
1718
</article>

styles/main.css

+20-5
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
@top-left { display: none; }
4040
@top-right { display: none; }
4141
}
42-
@page:blank {
43-
@top-left { display: none; }
44-
@top-right { display: none; }
45-
}
4642
*::footnote-call {
4743
content: none;
4844
line-height: none;
@@ -138,21 +134,34 @@ code {
138134
break-after: page;
139135
}
140136

137+
.title object {
138+
width: 100%;
139+
height: 20%;
140+
-prince-float-placement: bottom;
141+
-prince-float-reference: page;
142+
}
141143
.title dl {
142144
counter-reset: page 0;
143145
}
144146

145147
/* ARTICLES */
146148
@page article:left {
147149
@top-left {
148-
content: string(chapter-title);
150+
content: counter(page, upper-roman);
149151
}
150152
}
151153
@page article:right {
154+
@top-left {
155+
content: string(chapter-title);
156+
}
152157
@top-right {
153158
content: counter(page, upper-roman);
154159
}
155160
}
161+
@page article:blank {
162+
@top-left { display: none; }
163+
@top-right { display: none; }
164+
}
156165
.article {
157166
page: article;
158167
}
@@ -181,10 +190,16 @@ code {
181190
}
182191
@page book:left {
183192
@top-left {
193+
content: counter(page);
194+
}
195+
@top-right {
184196
content: string(book-title) " " counter(chapter);
185197
}
186198
}
187199
@page book:right {
200+
@top-left {
201+
content: string(book-title) " " counter(chapter);
202+
}
188203
@top-right {
189204
content: counter(page);
190205
}

0 commit comments

Comments
 (0)