diff --git a/themes/V3/5ePHB/style.less b/themes/V3/5ePHB/style.less index 9b85a1cee..2879f7dd4 100644 --- a/themes/V3/5ePHB/style.less +++ b/themes/V3/5ePHB/style.less @@ -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; } diff --git a/themes/V3/Blank/style.less b/themes/V3/Blank/style.less index 3e834ff9f..5a3a9505a 100644 --- a/themes/V3/Blank/style.less +++ b/themes/V3/Blank/style.less @@ -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; diff --git a/themes/V3/Journal/style.less b/themes/V3/Journal/style.less index a06f60b6f..2e2ada5c8 100644 --- a/themes/V3/Journal/style.less +++ b/themes/V3/Journal/style.less @@ -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; }