add intro and chapter wrapper
This commit is contained in:
parent
92b92a1146
commit
07047d97ea
8 changed files with 130 additions and 55 deletions
|
|
@ -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;
|
||||
// }
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
#section__content{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -15,7 +16,7 @@
|
|||
// }
|
||||
|
||||
h1{
|
||||
break-before: page;
|
||||
// break-before: page;
|
||||
break-after: page;
|
||||
|
||||
position: absolute;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue