Commit 71160a1e authored by julientaq's avatar julientaq

example for element + string + counter

parent a3112bc6
node_modules node_modules
\ No newline at end of file dist
...@@ -11,33 +11,33 @@ ...@@ -11,33 +11,33 @@
@page :right { @page :right {
@top-right { @top-right {
content: counter(page); content: element(chapterTitleRun) " " counter(page);
padding-top: 2.6em; padding-top: 2.6em;
font-variant: oldstyle-nums; font-variant: oldstyle-nums;
text-align: right; text-align: right;
} }
@top-center { /* @top-center {
margin-top: 1.15em; margin-top: 1.15em;
content: element(chapterTitleRun); content: element(chapterTitleRun);
margin-right: -2em; margin-right: -2em;
text-align: right; text-align: right;
} } */
} }
@page :left { @page :left {
@top-left { @top-left {
content: counter(page); content: counter(page) " " element(chapterTitleRun);
padding-top: 2.6em; padding-top: 2.6em;
font-size: 9pt; font-size: 9pt;
line-height: 17px; line-height: 17px;
font-variant: oldstyle-nums; font-variant: oldstyle-nums;
} }
@top-center { /* @top-center {
margin-top: 1.15em; margin-top: 1.15em;
content: element(chapterTitleRun); content: element(chapterTitleRun);
margin-left: -2em; margin-left: -2em;
text-align: left; text-align: left;
} } */
} }
@page :blank { @page :blank {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment