decor-6-expe/maquette-tests/assets/css/base/_layout.scss

88 lines
1.3 KiB
SCSS
Raw Normal View History

2026-02-23 22:28:14 +01:00
@mixin running(){
2026-02-24 12:40:59 +01:00
font-family: var(--font);
font-size: 12px;
2026-02-23 23:30:33 +01:00
vertical-align: bottom;
padding-bottom: 5mm;
2026-02-23 22:28:14 +01:00
}
2026-02-24 12:40:59 +01:00
@mixin numPage(){
font-family: var(--font);
font-size: 20px;
vertical-align: bottom;
padding-bottom: 5mm;
width: 10mm;
}
2026-02-23 22:28:14 +01:00
2026-02-23 11:35:07 +01:00
@media print{
@page {
size: 165mm 240mm;
margin-top: 10mm;
2026-02-24 09:11:23 +01:00
margin-bottom: 20mm;
2026-02-23 22:28:14 +01:00
bleed: 6mm;
marks: crop;
2026-02-23 11:35:07 +01:00
}
@page:left{
2026-02-23 23:30:33 +01:00
margin-left: 18mm;
margin-right: 26mm;
2026-02-24 12:40:59 +01:00
@bottom-left{
2026-02-23 11:35:07 +01:00
content: counter(page);
2026-02-24 12:40:59 +01:00
@include numPage();
2026-02-23 22:28:14 +01:00
2026-02-24 12:40:59 +01:00
2026-02-23 11:35:07 +01:00
}
2026-02-24 12:40:59 +01:00
@bottom-center {
2026-02-23 11:35:07 +01:00
content: string(author);
2026-02-23 22:28:14 +01:00
@include running();
2026-02-24 12:40:59 +01:00
text-align: left;
padding-left: 3ch;
2026-02-23 11:35:07 +01:00
}
2026-02-24 12:40:59 +01:00
@bottom-right {
2026-02-23 11:35:07 +01:00
content: string(type);
2026-02-23 22:28:14 +01:00
@include running();
2026-02-23 11:35:07 +01:00
}
}
@page:right{
2026-02-23 23:30:33 +01:00
margin-left: 26mm;
margin-right: 18mm;
2026-02-24 12:40:59 +01:00
@bottom-right{
2026-02-23 11:35:07 +01:00
content: counter(page);
2026-02-24 12:40:59 +01:00
@include numPage();
2026-02-23 11:35:07 +01:00
text-align: right;
2026-02-24 12:40:59 +01:00
2026-02-23 11:35:07 +01:00
}
@bottom-left {
content: string(title);
2026-02-23 22:28:14 +01:00
@include running();
2026-02-23 11:35:07 +01:00
}
}
/*p{
background: salmon;
}*/
.chapter{
break-before: right;
}
}
// .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;
// }