0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 01:42:42 +00:00

Merge branch 'master' into pr/1549

This commit is contained in:
Trevor Buckner
2021-08-31 16:45:14 -04:00
24 changed files with 532 additions and 440 deletions

View File

@@ -34,9 +34,9 @@ body {
letter-spacing : -0.02em;
}
}
.useColumns(@multiplier : 1){
.useColumns(@multiplier : 1, @fillMode: balance){
column-count : 2;
column-fill : auto;
column-fill : @fillMode;
column-gap : 0.9cm;
column-width : 8cm * @multiplier;
-webkit-column-count : 2;
@@ -46,6 +46,11 @@ body {
-webkit-column-gap : 0.9cm;
-moz-column-gap : 0.9cm;
}
.columnWrapper{
max-height : 100%;
column-span : all;
columns : inherit;
}
.page{
.useColumns();
counter-increment : phb-page-numbers;
@@ -55,9 +60,9 @@ body {
overflow : hidden;
height : 279.4mm;
width : 215.9mm;
padding : 1.4cm 1.9cm 1.7cm;
background-color : @background;
background-image : @backgroundImage;
padding : 1.4cm 1.9cm 1.7cm;
font-family : BookInsanityRemake;
font-size : 0.34cm;
text-rendering : optimizeLegibility;
@@ -68,10 +73,13 @@ body {
// *****************************/
p{
overflow-wrap : break-word; //TODO: MAKE ALL MARGINS TOP-ONLY. USE * + * STYLE SELECTORS
margin-bottom : 0.8em;
display : block;
line-height : 1.3em;
&+* {
margin-top : 0.27cm;
}
&+p{
margin-top : -0.8em;
margin-top : 0;
}
}
ul{
@@ -121,50 +129,49 @@ body {
color : @headerText;
}
h1{
margin-bottom : 0.18cm;
margin-bottom : 0.18cm; //Margin-bottom only because this is WIDE
column-span : all;
font-size : 0.89cm;
-webkit-column-span : all;
-moz-column-span : all;
&+p::first-letter{
float : left;
font-family : SolberaImitationRemake;
line-height : 0.8em;
font-size: 3.5cm;
padding-left: 40px;
margin-left: -40px;
padding-top:10px;
margin-top:-8px;
padding-bottom:10px;
margin-bottom:-20px;
background-image: linear-gradient(-45deg, #322814, #998250, #322814);
background-clip: text;
-webkit-background-clip: text;
color: rgba(0, 0, 0, 0);
float : left;
font-family : SolberaImitationRemake;
line-height : 1em;
font-size : 3.5cm;
padding-left : 40px; //Allow background color to extend into margins
margin-left : -40px;
margin-top :-0.3cm;
padding-bottom :2px;
margin-bottom :-20px;
background-image : linear-gradient(-45deg, #322814, #998250, #322814);
background-clip : text;
-webkit-background-clip : text;
color : rgba(0, 0, 0, 0);
}
&+p::first-line{
font-variant : small-caps;
}
}
h2{
margin-top : 0px;
margin-bottom : 0.05cm;
//margin-top : 0px; //Font is misaligned. Shift up slightly
//margin-bottom : 0.05cm;
font-size : 0.75cm;
}
h3{
margin-top : -0.1cm;
margin-bottom : 0.1cm;
//margin-top : -0.1cm; //Font is misaligned. Shift up slightly
//margin-bottom : 0.1cm;
font-size : 0.575cm;
border-bottom : 2px solid @headerUnderline;
}
h4{
margin-top : -0.02cm;
margin-bottom : 0.02cm;
//margin-top : -0.02cm; //Font is misaligned. Shift up slightly
//margin-bottom : 0.02cm;
font-size : 0.458cm;
}
h5{
margin-top : -0.02cm;
margin-bottom : 0.02cm;
//margin-top : -0.02cm; //Font is misaligned. Shift up slightly
//margin-bottom : 0.02cm;
font-family : ScalySansSmallCapsRemake;
font-size : 0.423cm;
font-weight : 900;
@@ -206,7 +213,6 @@ body {
border-width : 11px;
border-image : @noteBorderImage 12;
border-image-outset : 9px 0px;
box-shadow : 1px 4px 14px #888;
position : absolute;
width : 100%;
height : 100%;
@@ -219,6 +225,7 @@ body {
margin-left : -0.1em;
margin-right : -0.1em;
background-color : @noteGreen;
filter : drop-shadow(1px 4px 6px #888);
padding : 0.5em 0.6em;
& + * {
margin-top : 1.3em;
@@ -239,7 +246,7 @@ body {
// ************************************/
.descriptive{
.useSansSerif();
display : block-inline;
display : inline-block;
margin-top : 1.4em;
background-color : #faf7ea;
font-family : ScalySansRemake;
@@ -247,7 +254,7 @@ body {
border-width : 7px;
border-image : @descriptiveBoxImage 12 stretch;
border-image-outset : 4px;
box-shadow : 0px 0px 6px #faf7ea;
filter : drop-shadow(0 0 3px #faf7ea);
padding : 0.1em;
& + * {
margin-top : 1.4em;
@@ -329,7 +336,7 @@ body {
border-image-outset : 0px 2px;
background-blend-mode : overlay;
background-attachment : fixed;
box-shadow : 1px 4px 14px #888;
filter : drop-shadow(1px 4px 6px #888);
padding : 4px 2px;
margin : 0px -6px 1em;
}
@@ -383,16 +390,19 @@ body {
dl {
color : @headerText;
}
hr:last-of-type~dl{
color : inherit; // After the HRs, hanging indents remain black.
}
// Monster Ability table
hr + table:first-of-type{
margin : 0;
column-span : 1;
column-span : none;
color : @headerText;
background-color : transparent;
border-style : none;
border-image : none;
-webkit-column-span : 1;
-webkit-column-span : none;
tr {
background-color : transparent;
}
@@ -404,7 +414,7 @@ body {
//Full Width
.monster.wide{
.useColumns(0.96);
.useColumns(0.96, @fillMode: balance);
}
//*****************************
@@ -501,6 +511,9 @@ body {
break-after : always;
-moz-column-break-after : always;
break-before : column;
&+* {
margin-top: 0;
}
}
//Avoid breaking up
blockquote,table{
@@ -561,22 +574,32 @@ body {
column-span : all;
-webkit-column-span : all;
-moz-column-span : all;
display : block;
margin-bottom : 0.34cm;
&+* {
margin-top : 0;
}
}
//*****************************
// * CLASS TABLE
// *****************************/
.page .classTable{
margin-top : 25px;
margin-bottom : 40px;
border-collapse : separate;
background-color : white;
border : initial;
border-style : solid;
border-image-outset : 25px 17px;
border-image-repeat : stretch;
border-image-slice : 150 200 150 200;
border-image-source : @frameBorderImage;
border-image-width : 47px;
th[colspan]:not([rowspan]) {
white-space : nowrap;
}
&.frame {
margin-top : 25px;
margin-bottom : 40px;
border-collapse : separate;
background-color : white;
border : initial;
border-style : solid;
border-image-outset : 25px 17px;
border-image-repeat : stretch;
border-image-slice : 150 200 150 200;
border-image-source : @frameBorderImage;
border-image-width : 47px;
}
h5{
margin-bottom : 10px;
}
@@ -650,7 +673,7 @@ body {
}
}
&.wide{
.useColumns(0.96);
.useColumns(0.96, @fillMode: balance);
}
}
@@ -665,7 +688,6 @@ body {
.inline-block {
display : inline-block;
text-indent : initial;
line-height : 1.3em;
}
div {
column-gap : 0.5cm; //Default spacing if a div uses multicolumns
@@ -680,15 +702,18 @@ body {
line-height : 1.3em;
padding-left : 1em;
text-indent : -1em;
& + * {
margin-top : 0.28cm;
}
& + dl {
margin-top : 0;
}
}
dl + * {
margin-top : 0.28cm;
}
dl + p {
margin-top : 0.5em;
margin-top : 0.17cm;
}
p + dl {
margin-top: -0.5em;
margin-top: 0.17cm;
}
dt {
display : inline;

View File

@@ -231,11 +231,11 @@ body {
// Monster Ability table
hr+table{
margin : 0;
column-span : 1;
column-span : none;
background-color : transparent;
border-style : none;
border-image : none;
-webkit-column-span : 1;
-webkit-column-span : none;
tbody{
tr:nth-child(odd), tr:nth-child(even){
background-color : transparent;
@@ -416,7 +416,7 @@ body {
// * DESCRIPTIVE TEXT BOX
// ************************************/
.phb .descriptive{
display : block-inline;
display : inline-block;
margin-bottom : 1em;
background-color : #faf7ea;
font-family : ScalySans;