mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 11:22:40 +00:00
Tweaks in response to CC comments
This commit is contained in:
@@ -797,10 +797,85 @@
|
|||||||
// * TABLE OF CONTENTS
|
// * TABLE OF CONTENTS
|
||||||
// *****************************/
|
// *****************************/
|
||||||
|
|
||||||
// Default Exclusions
|
// Additional Default Exclusions
|
||||||
// Anything not excluded is included, default Headers are H1, H2, and H3.
|
|
||||||
.monster { --TOC: exclude; }
|
.monster { --TOC: exclude; }
|
||||||
|
|
||||||
|
.page:has(.partCover) {
|
||||||
|
--TOC: exclude;
|
||||||
|
& h1 {
|
||||||
|
--TOC: include;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
&:has(.toc)::after { display : none; }
|
||||||
|
.toc {
|
||||||
|
-webkit-column-break-inside : avoid;
|
||||||
|
page-break-inside : avoid;
|
||||||
|
break-inside : avoid;
|
||||||
|
h1 {
|
||||||
|
margin-bottom : 0.3cm;
|
||||||
|
text-align : center;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
display : inline;
|
||||||
|
color : inherit;
|
||||||
|
text-decoration : none;
|
||||||
|
&:hover { text-decoration : underline; }
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
margin-top : 0.2cm;
|
||||||
|
line-height : 0.4cm;
|
||||||
|
& + ul li { line-height : 1.2em; }
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
padding-left : 0;
|
||||||
|
margin-top : 0;
|
||||||
|
list-style-type : none;
|
||||||
|
a {
|
||||||
|
display : flex;
|
||||||
|
flex-flow : row nowrap;
|
||||||
|
justify-content : space-between;
|
||||||
|
width : 100%;
|
||||||
|
}
|
||||||
|
li + li h3 {
|
||||||
|
margin-top : 0.26cm;
|
||||||
|
line-height : 1em;
|
||||||
|
}
|
||||||
|
h3 span:first-child::after { border : none; }
|
||||||
|
span {
|
||||||
|
display : contents;
|
||||||
|
&:first-child::after {
|
||||||
|
bottom : 0.08cm;
|
||||||
|
flex : 1;
|
||||||
|
margin-right : 0.16cm;
|
||||||
|
margin-bottom : 0.08cm;
|
||||||
|
margin-left : 0.08cm; /* Spacing before dot leaders */
|
||||||
|
content : '';
|
||||||
|
border-bottom : 0.05cm dotted #000000;
|
||||||
|
}
|
||||||
|
&:last-child {
|
||||||
|
display : inline-block;
|
||||||
|
align-self : flex-end;
|
||||||
|
font-family : 'BookInsanityRemake';
|
||||||
|
font-size : 0.34cm;
|
||||||
|
font-weight : normal;
|
||||||
|
color : #000000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ul { /* List indent */
|
||||||
|
margin-left : 1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.wide {
|
||||||
|
.useColumns(0.96, @fillMode: balance);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.toc.wide li {
|
||||||
|
break-inside: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// *****************************
|
// *****************************
|
||||||
// * DEFINITION LISTS
|
// * DEFINITION LISTS
|
||||||
// *****************************/
|
// *****************************/
|
||||||
@@ -862,3 +937,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// *****************************
|
||||||
|
// * INDEX
|
||||||
|
// *****************************/
|
||||||
|
.page {
|
||||||
|
.index {
|
||||||
|
font-size : 0.218cm;
|
||||||
|
|
||||||
|
ul ul { margin : 0; }
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding-left : 0;
|
||||||
|
text-indent : 0;
|
||||||
|
list-style-type : none;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > ul > li {
|
||||||
|
padding-left : 1.5em;
|
||||||
|
text-indent : -1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -513,7 +513,6 @@ body { counter-reset : page-numbers 0; }
|
|||||||
// *****************************/
|
// *****************************/
|
||||||
.page {
|
.page {
|
||||||
.index {
|
.index {
|
||||||
font-size : 0.218cm;
|
|
||||||
|
|
||||||
ul ul { margin : 0; }
|
ul ul { margin : 0; }
|
||||||
|
|
||||||
@@ -542,7 +541,6 @@ h6,
|
|||||||
.page:has(.frontCover),
|
.page:has(.frontCover),
|
||||||
.page:has(.backCover),
|
.page:has(.backCover),
|
||||||
.page:has(.insideCover),
|
.page:has(.insideCover),
|
||||||
.monster,
|
|
||||||
.noToC,
|
.noToC,
|
||||||
.toc { --TOC: exclude; }
|
.toc { --TOC: exclude; }
|
||||||
|
|
||||||
@@ -559,13 +557,6 @@ h6,
|
|||||||
.tocIncludeH5 h5 {--TOC: include; }
|
.tocIncludeH5 h5 {--TOC: include; }
|
||||||
.tocIncludeH6 h6 {--TOC: include; }
|
.tocIncludeH6 h6 {--TOC: include; }
|
||||||
|
|
||||||
.page:has(.partCover) {
|
|
||||||
--TOC: exclude;
|
|
||||||
& h1 {
|
|
||||||
--TOC: include;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.page {
|
.page {
|
||||||
&:has(.toc)::after { display : none; }
|
&:has(.toc)::after { display : none; }
|
||||||
.toc {
|
.toc {
|
||||||
@@ -616,10 +607,8 @@ h6,
|
|||||||
&:last-child {
|
&:last-child {
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
align-self : flex-end;
|
align-self : flex-end;
|
||||||
font-family : 'BookInsanityRemake';
|
|
||||||
font-size : 0.34cm;
|
font-size : 0.34cm;
|
||||||
font-weight : normal;
|
font-weight : normal;
|
||||||
color : #000000;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ul { /* List indent */
|
ul { /* List indent */
|
||||||
|
|||||||
Reference in New Issue
Block a user