add intro and chapter wrapper

This commit is contained in:
Julie Blanc 2026-04-21 13:52:57 +02:00
parent 92b92a1146
commit 07047d97ea
8 changed files with 130 additions and 55 deletions

View file

@ -150,20 +150,6 @@ $unit: calc($content-w/7);
}
// #section__content{
// columns: 2;
// column-gap: $gap;
// column-fill: auto;
// }
// Title chapter
// #section__content h1{
// break-before: left;
// break-after: page;
// page: chapter;
// }
#section__content h1 .h1-count{
string-set: chapterCount content(text);
}
@ -172,13 +158,20 @@ $unit: calc($content-w/7);
string-set: chapter content(text);
}
#section__content{
.chapter{
break-before: left;
}
.intro{
color: red;
}
#section__content h1:first-of-type{
break-before: right;
// background-color: red;
}
// #section__content{
// break-before: left;
// }
// #section__content h1:first-of-type{
// break-before: right;
// }

View file

@ -2,6 +2,7 @@
#section__content{
@ -15,7 +16,7 @@
// }
h1{
break-before: page;
// break-before: page;
break-after: page;
position: absolute;