mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 16:22:42 +00:00
Initial commit
This commit is contained in:
@@ -14,13 +14,6 @@
|
|||||||
--HB_Color_Footnotes : #C9AD6A; // Gold
|
--HB_Color_Footnotes : #C9AD6A; // Gold
|
||||||
}
|
}
|
||||||
|
|
||||||
@page { margin: 0; }
|
|
||||||
body {
|
|
||||||
counter-reset : phb-page-numbers;
|
|
||||||
}
|
|
||||||
*{
|
|
||||||
-webkit-print-color-adjust : exact;
|
|
||||||
}
|
|
||||||
.useSansSerif(){
|
.useSansSerif(){
|
||||||
font-family : ScalySansRemake;
|
font-family : ScalySansRemake;
|
||||||
font-size : 0.318cm;
|
font-size : 0.318cm;
|
||||||
@@ -43,8 +36,6 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.useColumns(@multiplier : 1, @fillMode: auto){
|
.useColumns(@multiplier : 1, @fillMode: auto){
|
||||||
column-count : 2;
|
|
||||||
column-fill : @fillMode;
|
|
||||||
column-gap : 0.9cm;
|
column-gap : 0.9cm;
|
||||||
column-width : 8cm * @multiplier;
|
column-width : 8cm * @multiplier;
|
||||||
-webkit-column-count : 2;
|
-webkit-column-count : 2;
|
||||||
@@ -54,29 +45,11 @@ body {
|
|||||||
-webkit-column-gap : 0.9cm;
|
-webkit-column-gap : 0.9cm;
|
||||||
-moz-column-gap : 0.9cm;
|
-moz-column-gap : 0.9cm;
|
||||||
}
|
}
|
||||||
.columnWrapper{
|
|
||||||
max-height : 100%;
|
|
||||||
column-span : all;
|
|
||||||
columns : inherit;
|
|
||||||
column-gap : inherit;
|
|
||||||
}
|
|
||||||
.page{
|
.page{
|
||||||
.useColumns();
|
.useColumns();
|
||||||
counter-increment : phb-page-numbers;
|
|
||||||
position : relative;
|
|
||||||
z-index : 15;
|
|
||||||
box-sizing : border-box;
|
|
||||||
overflow : hidden;
|
|
||||||
height : 279.4mm;
|
|
||||||
width : 215.9mm;
|
|
||||||
background-color : var(--HB_Color_Background);
|
|
||||||
background-image : @backgroundImage;
|
background-image : @backgroundImage;
|
||||||
padding : 1.4cm 1.9cm 1.7cm;
|
|
||||||
font-family : BookInsanityRemake;
|
font-family : BookInsanityRemake;
|
||||||
font-size : 0.34cm;
|
font-size : 0.34cm;
|
||||||
text-rendering : optimizeLegibility;
|
|
||||||
page-break-before : always;
|
|
||||||
page-break-after : always;
|
|
||||||
}
|
}
|
||||||
//*****************************
|
//*****************************
|
||||||
// * BASE
|
// * BASE
|
||||||
@@ -85,7 +58,6 @@ body {
|
|||||||
.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;
|
|
||||||
line-height : 1.25em;
|
line-height : 1.25em;
|
||||||
&+* {
|
&+* {
|
||||||
margin-top : 0.325cm;
|
margin-top : 0.325cm;
|
||||||
@@ -96,17 +68,11 @@ body {
|
|||||||
}
|
}
|
||||||
ul{
|
ul{
|
||||||
margin-bottom : 0.8em;
|
margin-bottom : 0.8em;
|
||||||
padding-left : 1.4em;
|
|
||||||
line-height : 1.25em;
|
line-height : 1.25em;
|
||||||
list-style-position : outside;
|
|
||||||
list-style-type : disc;
|
|
||||||
}
|
}
|
||||||
ol{
|
ol{
|
||||||
margin-bottom : 0.8em;
|
margin-bottom : 0.8em;
|
||||||
padding-left : 1.4em;
|
|
||||||
line-height : 1.25em;
|
line-height : 1.25em;
|
||||||
list-style-position : outside;
|
|
||||||
list-style-type : decimal;
|
|
||||||
}
|
}
|
||||||
//Indents after p or lists
|
//Indents after p or lists
|
||||||
p+p, ul+p, ol+p{
|
p+p, ul+p, ol+p{
|
||||||
@@ -116,22 +82,8 @@ body {
|
|||||||
z-index : -1;
|
z-index : -1;
|
||||||
}
|
}
|
||||||
strong{
|
strong{
|
||||||
font-weight : bold;
|
|
||||||
letter-spacing : -0.02em;
|
letter-spacing : -0.02em;
|
||||||
}
|
}
|
||||||
em{
|
|
||||||
font-style : italic;
|
|
||||||
}
|
|
||||||
sup{
|
|
||||||
vertical-align : super;
|
|
||||||
font-size : smaller;
|
|
||||||
line-height : 0;
|
|
||||||
}
|
|
||||||
sub{
|
|
||||||
vertical-align : sub;
|
|
||||||
font-size : smaller;
|
|
||||||
line-height : 0;
|
|
||||||
}
|
|
||||||
//*****************************
|
//*****************************
|
||||||
// * HEADERS
|
// * HEADERS
|
||||||
// *****************************/
|
// *****************************/
|
||||||
@@ -213,13 +165,11 @@ body {
|
|||||||
// *****************************/
|
// *****************************/
|
||||||
table{
|
table{
|
||||||
.useSansSerif();
|
.useSansSerif();
|
||||||
width : 100%;
|
|
||||||
line-height : 16px;
|
line-height : 16px;
|
||||||
& + * {
|
& + * {
|
||||||
margin-top : 0.325cm;
|
margin-top : 0.325cm;
|
||||||
}
|
}
|
||||||
thead{
|
thead{
|
||||||
display: table-row-group;
|
|
||||||
font-weight : 800;
|
font-weight : 800;
|
||||||
th{
|
th{
|
||||||
vertical-align : bottom;
|
vertical-align : bottom;
|
||||||
@@ -333,43 +283,11 @@ body {
|
|||||||
|
|
||||||
/* Watermark */
|
/* Watermark */
|
||||||
.watermark {
|
.watermark {
|
||||||
display : grid !important;
|
|
||||||
place-items : center;
|
|
||||||
justify-content : center;
|
|
||||||
position : absolute;
|
|
||||||
top : 0;
|
|
||||||
left : 0;
|
|
||||||
width : 100%;
|
|
||||||
height : 100%;
|
|
||||||
font-size : 120px;
|
|
||||||
text-transform : uppercase;
|
|
||||||
color : black;
|
color : black;
|
||||||
mix-blend-mode : overlay;
|
|
||||||
opacity : 30%;
|
|
||||||
transform : rotate(-45deg);
|
|
||||||
z-index : 500;
|
|
||||||
p {
|
|
||||||
margin-bottom : none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Watercolor */
|
/* Watercolor */
|
||||||
[class*="watercolor"] {
|
|
||||||
position : absolute;
|
|
||||||
width : 2000px; /* dimensions need to be real big so the user can set */
|
|
||||||
height : 2000px; /* height or width and the image will maintain aspect ratio */
|
|
||||||
-webkit-mask-image : var(--wc);
|
|
||||||
-webkit-mask-size : contain;
|
|
||||||
-webkit-mask-repeat : no-repeat;
|
|
||||||
mask-image : var(--wc);
|
|
||||||
mask-size : contain;
|
|
||||||
mask-repeat : no-repeat;
|
|
||||||
background-size : cover;
|
|
||||||
background-color : var(--HB_Color_WatercolorStain); /*default color*/
|
|
||||||
--wc : @watercolor1; /*default image*/
|
|
||||||
z-index : -2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.watercolor1 { --wc : @watercolor1; }
|
.watercolor1 { --wc : @watercolor1; }
|
||||||
.watercolor2 { --wc : @watercolor2; }
|
.watercolor2 { --wc : @watercolor2; }
|
||||||
.watercolor3 { --wc : @watercolor3; }
|
.watercolor3 { --wc : @watercolor3; }
|
||||||
@@ -530,19 +448,14 @@ body {
|
|||||||
// * CODE BLOCKS
|
// * CODE BLOCKS
|
||||||
// ************************************/
|
// ************************************/
|
||||||
code{
|
code{
|
||||||
font-family : "Courier New", Courier, monospace;
|
font-size : 0.325cm;
|
||||||
font-size : 0.325;
|
|
||||||
padding : 0px 4px;
|
padding : 0px 4px;
|
||||||
color : #58180d;
|
color : #58180d;
|
||||||
background-color : #faf7ea;
|
background-color : #faf7ea;
|
||||||
border-radius : 4px;
|
border-radius : 4px;
|
||||||
white-space : pre-wrap;
|
|
||||||
overflow-wrap : break-word;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pre code{
|
pre code{
|
||||||
width : 100%;
|
|
||||||
display : inline-block;
|
|
||||||
border-style : solid;
|
border-style : solid;
|
||||||
border-width : 1px;
|
border-width : 1px;
|
||||||
border-image : @codeBorderImage 26 stretch;
|
border-image : @codeBorderImage 26 stretch;
|
||||||
@@ -565,19 +478,6 @@ body {
|
|||||||
visibility : hidden;
|
visibility : hidden;
|
||||||
margin : 0px;
|
margin : 0px;
|
||||||
}
|
}
|
||||||
.columnSplit {
|
|
||||||
visibility : hidden;
|
|
||||||
-webkit-column-break-after : always;
|
|
||||||
break-after : always;
|
|
||||||
-moz-column-break-after : always;
|
|
||||||
}
|
|
||||||
//Avoid breaking up
|
|
||||||
blockquote,table{
|
|
||||||
z-index : 15;
|
|
||||||
-webkit-column-break-inside : avoid;
|
|
||||||
page-break-inside : avoid;
|
|
||||||
break-inside : avoid;
|
|
||||||
}
|
|
||||||
//Text indent right after table
|
//Text indent right after table
|
||||||
table+p{
|
table+p{
|
||||||
text-indent : 1em;
|
text-indent : 1em;
|
||||||
@@ -587,11 +487,6 @@ body {
|
|||||||
margin-bottom : 0px;
|
margin-bottom : 0px;
|
||||||
margin-left : 1.5em;
|
margin-left : 1.5em;
|
||||||
}
|
}
|
||||||
li{
|
|
||||||
-webkit-column-break-inside : avoid;
|
|
||||||
page-break-inside : avoid;
|
|
||||||
break-inside : avoid;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
//*****************************
|
//*****************************
|
||||||
// * SPELL LIST
|
// * SPELL LIST
|
||||||
@@ -1032,8 +927,6 @@ break-inside : avoid;
|
|||||||
.page {
|
.page {
|
||||||
dl {
|
dl {
|
||||||
line-height : 1.25em;
|
line-height : 1.25em;
|
||||||
padding-left : 1em;
|
|
||||||
white-space : pre-line;
|
|
||||||
& + * {
|
& + * {
|
||||||
margin-top : 0.28cm;
|
margin-top : 0.28cm;
|
||||||
}
|
}
|
||||||
@@ -1045,15 +938,9 @@ break-inside : avoid;
|
|||||||
margin-top: 0.17cm;
|
margin-top: 0.17cm;
|
||||||
}
|
}
|
||||||
dt {
|
dt {
|
||||||
display : inline;
|
|
||||||
margin-right : 5px;
|
margin-right : 5px;
|
||||||
margin-left : -1em;
|
margin-left : -1em;
|
||||||
}
|
}
|
||||||
dd {
|
|
||||||
display : inline;
|
|
||||||
margin-left : 0px;
|
|
||||||
text-indent : 0px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//*****************************
|
//*****************************
|
||||||
|
|||||||
Reference in New Issue
Block a user