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

Added spelllist, blendmode, and collumn fill auto

This commit is contained in:
Scott Tolksdorf
2017-06-04 12:05:30 -04:00
parent a30bd79399
commit c28647726a
3 changed files with 28 additions and 9 deletions

View File

@@ -43,6 +43,7 @@
}
&.wide{
column-count : 2;
column-fill:auto;
}
}
.note{
@@ -161,38 +162,44 @@
}
.wide{
column-span : all;
-webkit-column-span : all;
-moz-column-span : all;
}
.fullPage{
column-span : all;
height: 100%;
}
.oneColumn{
column-count : 1;
column-fill:auto;
// column-gap : 1cm;
}
.twoColumn{
column-count : 2;
column-fill:auto;
//column-fill: auto;
////column-gap : 1cm;
}
.threeColumn{
column-count : 3;
column-fill:auto;
//column-gap : 1cm;
}
.fourColumn{
column-count : 4;
//column-gap : 1cm;
column-fill:auto;
}
.columnSplit{
visibility : hidden;
-webkit-column-break-bfore : always;
break-before : column;
}
.brushed{
border-image-outset : 25px 17px;
border-image-repeat : round;
border-image-slice : 1250 1250 1250 1250;
border-image-width : 1250px;
border-image-source : url('http : //i.imgur.com/nzPYZyD.png');
}
// .brushed{
// border-image-outset : 25px 17px;
// border-image-repeat : round;
// border-image-slice : 1250 1250 1250 1250;
// border-image-width : 1250px;
// border-image-source : url('http://i.imgur.com/nzPYZyD.png');
// }
//basics
.left{
text-align : left;

View File

@@ -61,6 +61,7 @@ blockquote{
img{
z-index : -1;
display: block;
mix-blend-mode:multiply;
&.center{
margin-right: auto;

View File

@@ -37,5 +37,16 @@ module.exports = {
${description}
}}`;
},
spellList : ()=>{
const levels = ['Cantrips (0 Level)', '2nd Level', '3rd Level', '4th Level', '5th Level', '6th Level', '7th Level', '8th Level', '9th Level'];
const content = _.map(levels, (level)=>{
const spells = _.map(Data.rand('spellNames', 15, 5), (spell)=>`- ${spell}`).join('\n');
return `##### ${level} \n${spells} \n`;
}).join('\n');
return `{{fourColumn,fullPage\n${content}\n}}`;
}
}