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

Merge pull request #1329 from naturalcrit/v3Tables

V3 Tables & Headers
This commit is contained in:
Trevor Buckner
2021-05-02 19:29:54 -04:00
committed by GitHub
3 changed files with 29 additions and 16 deletions

View File

@@ -63,7 +63,7 @@ body {
// * BASE // * BASE
// *****************************/ // *****************************/
p{ p{
overflow-wrap : break-word; overflow-wrap : break-word; //TODO: MAKE ALL MARGINS TOP-ONLY. USE * + * STYLE SELECTORS
margin-bottom : 1em; margin-bottom : 1em;
line-height : 1.3em; line-height : 1.3em;
&+p{ &+p{
@@ -93,7 +93,7 @@ body {
} }
strong{ strong{
font-weight : bold; font-weight : bold;
letter-spacing : 0.03em; letter-spacing : -0.02em;
} }
em{ em{
font-style : italic; font-style : italic;
@@ -112,13 +112,12 @@ body {
// * HEADERS // * HEADERS
// *****************************/ // *****************************/
h1,h2,h3,h4{ h1,h2,h3,h4{
margin-top : 0.2em;
margin-bottom : 0.2em;
font-family : MrEavesRemake; font-family : MrEavesRemake;
font-weight : 800; font-weight : 800;
color : @headerText; color : @headerText;
} }
h1{ h1{
margin-bottom : 0.18cm;
column-span : all; column-span : all;
font-size : 0.89cm; font-size : 0.89cm;
-webkit-column-span : all; -webkit-column-span : all;
@@ -144,18 +143,24 @@ body {
} }
} }
h2{ h2{
font-size : 0.75cm; margin-top : 0px;
margin-bottom : 0.05cm;
font-size : 0.75cm;
} }
h3{ h3{
font-size : 0.529cm; margin-top : -0.1cm;
margin-bottom : 0.1cm;
font-size : 0.575cm;
border-bottom : 2px solid @headerUnderline; border-bottom : 2px solid @headerUnderline;
} }
h4{ h4{
margin-bottom : 0.00em; margin-top : -0.02cm;
margin-bottom : 0.02cm;
font-size : 0.458cm; font-size : 0.458cm;
} }
h5{ h5{
margin-bottom : 0.2em; margin-top : -0.02cm;
margin-bottom : 0.02cm;
font-family : ScalySansSmallCapsRemake; font-family : ScalySansSmallCapsRemake;
font-size : 0.423cm; font-size : 0.423cm;
font-weight : 900; font-weight : 900;
@@ -172,15 +177,13 @@ body {
font-weight : 800; font-weight : 800;
th{ th{
vertical-align : bottom; vertical-align : bottom;
padding-bottom : 0.3em; padding : 0.14em 0.4em;
padding-right : 0.1em;
padding-left : 0.1em;
} }
} }
tbody{ tbody{
tr{ tr{
td{ td{
padding : 0.3em 0.1em; padding : 0.14em 0.4em;
} }
&:nth-child(odd){ &:nth-child(odd){
background-color : @noteGreen; background-color : @noteGreen;
@@ -237,12 +240,15 @@ body {
margin-bottom : 1em; margin-bottom : 1em;
p{ p{
margin-bottom : 0; margin-bottom : 0.3cm;
} }
p+p { p+p {
margin-top : 0.3cm; margin-top : 0; //May not be needed
text-indent : 0; text-indent : 0;
} }
p:last-of-type {
margin-bottom: 0;
}
//Headers //Headers
h2{ h2{
@@ -250,7 +256,8 @@ body {
line-height : 1em; line-height : 1em;
margin : 0; margin : 0;
&+p { &+p {
font-size : 0.304cm; //Monster size and type subtext font-size : 0.304cm; //Monster size and type subtext
margin-bottom : 0;
} }
} }
h3{ h3{
@@ -519,11 +526,14 @@ body {
// *****************************/ // *****************************/
.phb3 { .phb3 {
.block { .block {
break-inside: avoid; break-inside : avoid;
} }
.inline-block { .inline-block {
display : block; display : block;
} }
div {
column-gap : 0.5cm; //Default spacing if a div uses multicolumns
}
} }
//***************************** //*****************************
@@ -550,4 +560,7 @@ body {
.blank { .blank {
height: 0.75em; height: 0.75em;
} }
p + .blank {
margin-top: -1em;
}
} }