mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 09:42:43 +00:00
Merge pull request #1509 from Gazook89/v3-Artist-Snippet
Add Artist Credit Snippet
This commit is contained in:
@@ -51,13 +51,23 @@ module.exports = [
|
|||||||
name : 'Image',
|
name : 'Image',
|
||||||
icon : 'fas fa-image',
|
icon : 'fas fa-image',
|
||||||
gen : dedent`
|
gen : dedent`
|
||||||
 {width:325px}
|
 {width:325px,mix-blend-mode:multiply}
|
||||||
Credit: Kyounghwan Kim`
|
|
||||||
|
{{artist,position:relative,top:-230px,left:-100px,margin-bottom:-30px
|
||||||
|
##### Cat Warrior
|
||||||
|
[Kyoung Hwan Kim](https://www.artstation.com/tahra)
|
||||||
|
}}`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'Background Image',
|
name : 'Background Image',
|
||||||
icon : 'fas fa-tree',
|
icon : 'fas fa-tree',
|
||||||
gen : ` {position:absolute,top:50px,right:30px,width:280px}`
|
gen : dedent`
|
||||||
|
 {position:absolute,top:50px,right:30px,width:280px}
|
||||||
|
|
||||||
|
{{artist,top:90px,right:30px
|
||||||
|
##### Homebrew Mug
|
||||||
|
[naturalcrit](https://homebrew.naturalcrit.com)
|
||||||
|
}}`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name : 'QR Code',
|
name : 'QR Code',
|
||||||
@@ -198,6 +208,18 @@ module.exports = [
|
|||||||
icon : 'fas fa-hat-wizard',
|
icon : 'fas fa-hat-wizard',
|
||||||
gen : MagicGen.item,
|
gen : MagicGen.item,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Artist Credit',
|
||||||
|
icon : 'fas fa-signature',
|
||||||
|
gen : function(){
|
||||||
|
return dedent`
|
||||||
|
{{artist,top:90px,right:30px
|
||||||
|
##### Starry Night
|
||||||
|
[Van Gogh](https://www.vangoghmuseum.nl/en)
|
||||||
|
}}
|
||||||
|
\n`;
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -171,6 +171,14 @@ module.exports = [
|
|||||||
icon : 'far fa-file-word',
|
icon : 'far fa-file-word',
|
||||||
gen : CoverPageGen,
|
gen : CoverPageGen,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name : 'Artist Credit',
|
||||||
|
icon : 'fas fa-signature',
|
||||||
|
gen : '<div class=\'artist\' style=\'top:90px;right:30px;\'>\n' +
|
||||||
|
'##### Starry Night\n' +
|
||||||
|
'[Van Gogh](https://www.vangoghmuseum.nl/en)\n' +
|
||||||
|
'</div>\n'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
@import (less) './themes/assets/assets.less';
|
@import (less) './themes/assets/assets.less';
|
||||||
|
|
||||||
//Colors
|
//Colors
|
||||||
@background : #EEE5CE;
|
@background : #EEE5CE; // Light parchment
|
||||||
@noteGreen : #e0e5c1;
|
@noteGreen : #e0e5c1; // Pastel green
|
||||||
@headerUnderline : #c9ad6a;
|
@headerUnderline : #c9ad6a; // Gold
|
||||||
@horizontalRule : #9c2b1b;
|
@horizontalRule : #9c2b1b; // Maroon
|
||||||
@headerText : #58180D;
|
@headerText : #58180D; // Dark maroon
|
||||||
@monsterStatBackground : #EEDBAB;
|
@monsterStatBackground : #EEDBAB; // Light orange parchment
|
||||||
|
@captionText : #766649; // Brown
|
||||||
@page { margin: 0; }
|
@page { margin: 0; }
|
||||||
body {
|
body {
|
||||||
counter-reset : phb-page-numbers;
|
counter-reset : phb-page-numbers;
|
||||||
@@ -263,6 +264,33 @@ body {
|
|||||||
margin-bottom : 0em;
|
margin-bottom : 0em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//*****************************
|
||||||
|
// * ARTIST CREDIT BLOCK
|
||||||
|
// *****************************/
|
||||||
|
.artist {
|
||||||
|
position : absolute;
|
||||||
|
text-align : center;
|
||||||
|
font-family : WalterTurncoat;
|
||||||
|
font-size : 0.27cm;
|
||||||
|
color : @captionText;
|
||||||
|
p, p + p {
|
||||||
|
margin : unset;
|
||||||
|
text-indent : unset;
|
||||||
|
line-height : 1em;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
font-size : 1.3em;
|
||||||
|
font-family : WalterTurncoat;
|
||||||
|
}
|
||||||
|
a{
|
||||||
|
color : @captionText;
|
||||||
|
text-decoration : unset;
|
||||||
|
&:hover {
|
||||||
|
text-decoration :underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//*****************************
|
//*****************************
|
||||||
// * MONSTER STAT BLOCK
|
// * MONSTER STAT BLOCK
|
||||||
// *****************************/
|
// *****************************/
|
||||||
|
|||||||
@@ -2,12 +2,13 @@
|
|||||||
@import (less) './themes/assets/assets.less';
|
@import (less) './themes/assets/assets.less';
|
||||||
@import (less) './themes/phb.depricated.less';
|
@import (less) './themes/phb.depricated.less';
|
||||||
//Colors
|
//Colors
|
||||||
@background : #EEE5CE;
|
@background : #EEE5CE; // Light parchment
|
||||||
@noteGreen : #e0e5c1;
|
@noteGreen : #e0e5c1; // Pastel green
|
||||||
@headerUnderline : #c9ad6a;
|
@headerUnderline : #c9ad6a; // Gold
|
||||||
@horizontalRule : #9c2b1b;
|
@horizontalRule : #9c2b1b; // Maroon
|
||||||
@headerText : #58180D;
|
@headerText : #58180D; // Dark maroon
|
||||||
@monsterStatBackground : #FDF1DC;
|
@monsterStatBackground : #FDF1DC; // Lighter parchment
|
||||||
|
@captionText : #766649; // Brown
|
||||||
@page { margin: 0; }
|
@page { margin: 0; }
|
||||||
body {
|
body {
|
||||||
counter-reset : phb-page-numbers;
|
counter-reset : phb-page-numbers;
|
||||||
@@ -445,6 +446,35 @@ body {
|
|||||||
.phb pre+.descriptive{
|
.phb pre+.descriptive{
|
||||||
margin-top : 8px;
|
margin-top : 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//*****************************
|
||||||
|
// * ARTIST CREDIT BLOCK
|
||||||
|
// *****************************/
|
||||||
|
.phb {
|
||||||
|
.artist {
|
||||||
|
position : absolute;
|
||||||
|
text-align : center;
|
||||||
|
font-family : WalterTurncoat;
|
||||||
|
font-size : 0.27cm;
|
||||||
|
color : @captionText;
|
||||||
|
p, p + p {
|
||||||
|
margin : unset;
|
||||||
|
text-indent : unset;
|
||||||
|
line-height : 1em;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
font-size : 1.3em;
|
||||||
|
font-family : WalterTurncoat;
|
||||||
|
}
|
||||||
|
a{
|
||||||
|
color : @captionText;
|
||||||
|
text-decoration : unset;
|
||||||
|
&:hover {
|
||||||
|
text-decoration : underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
//*****************************
|
//*****************************
|
||||||
// * TABLE OF CONTENTS
|
// * TABLE OF CONTENTS
|
||||||
// *****************************/
|
// *****************************/
|
||||||
|
|||||||
BIN
themes/fonts/5e legacy/WalterTurncoat-Regular.woff2
Normal file
BIN
themes/fonts/5e legacy/WalterTurncoat-Regular.woff2
Normal file
Binary file not shown.
@@ -37,6 +37,12 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: WalterTurncoat;
|
||||||
|
src: url('../fonts/5e legacy/WalterTurncoat-Regular.woff2');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
/* Headers */
|
/* Headers */
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|||||||
BIN
themes/fonts/5e/WalterTurncoat-Regular.woff2
Normal file
BIN
themes/fonts/5e/WalterTurncoat-Regular.woff2
Normal file
Binary file not shown.
@@ -55,6 +55,12 @@
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: WalterTurncoat;
|
||||||
|
src: url('../fonts/5e/WalterTurncoat-Regular.woff2');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
/* Headers */
|
/* Headers */
|
||||||
@font-face {
|
@font-face {
|
||||||
|
|||||||
Reference in New Issue
Block a user