mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-11-17 07:49:05 +01:00
CSS for introduction only
This commit is contained in:
parent
f816c2c950
commit
a3bef9aa89
1 changed files with 44 additions and 0 deletions
|
@ -85,3 +85,47 @@ section[data-type='page'] {
|
|||
section[data-type='chapter'][data-number='Chapter 0'] {
|
||||
counter-reset: page 1;
|
||||
}
|
||||
|
||||
@page intro:right {
|
||||
@bottom-right {
|
||||
content: normal;
|
||||
}
|
||||
@top-right {
|
||||
font-family: $font-sans;
|
||||
font-weight: $font-book;
|
||||
font-size: 8pt;
|
||||
content: string(chapter-title);
|
||||
vertical-align: bottom;
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
}
|
||||
@page intro:left {
|
||||
@bottom-left {
|
||||
content: normal;
|
||||
}
|
||||
@top-left {
|
||||
font-family: $font-sans;
|
||||
font-weight: $font-book;
|
||||
font-size: 8pt;
|
||||
content: string(chapter-title);
|
||||
vertical-align: bottom;
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
@page intro:first {
|
||||
@top-left {
|
||||
content: none;
|
||||
}
|
||||
@top-right {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
|
||||
section[data-type='page']:has(#introduction) {
|
||||
page: intro;
|
||||
prince-page-group: start;
|
||||
h1 {
|
||||
string-set: chapter-title content();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue