0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 15:12:43 +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{ &.wide{
column-count : 2; column-count : 2;
column-fill:auto;
} }
} }
.note{ .note{
@@ -161,38 +162,44 @@
} }
.wide{ .wide{
column-span : all; column-span : all;
-webkit-column-span : all; }
-moz-column-span : all; .fullPage{
column-span : all;
height: 100%;
} }
.oneColumn{ .oneColumn{
column-count : 1; column-count : 1;
column-fill:auto;
// column-gap : 1cm; // column-gap : 1cm;
} }
.twoColumn{ .twoColumn{
column-count : 2; column-count : 2;
column-fill:auto;
//column-fill: auto; //column-fill: auto;
////column-gap : 1cm; ////column-gap : 1cm;
} }
.threeColumn{ .threeColumn{
column-count : 3; column-count : 3;
column-fill:auto;
//column-gap : 1cm; //column-gap : 1cm;
} }
.fourColumn{ .fourColumn{
column-count : 4; column-count : 4;
//column-gap : 1cm; //column-gap : 1cm;
column-fill:auto;
} }
.columnSplit{ .columnSplit{
visibility : hidden; visibility : hidden;
-webkit-column-break-bfore : always; -webkit-column-break-bfore : always;
break-before : column; break-before : column;
} }
.brushed{ // .brushed{
border-image-outset : 25px 17px; // border-image-outset : 25px 17px;
border-image-repeat : round; // border-image-repeat : round;
border-image-slice : 1250 1250 1250 1250; // border-image-slice : 1250 1250 1250 1250;
border-image-width : 1250px; // border-image-width : 1250px;
border-image-source : url('http : //i.imgur.com/nzPYZyD.png'); // border-image-source : url('http://i.imgur.com/nzPYZyD.png');
} // }
//basics //basics
.left{ .left{
text-align : left; text-align : left;

View File

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

View File

@@ -37,5 +37,16 @@ module.exports = {
${description} ${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}}`;
} }
} }