decor-6-expe/maquette-tests/assets/css/03_layout.css

137 lines
1.8 KiB
CSS
Raw Normal View History

2026-03-04 10:52:07 +01:00
@media print {
@page {
size: 165mm 240mm;
2026-03-10 11:49:12 +01:00
margin-top: 25mm;
margin-bottom: 14mm;
2026-03-04 10:52:07 +01:00
bleed: 6mm;
marks: crop;
2026-03-10 11:49:12 +01:00
margin-left: 33mm;
margin-right: 11mm;
2026-03-04 13:53:24 +01:00
2026-03-04 10:52:07 +01:00
}
@page:left {
2026-03-04 13:53:24 +01:00
2026-03-04 10:52:07 +01:00
2026-03-10 11:49:12 +01:00
@top-left {
content: element(decor);
width: 0px;
vertical-align: top;
padding-top: 8mm;
}
@top-right {
content: element(author);
vertical-align: top;
padding-top: 8mm;
width: 100%;
padding-top: 8mm;
text-align: right;
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
@top-left-corner {
2026-03-04 10:52:07 +01:00
content: counter(page);
2026-03-10 11:49:12 +01:00
vertical-align: top;
padding-top: 8mm;
text-align: left;
margin-left: 11mm;
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
2026-03-04 10:52:07 +01:00
}
@page:right {
2026-03-04 13:53:24 +01:00
/* margin-left: 18mm;
margin-right: 26mm; */
2026-03-04 10:52:07 +01:00
2026-03-10 11:49:12 +01:00
@top-left {
content: element(type);
width: 0px;
vertical-align: top;
padding-top: 8mm;
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
@top-right {
content: element(title);
vertical-align: top;
padding-top: calc(8mm + 20px);
/* padding-right: 11mm; */
text-align: left;
position: relative;
left: -11mm;
width: 100%;
}
2026-03-04 10:52:07 +01:00
2026-03-10 11:49:12 +01:00
@top-right-corner {
content: counter(page);
width: 40px;
position: relative;
left: -40px;
text-align: right;
vertical-align: top;
padding-top: 8mm;
2026-03-04 10:52:07 +01:00
}
}
.chapter {
break-before: right;
page: chapter;
}
@page chapter:first {
2026-03-10 11:49:12 +01:00
@top-right {
2026-03-04 10:52:07 +01:00
content: none;
}
}
2026-03-10 11:49:12 +01:00
@page:blank {
2026-03-04 10:52:07 +01:00
@top-left {
content: none;
}
2026-03-10 11:49:12 +01:00
@top-left-corner {
content: none;
}
@top-right {
content: none;
}
@top-center {
2026-03-04 10:52:07 +01:00
content: none;
}
2026-03-10 11:49:12 +01:00
@bottom-center {
content: none;
}
2026-03-04 10:52:07 +01:00
2026-03-10 11:49:12 +01:00
}
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
.nav-title {
position: running(title);
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
.nav-author {
position: running(author);
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
.nav-type {
position: running(type);
2026-03-04 10:52:07 +01:00
}
2026-03-10 11:49:12 +01:00
.nav-decor {
position: running(decor);
}