0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Merge pull request #2471 from naturalcrit/MoreThemesFixes

More themes fixes
This commit is contained in:
Trevor Buckner
2022-10-28 00:05:28 -04:00
committed by GitHub
3 changed files with 16 additions and 21 deletions

View File

@@ -82,7 +82,7 @@ body {
// * BASE
// *****************************/
:where(.page){
.page{
p{
overflow-wrap : break-word; //TODO: MAKE ALL MARGINS TOP-ONLY. USE * + * STYLE SELECTORS
display : block;
@@ -214,6 +214,7 @@ body {
table{
.useSansSerif();
width : 100%;
line-height : 16px;
& + * {
margin-top : 0.325cm;
}
@@ -224,7 +225,7 @@ body {
vertical-align : bottom;
//padding : 0.14em 0.4em;
padding : 0px 1.5px; // Both of these are temporary, just to force
line-height : 16px; // PDF to render at same height until Chrome 108
//line-height : 16px; // PDF to render at same height until Chrome 108
}
}
tbody{
@@ -598,7 +599,7 @@ body {
//*****************************
// * SPELL LIST
// *****************************/
:where(.page) .spellList{
.page .spellList{
.useSansSerif();
column-count : 2;
ul+h5{
@@ -625,7 +626,7 @@ body {
//*****************************
// * CLASS TABLE
// *****************************/
:where(.page) .classTable{
.page .classTable{
th[colspan]:not([rowspan]) {
white-space : nowrap;
}
@@ -682,7 +683,7 @@ body {
//*****************************
// * TABLE OF CONTENTS
// *****************************/
:where(.page) {
.page {
&:has(.toc):after {
display: none;
}
@@ -759,7 +760,7 @@ body {
//*****************************
// * DEFINITION LISTS
// *****************************/
:where(.page) {
.page {
dl {
line-height : 1.25em;
padding-left : 1em;
@@ -789,10 +790,10 @@ body {
//*****************************
// * WIDE
// *****************************/
:where(.page) .wide{
.page .wide{
margin-bottom : 0.325cm;
}
:where(.page) h1 + *{
.page h1 + *{
margin-top : 0;
}

View File

@@ -43,7 +43,7 @@ body {
//*****************************
// * BASE
// *****************************/
:where(.page){
.page{
p{
overflow-wrap : break-word;
display : block;
@@ -77,13 +77,7 @@ body {
img{
z-index : -1;
}
:not(:where(.wide,.columnSplit,.blank,hr,h1)) + :where(h2,h3,h4,h5,h6,table,dl,.block) {
margin-top : 0.325cm; //NOTE: MAKE ALL MARGINS TOP-ONLY FOR BEST RESULTS WITH COLUMN BREAKS. USE * + * STYLE SELECTORS
}
:is(h1,h3,h3,h4,h5,h6) + * {
margin-top : 0;
}
//*****************************
// * HEADERS
// *****************************/
@@ -218,7 +212,7 @@ body {
//*****************************
// * MUSTACHE DIVS/SPANS
// *****************************/
:where(.page) {
.page {
.block {
break-inside : avoid;
display : inline-block;
@@ -233,7 +227,7 @@ body {
//*****************************
// * DEFINITION LISTS
// *****************************/
:where(.page) {
.page {
dl {
padding-left : 1em;
white-space : pre-line;
@@ -253,7 +247,7 @@ body {
//*****************************
// * BLANK LINE
// *****************************/
:where(.page) {
.page {
.blank {
height : 1em;
margin-top : 0;
@@ -263,7 +257,7 @@ body {
//*****************************
// * WIDE
// *****************************/
:where(.page) {
.page {
.wide{
column-span : all;
display : block;

View File

@@ -62,7 +62,7 @@
//*****************************
// * BASE
// *****************************/
:where(.page){
.page{
color : var(--HB_Color_Text);
font-family : ReenieBeanie;
font-size : 0.53cm;
@@ -554,6 +554,6 @@
//*****************************
// * WIDE
// *****************************/
:where(.page) .wide {
.page .wide {
margin-bottom : 0.45cm;
}