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

95 lines
1.4 KiB
SCSS
Raw Normal View History

2026-02-23 22:28:14 +01:00
@mixin running(){
2026-02-24 14:09:50 +01:00
font-family: var(--mono);
2026-02-24 12:40:59 +01:00
font-size: 12px;
2026-02-24 14:09:50 +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(){
2026-02-24 14:09:50 +01:00
font-family: var(--sans);
2026-02-24 12:40:59 +01:00
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;
2026-02-24 14:09:50 +01:00
margin-top: 16mm;
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-03-04 08:33:34 +01:00
margin-left: 26mm;
margin-right: 18mm;
2026-02-24 14:09:50 +01:00
@bottom-center{
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 14:09:50 +01:00
@top-left {
2026-02-23 11:35:07 +01:00
content: string(author);
2026-02-23 22:28:14 +01:00
@include running();
2026-02-24 14:09:50 +01:00
// text-align: left;
// padding-left: 3ch;
2026-02-23 11:35:07 +01:00
}
2026-02-24 14:09:50 +01:00
@top-center {
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-03-04 08:33:34 +01:00
margin-left: 18mm;
margin-right: 26mm;
2026-02-24 14:09:50 +01:00
@bottom-center{
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
}
2026-02-24 14:09:50 +01:00
@top-left {
2026-02-23 11:35:07 +01:00
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;
2026-02-24 14:09:50 +01:00
page: chapter;
}
@page chapter:first{
@top-left{ content: none; }
2026-02-23 11:35:07 +01:00
}
}
// .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;
// }