mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-27 18:13:08 +00:00
Compare commits
7 Commits
dependabot
...
phantom
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c9ae099b0 | ||
|
|
ff8869f116 | ||
|
|
8e644b23dc | ||
|
|
3d53f08276 | ||
|
|
ba77908a50 | ||
|
|
9cffc94d90 | ||
|
|
8ab925398a |
@@ -50,12 +50,13 @@ module.exports = function(classname){
|
|||||||
}).join(' | ')
|
}).join(' | ')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var extraWide = (_.random(0,1) === 0) ? "" : "___\n";
|
||||||
|
|
||||||
var cantrips = 3;
|
var cantrips = 3;
|
||||||
var spells = 1;
|
var spells = 1;
|
||||||
var slots = 2;
|
var slots = 2;
|
||||||
return "##### The " + classname + "\n" +
|
return "##### The " + classname + "\n" +
|
||||||
"___\n" +
|
"___\n" + extraWide +
|
||||||
"| Level | Proficiency Bonus | Features | Cantrips Known | Spells Known | 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n"+
|
"| Level | Proficiency Bonus | Features | Cantrips Known | Spells Known | 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n"+
|
||||||
"|:---:|:---:|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n" +
|
"|:---:|:---:|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n" +
|
||||||
_.map(["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", "16th", "17th", "18th", "19th", "20th"],function(levelName, level){
|
_.map(["1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th", "13th", "14th", "15th", "16th", "17th", "18th", "19th", "20th"],function(levelName, level){
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ module.exports = [
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
tooltip : "Printer Friendly",
|
tooltip : "Ink Friendly",
|
||||||
icon : 'fa-print',
|
icon : 'fa-print',
|
||||||
snippet : function(){
|
snippet : function(){
|
||||||
return "<style>\n .phb{ background : white;}\n .phb img{ display : none;}\n .phb hr+blockquote{background : white;}\n</style>\n\n";
|
return "<style>\n .phb{ background : white;}\n .phb img{ display : none;}\n .phb hr+blockquote{background : white;}\n</style>\n\n";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
@import (less) 'shared/naturalCrit/styles/reset.less';
|
@import (less) 'shared/naturalCrit/styles/reset.less';
|
||||||
@import (less) './client/homebrew/phbStyle/phb.fonts.css';
|
@import (less) './client/homebrew/phbStyle/phb.fonts.css';
|
||||||
@import (less) './client/homebrew/phbStyle/phb.assets.less';
|
@import (less) './client/homebrew/phbStyle/phb.assets.less';
|
||||||
@@ -17,9 +18,23 @@
|
|||||||
strong{
|
strong{
|
||||||
font-family : ScalySans;
|
font-family : ScalySans;
|
||||||
font-weight : 800;
|
font-weight : 800;
|
||||||
|
letter-spacing: -0.02em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.useColumns(){
|
||||||
|
column-count : 2;
|
||||||
|
column-fill : auto;
|
||||||
|
column-gap : 1cm;
|
||||||
|
column-width : 8cm;
|
||||||
|
-webkit-column-count : 2;
|
||||||
|
-moz-column-count : 2;
|
||||||
|
-webkit-column-width : 8cm;
|
||||||
|
-moz-column-width : 8cm;
|
||||||
|
-webkit-column-gap : 1cm;
|
||||||
|
-moz-column-gap : 1cm;
|
||||||
|
}
|
||||||
.phb{
|
.phb{
|
||||||
|
.useColumns();
|
||||||
position : relative;
|
position : relative;
|
||||||
z-index : 15;
|
z-index : 15;
|
||||||
box-sizing : border-box;
|
box-sizing : border-box;
|
||||||
@@ -27,19 +42,11 @@
|
|||||||
height : 279.4mm;
|
height : 279.4mm;
|
||||||
width : 215.9mm;
|
width : 215.9mm;
|
||||||
padding : 1.0cm 1.7cm;
|
padding : 1.0cm 1.7cm;
|
||||||
column-count : 2;
|
padding-bottom : 1.5cm;
|
||||||
column-fill : auto;
|
|
||||||
column-gap : 1cm;
|
|
||||||
column-width : 8cm;
|
|
||||||
background-color : @background;
|
background-color : @background;
|
||||||
background-image : @backgroundImage;
|
background-image : @backgroundImage;
|
||||||
font-family : BookSanity;
|
font-family : BookSanity;
|
||||||
font-size : 9pt;
|
font-size : 9pt;
|
||||||
-webkit-column-count : 2;
|
|
||||||
-moz-column-count : 2;
|
|
||||||
-webkit-column-width : 8cm;
|
|
||||||
-moz-column-width : 8cm;
|
|
||||||
-webkit-column-gap : 1cm;
|
|
||||||
text-rendering : optimizeLegibility;
|
text-rendering : optimizeLegibility;
|
||||||
//*****************************
|
//*****************************
|
||||||
// * BASE
|
// * BASE
|
||||||
@@ -58,11 +65,18 @@
|
|||||||
list-style-position : inside;
|
list-style-position : inside;
|
||||||
list-style-type : disc;
|
list-style-type : disc;
|
||||||
}
|
}
|
||||||
|
ol{
|
||||||
|
list-style-position: inside;
|
||||||
|
margin-bottom : 0.8em;
|
||||||
|
line-height : 1.3em;
|
||||||
|
list-style-type : decimal;
|
||||||
|
}
|
||||||
img{
|
img{
|
||||||
z-index : -1;
|
z-index : -1;
|
||||||
}
|
}
|
||||||
strong{
|
strong{
|
||||||
font-weight : bold;
|
font-weight : bold;
|
||||||
|
letter-spacing: 0.03em;
|
||||||
}
|
}
|
||||||
em{
|
em{
|
||||||
font-style : italic;
|
font-style : italic;
|
||||||
@@ -78,14 +92,14 @@
|
|||||||
color : @headerText;
|
color : @headerText;
|
||||||
}
|
}
|
||||||
h1{
|
h1{
|
||||||
column-span : all;
|
column-span : 2;
|
||||||
font-size : 28pt;
|
font-size : 28pt;
|
||||||
-webkit-column-span : all;
|
-webkit-column-span : 2;
|
||||||
|
-moz-column-span : 2;
|
||||||
&+p::first-letter{
|
&+p::first-letter{
|
||||||
float : left;
|
float : left;
|
||||||
margin-top : 0.4em;
|
|
||||||
margin-bottom : 0.4em;
|
|
||||||
font-family : Solberry;
|
font-family : Solberry;
|
||||||
|
line-height: 0.8em;
|
||||||
font-size : 10em;
|
font-size : 10em;
|
||||||
color : #222;
|
color : #222;
|
||||||
}
|
}
|
||||||
@@ -127,7 +141,7 @@
|
|||||||
tbody{
|
tbody{
|
||||||
tr{
|
tr{
|
||||||
td{
|
td{
|
||||||
padding : 0.2em 0.1em;
|
padding : 0.3em 0.1em;
|
||||||
}
|
}
|
||||||
&:nth-child(odd){
|
&:nth-child(odd){
|
||||||
background-color : @noteGreen;
|
background-color : @noteGreen;
|
||||||
@@ -241,15 +255,18 @@
|
|||||||
left : -3px;
|
left : -3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Full Width
|
||||||
|
hr+hr+blockquote{
|
||||||
|
.useColumns();
|
||||||
|
}
|
||||||
//*****************************
|
//*****************************
|
||||||
// * FULL CLASS TABLE
|
// * FULL CLASS TABLE
|
||||||
// *****************************/
|
// *****************************/
|
||||||
h5+hr+table{
|
hr+table{
|
||||||
margin-top : -5px;
|
margin-top : -5px;
|
||||||
margin-bottom : 50px;
|
margin-bottom : 50px;
|
||||||
padding-top : 10px;
|
padding-top : 10px;
|
||||||
border-collapse : separate;
|
border-collapse : separate;
|
||||||
column-span : all;
|
|
||||||
background-color : white;
|
background-color : white;
|
||||||
border : initial;
|
border : initial;
|
||||||
border-image-outset : 37px 17px;
|
border-image-outset : 37px 17px;
|
||||||
@@ -257,7 +274,6 @@
|
|||||||
border-image-slice : 150 200 150 200;
|
border-image-slice : 150 200 150 200;
|
||||||
border-image-source : @frameBorderImage;
|
border-image-source : @frameBorderImage;
|
||||||
border-image-width : 47px;
|
border-image-width : 47px;
|
||||||
-webkit-column-span : all;
|
|
||||||
}
|
}
|
||||||
//*****************************
|
//*****************************
|
||||||
// * FOOTER
|
// * FOOTER
|
||||||
@@ -316,19 +332,25 @@
|
|||||||
text-indent : -1em;
|
text-indent : -1em;
|
||||||
list-style-type : none;
|
list-style-type : none;
|
||||||
}
|
}
|
||||||
|
//Double hr for full width elements
|
||||||
|
hr+hr+table, hr+hr+blockquote{
|
||||||
|
column-span : all;
|
||||||
|
-webkit-column-span : all;
|
||||||
|
-moz-column-span : all;
|
||||||
|
}
|
||||||
//Column Break
|
//Column Break
|
||||||
pre{
|
pre{
|
||||||
visibility : hidden;
|
visibility : hidden;
|
||||||
-webkit-column-break-after : always;
|
-webkit-column-break-after : always;
|
||||||
|
break-after : always;
|
||||||
|
-moz-column-break-after : always;
|
||||||
}
|
}
|
||||||
//Avoid breaking up
|
//Avoid breaking up
|
||||||
p,ul,blockquote,table{
|
p,ul,blockquote,table{
|
||||||
z-index : 15;
|
z-index : 15;
|
||||||
-webkit-column-break-inside : avoid;
|
-webkit-column-break-inside : avoid;
|
||||||
-moz-column-break-inside : avoid;
|
|
||||||
-o-column-break-inside : avoid;
|
|
||||||
-ms-column-break-inside : avoid;
|
|
||||||
column-break-inside : avoid;
|
column-break-inside : avoid;
|
||||||
|
overflow: hidden; /* Firefox fix */
|
||||||
}
|
}
|
||||||
//Better spacing for spell blocks
|
//Better spacing for spell blocks
|
||||||
h4+p+hr+ul{
|
h4+p+hr+ul{
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
|
|
||||||
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
|
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
|
||||||
Reference in New Issue
Block a user