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

View File

@@ -43,7 +43,7 @@ body {
//***************************** //*****************************
// * BASE // * BASE
// *****************************/ // *****************************/
:where(.page){ .page{
p{ p{
overflow-wrap : break-word; overflow-wrap : break-word;
display : block; display : block;
@@ -77,13 +77,7 @@ body {
img{ img{
z-index : -1; 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 // * HEADERS
// *****************************/ // *****************************/
@@ -218,7 +212,7 @@ body {
//***************************** //*****************************
// * MUSTACHE DIVS/SPANS // * MUSTACHE DIVS/SPANS
// *****************************/ // *****************************/
:where(.page) { .page {
.block { .block {
break-inside : avoid; break-inside : avoid;
display : inline-block; display : inline-block;
@@ -233,7 +227,7 @@ body {
//***************************** //*****************************
// * DEFINITION LISTS // * DEFINITION LISTS
// *****************************/ // *****************************/
:where(.page) { .page {
dl { dl {
padding-left : 1em; padding-left : 1em;
white-space : pre-line; white-space : pre-line;
@@ -253,7 +247,7 @@ body {
//***************************** //*****************************
// * BLANK LINE // * BLANK LINE
// *****************************/ // *****************************/
:where(.page) { .page {
.blank { .blank {
height : 1em; height : 1em;
margin-top : 0; margin-top : 0;
@@ -263,7 +257,7 @@ body {
//***************************** //*****************************
// * WIDE // * WIDE
// *****************************/ // *****************************/
:where(.page) { .page {
.wide{ .wide{
column-span : all; column-span : all;
display : block; display : block;

View File

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