Skip to content

Commit

Permalink
Merge branch 'master' into addUserInfo-naturalcrit#1908
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ambatte committed Oct 28, 2022
2 parents b84f083 + a13ac2e commit 039b363
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 36 deletions.
13 changes: 11 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ pre {
## changelog
For a full record of development, visit our [Github Page](https://github.com/naturalcrit/homebrewery).

### Thursday 28/10/2022 - v3.3.1
{{taskList

##### Calculuschild

* [x] Fixes to several broken CSS styles from v3.3.0

Fixes issues [#2468](https://github.com/naturalcrit/homebrewery/issues/2468)

}}

### Friday 19/10/2022 - v3.3.0
{{taskList

Expand Down Expand Up @@ -76,8 +87,6 @@ Fixes issues [#2135](https://github.com/naturalcrit/homebrewery/issues/2135)
Fixes issues [#2427](https://github.com/naturalcrit/homebrewery/issues/2427)




##### Gazook:

* [x] Several updates to bug reporting and error popups
Expand Down
2 changes: 1 addition & 1 deletion client/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = async(name, title = '', props = {})=>{
<meta property="og:description" content="${props.brew?.description || 'No description.'}">
<meta property="og:site_name" content="The Homebrewery - Make your Homebrew content look legit!">
<meta property="og:type" content="article">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:card" content="summary">
<title>${title.length ? `${title} - The Homebrewery`: 'The Homebrewery - NaturalCrit'}</title>
</head>
<body>
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"express-async-handler": "^1.2.0",
"express-static-gzip": "2.1.7",
"fs-extra": "10.1.0",
"googleapis": "108.0.0",
"googleapis": "108.0.1",
"js-yaml": "^4.1.0",
"jwt-simple": "^0.5.6",
"less": "^3.13.1",
Expand Down
22 changes: 10 additions & 12 deletions themes/V3/5ePHB/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -214,6 +214,7 @@ body {
table{
.useSansSerif();
width : 100%;
line-height : 16px;
& + * {
margin-top : 0.325cm;
}
Expand All @@ -224,25 +225,22 @@ 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{
tr{
td{
//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
}
&:nth-child(odd){
background-color : var(--HB_Color_Accent);
}
}
}
}
div table:has(~table) { // Divs with side-by-side tables add an extra line
margin-bottom: -0.325cm; // of vertical space at bottom. This works around it.
}
//*****************************
// * NOTE
// *****************************/
Expand Down Expand Up @@ -598,7 +596,7 @@ body {
//*****************************
// * SPELL LIST
// *****************************/
:where(.page) .spellList{
.page .spellList{
.useSansSerif();
column-count : 2;
ul+h5{
Expand All @@ -625,7 +623,7 @@ body {
//*****************************
// * CLASS TABLE
// *****************************/
:where(.page) .classTable{
.page .classTable{
th[colspan]:not([rowspan]) {
white-space : nowrap;
}
Expand Down Expand Up @@ -682,7 +680,7 @@ body {
//*****************************
// * TABLE OF CONTENTS
// *****************************/
:where(.page) {
.page {
&:has(.toc):after {
display: none;
}
Expand Down Expand Up @@ -759,7 +757,7 @@ body {
//*****************************
// * DEFINITION LISTS
// *****************************/
:where(.page) {
.page {
dl {
line-height : 1.25em;
padding-left : 1em;
Expand Down Expand Up @@ -789,10 +787,10 @@ body {
//*****************************
// * WIDE
// *****************************/
:where(.page) .wide{
.page .wide{
margin-bottom : 0.325cm;
}

:where(.page) h1 + *{
.page h1 + *{
margin-top : 0;
}
22 changes: 11 additions & 11 deletions themes/V3/Blank/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ body {
//*****************************
// * BASE
// *****************************/
:where(.page){
.page{
p{
overflow-wrap : break-word;
display : block;
Expand Down Expand Up @@ -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
// *****************************/
Expand Down Expand Up @@ -116,6 +110,9 @@ body {
font-weight : bold;
}
}
div:not(.columnWrapper) > table + table { // Side-by-side tables should not
margin-top : 0; // have vertical spacing.
}

/* Watermark */
.watermark {
Expand Down Expand Up @@ -218,7 +215,7 @@ body {
//*****************************
// * MUSTACHE DIVS/SPANS
// *****************************/
:where(.page) {
.page {
.block {
break-inside : avoid;
display : inline-block;
Expand All @@ -233,7 +230,7 @@ body {
//*****************************
// * DEFINITION LISTS
// *****************************/
:where(.page) {
.page {
dl {
padding-left : 1em;
white-space : pre-line;
Expand All @@ -253,17 +250,20 @@ body {
//*****************************
// * BLANK LINE
// *****************************/
:where(.page) {
.page {
.blank {
height : 1em;
margin-top : 0;
& + * {
margin-top : 0;
}
}
}

//*****************************
// * WIDE
// *****************************/
:where(.page) {
.page {
.wide{
column-span : all;
display : block;
Expand Down
4 changes: 2 additions & 2 deletions themes/V3/Journal/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
//*****************************
// * BASE
// *****************************/
:where(.page){
.page{
color : var(--HB_Color_Text);
font-family : ReenieBeanie;
font-size : 0.53cm;
Expand Down Expand Up @@ -554,6 +554,6 @@
//*****************************
// * WIDE
// *****************************/
:where(.page) .wide {
.page .wide {
margin-bottom : 0.45cm;
}

0 comments on commit 039b363

Please sign in to comment.