mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-17 12:23:21 +00:00
Merge pull request #1863 from jeddai/random-fixes
Cover page v3 CSS and table of contents snippet fixes
This commit is contained in:
@@ -100,25 +100,25 @@ const subtitles = [
|
|||||||
|
|
||||||
module.exports = ()=>{
|
module.exports = ()=>{
|
||||||
return `<style>
|
return `<style>
|
||||||
.phb#p1{ text-align:center; }
|
.page#p1{ text-align:center; counter-increment: none; }
|
||||||
.phb#p1:after{ display:none; }
|
.page#p1:after{ display:none; }
|
||||||
.phb#p2 { counter-reset:phb-page-numbers; }
|
.page:nth-child(2n) .pageNumber { left: inherit !important; right: 2px !important; }
|
||||||
.phb:nth-child(2n) .pageNumber { left: inherit !important; right: 2px !important; }
|
.page:nth-child(2n+1) .pageNumber { right: inherit !important; left: 2px !important; }
|
||||||
.phb:nth-child(2n+1) .pageNumber { right: inherit !important; left: 2px !important; }
|
.page:nth-child(2n)::after { transform: scaleX(1); }
|
||||||
.phb:nth-child(2n)::after { transform: scaleX(1); }
|
.page:nth-child(2n+1)::after { transform: scaleX(-1); }
|
||||||
.phb:nth-child(2n+1)::after { transform: scaleX(-1); }
|
.page:nth-child(2n) .footnote { left: inherit; text-align: right; }
|
||||||
.phb:nth-child(2n) .footnote { left: inherit; text-align: right; }
|
.page:nth-child(2n+1) .footnote { left: 80px; text-align: left; }
|
||||||
.phb:nth-child(2n+1) .footnote { left: 80px; text-align: left; }
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div style='margin-top:450px;'></div>
|
{{margin-top:225px}}
|
||||||
|
|
||||||
# ${_.sample(titles)}
|
# ${_.sample(titles)}
|
||||||
|
|
||||||
<div style='margin-top:25px'></div>
|
{{margin-top:25px}}
|
||||||
<div class='wide'>
|
|
||||||
|
{{wide
|
||||||
##### ${_.sample(subtitles)}
|
##### ${_.sample(subtitles)}
|
||||||
</div>
|
}}
|
||||||
|
|
||||||
\\page`;
|
\\page`;
|
||||||
};
|
};
|
||||||
@@ -653,7 +653,7 @@ body {
|
|||||||
break-inside : avoid;
|
break-inside : avoid;
|
||||||
h1 {
|
h1 {
|
||||||
text-align : center;
|
text-align : center;
|
||||||
margin-bottom : 0cm;
|
margin-bottom : 0.3cm;
|
||||||
}
|
}
|
||||||
a{
|
a{
|
||||||
display : table;
|
display : table;
|
||||||
@@ -664,14 +664,12 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
margin-top : 0.14cm;
|
margin-top : 0.2cm;
|
||||||
|
line-height : 0.4cm;
|
||||||
& + ul li {
|
& + ul li {
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
& > ul {
|
|
||||||
margin-top: 0.52cm;
|
|
||||||
}
|
|
||||||
ul{
|
ul{
|
||||||
padding-left : 0;
|
padding-left : 0;
|
||||||
list-style-type : none;
|
list-style-type : none;
|
||||||
|
|||||||
Reference in New Issue
Block a user