0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-17 16:42:41 +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:
Trevor Buckner
2021-12-15 21:48:46 -05:00
committed by GitHub
2 changed files with 16 additions and 18 deletions

View File

@@ -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`;
}; };

View File

@@ -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;