decor-6-expe/maquette-tests/assets/css/03_layout.css
2026-03-04 13:53:24 +01:00

191 lines
No EOL
2.7 KiB
CSS

@media print {
@page {
size: 165mm 240mm;
margin-top: 16mm;
margin-bottom: 20mm;
bleed: 6mm;
marks: crop;
margin-left: 28mm;
margin-right: 16mm;
}
@page:left {
@top-left{
content: element(navDecor);
}
@bottom-center {
content: counter(page);
font-family: var(--font-title);
font-size: 20px;
vertical-align: bottom;
padding-bottom: 8mm;
}
}
@page:right {
/* margin-left: 18mm;
margin-right: 26mm; */
@top-left{
content: element(nav);
}
@bottom-center {
content: counter(page);
font-family: var(--font-title);
font-size: 20px;
vertical-align: bottom;
padding-bottom: 8mm;
}
}
.chapter {
break-before: right;
page: chapter;
}
@page chapter:first {
@top-left {
content: none;
}
}
@page:blank {
@top-left {
content: none;
}
@bottom-center {
content: none;
}
}
}
.chapter-header h2 {
string-set: title content(text);
}
.chapter-header .author {
string-set: author content(text);
}
.chapter-header .type {
string-set: type content(text);
}
.running-nav{
position: running(nav);
width: 100%;
}
.running-nav-decor{
position: running(navDecor);
width: 100%;
}
.running-nav-decor ul,
.running-nav ul{
display: flex;
gap: calc(var(--unit)*4);
list-style: none;
}
.running-nav-decor li,
.running-nav li{
font-family: var(--font-nav);
font-size: 10px;
line-height: 10px;
padding-left: 6ch;
max-width: 24ch;
text-align: center;
position: relative;
/* color: var(--blue); */
/* text-transform: lowercase;
border: var(--border-grey);
line-height: 1;
padding: 4px 1ch;
min-height: var(--unit);
font-weight: normal;
max-width: 24ch; */
}
.running-nav-decor li::before,
.running-nav li::before{
content: ">";
position: absolute;
left: 0px;
}
/* .running-nav-decor ul li.nav-title,
.running-nav ul li.nav-title{
flex-grow: 2;
}
.running-nav ul li.nav-author{
flex-shrink: 0;
}
.running-nav ul li.nav-title{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.running-nav ul li.nav-title{
flex: 1 1 auto;
min-width: 0;
}
.running-nav ul li.nav-author{
flex: 0 0 auto; /* taille fixe */
}
*/
.running-nav-decor ul li.nav-chevron{
padding: 0;
width: var(--unit);
display: flex;
align-items: center;
justify-content: center;
}
/* .pagedjs_left_page .pagedjs_pagebox{
background: linear-gradient(180deg, transparent 82%, #00009B 100%)!important;
} */
/* .pagedjs_right_page .pagedjs_pagebox{
background: linear-gradient(180deg, transparent 82%, #00009B 100%)!important;
} */